-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #339 from CBIIT/Satya
Analysis Tools - Implemented test cases for JPSurv with Playwright
- Loading branch information
Showing
6 changed files
with
540 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 changes: 134 additions & 0 deletions
134
src/test/java/ANALYSIS_TOOLS/JPSurv/features/JPSurvHomePagePlaywright.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
Feature: These are the scenarios for the Home page on the JPSurv Application | ||
|
||
@Smoke @satya @Regression @playwright @NCIATWP-2205 | ||
Scenario: Verify all the links available in the JPSurv website | ||
Given User navigates to JPSurv home page | ||
Then User clicks on the Surveillance Research Program link | ||
Then Verify user is in the NCI Analysis Tools Home Page | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-6670 @NCIATWP-4478 | ||
Scenario: Verify all the links available in the JPSurv website | ||
Given User navigates to JPSurv home page | ||
Then User clicks on the see article links and validate the title | ||
Then User clicks on the journal link and validate the title | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-1698 @NCIATWP-4434 | ||
Scenario: Verify user is able to navigate to help link in JPSurv website | ||
Given User navigates to JPSurv home page | ||
Then User clicks on the help tab in the JPOSurv website | ||
Then Verify user is in the help section of the website | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-8065 @NCIATWP-1696 | ||
Scenario: Verify user clicks on the submit button to calculate cohert and model specifications | ||
Given User navigates to JPSurv home page | ||
Then User uploads file in the homepage | ||
Then User selects start year of diagnosis | ||
Then User selects end year of diagnosis | ||
Then User selects interval of maximum years of diagnosis | ||
Then User clicks on the NHL checkbox | ||
Then User clicks on the submit button to calculate cohert and model specifications | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-4322 | ||
Scenario: Verify reset button is working fine | ||
Given User navigates to JPSurv home page | ||
Then User uploads file in the homepage | ||
Then User selects start year of diagnosis | ||
Then User selects end year of diagnosis | ||
Then User selects interval of maximum years of diagnosis | ||
Then User clicks on the NHL checkbox | ||
Then User clicks on the reset button to reset the selected data | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-7693 @NCIATWP-7692 @NCIATWP-7662 @NCIATWP-6662 | ||
Scenario: Verify user is able to do the conditional survival calculation | ||
Given User navigates to JPSurv home page | ||
Then User uploads file in the homepage | ||
Then User selects start year of diagnosis | ||
Then User selects end year of diagnosis | ||
Then User selects interval of maximum years of diagnosis | ||
Then User clicks on the NHL checkbox | ||
Then User clicks on the submit button to calculate cohert and model specifications | ||
Then User expands the conditional survival calculation field | ||
Then User clicks on the conditional survival recalculation checkbox | ||
Then User selects the start and end conditional intervals | ||
Then User clicks on the submit button | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-7763 @NCIATWP-7690 | ||
Scenario: Verify user is able to do the conditional survival calculation with multiple intervals | ||
Given User navigates to JPSurv home page | ||
Then User uploads file in the homepage | ||
Then User selects start year of diagnosis | ||
Then User selects end year of diagnosis | ||
Then User selects interval of maximum years of diagnosis | ||
Then User clicks on the NHL checkbox | ||
Then User clicks on the submit button to calculate cohert and model specifications | ||
Then User expands the conditional survival calculation field | ||
Then User clicks on the conditional survival recalculation checkbox | ||
Then User selects the start and end conditional intervals | ||
Then User clicks on the add interval | ||
Then User selects the start and end conditional intervals in the new interval | ||
Then User clicks on the submit button | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-8384 @NCIATWP-2232 @NCIATWP-1699 @NCIATWP-4383 | ||
Scenario: Verify user is able to click on the full dataset and workspace link | ||
Given User navigates to JPSurv home page | ||
Then User uploads file in the homepage | ||
Then User selects start year of diagnosis | ||
Then User selects end year of diagnosis | ||
Then User selects interval of maximum years of diagnosis | ||
Then User clicks on the NHL checkbox | ||
Then User clicks on the submit button to calculate cohert and model specifications | ||
Then User clicks on the download full dataset link | ||
Then User click on the save workspace link | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-1697 | ||
Scenario: Verify user is able to upload the CSV file under the same input type | ||
Given User navigates to JPSurv home page | ||
Then User selects CSV file as input type | ||
Then User uploads CSV file in the homepage | ||
|
||
@Smoke @satya @playwright @Regression @CIATWP-8046 @NCIATWP-8045 @NCIATWP-1714 | ||
Scenario: Verify user is able to get the data on uploading ZIP file under the workspace as the input type | ||
Given User navigates to JPSurv home page | ||
Then User selects workspace as input type | ||
Then User uploads the ZIP file in the homepage | ||
Then User clicks on the submit button after uploading file | ||
Then User clicks on every presentation of nav item | ||
Then Verify user is able to hide the configuration panel | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-7664 @NCIATWP-7657 @NCIATWP-2190 | ||
Scenario: Verify user is able to click on the every presentation of nav item and also able to hide the configuration panel | ||
Given User navigates to JPSurv home page | ||
Then User uploads file in the homepage | ||
Then User selects start year of diagnosis | ||
Then User selects end year of diagnosis | ||
Then User selects interval of maximum years of diagnosis | ||
Then User clicks on the NHL checkbox | ||
Then User clicks on the submit button to calculate cohert and model specifications | ||
Then User clicks on every presentation of nav item | ||
Then Verify user is able to hide the configuration panel | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-4625 | ||
Scenario: Verify user is able to submit the data to the email | ||
Given User navigates to JPSurv home page | ||
Then User uploads file in the homepage | ||
Then User selects start year of diagnosis | ||
Then User selects end year of diagnosis | ||
Then User selects interval of maximum years of diagnosis | ||
Then User clicks on the NHL checkbox | ||
Then User selects the long running job checkbox | ||
Then User enters "JPSurv NHL job" as job name and "[email protected]" as email in the notification section | ||
Then User clicks on the submit button after uploading file | ||
Then Verify the data is submitted to the email | ||
|
||
@Smoke @satya @playwright @Regression @NCIATWP-2749 | ||
Scenario: Verify user changes cohort type from NHL to CML and clicks on every presentation of nav item | ||
Given User navigates to JPSurv home page | ||
Then User uploads file in the homepage | ||
Then User selects start year of diagnosis | ||
Then User selects end year of diagnosis | ||
Then User selects interval of maximum years of diagnosis | ||
Then User selects both on the NHL and CML checkbox | ||
Then User clicks on the submit button to calculate cohert and model specifications | ||
Then User changes cohort from NHL to CML | ||
Then User clicks on every presentation of nav item | ||
Then Verify user is able to hide the configuration panel |
99 changes: 99 additions & 0 deletions
99
src/test/java/ANALYSIS_TOOLS/JPSurv/pages/JPSurvHomePagePlaywright.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
package ANALYSIS_TOOLS.JPSurv.pages; | ||
|
||
public class JPSurvHomePagePlaywright { | ||
|
||
/*** | ||
* HELP TAB IN JPSURV | ||
*/ | ||
public static String helpTabElement = "//a[normalize-space()='Help']"; | ||
|
||
/*** | ||
* HELP WEBSITE URL IN JPSURV | ||
*/ | ||
public static String helpWebsite = "https://analysistools-dev.cancer.gov/jpsurv/help"; | ||
|
||
/*** | ||
* START YEAR IDENTIFIER | ||
*/ | ||
public static String startYear = "//select[@name='yearStart']"; | ||
|
||
/*** | ||
* END YEAR IDENTIFIER | ||
*/ | ||
public static String endYear = "//select[@name='yearEnd']"; | ||
|
||
/*** | ||
* INTERVAL OF MAXIMUM YEAR OF DIAGNOSIS | ||
*/ | ||
public static String intervalForDiagnosis = "//select[@name='yearStart']"; | ||
|
||
/*** | ||
* NON HODGKIN LYMPHOMA LOCATOR | ||
*/ | ||
public static String nhlLocator = "//select[@name='yearEnd']"; | ||
|
||
/*** | ||
* CONDITIONAL SURVIVAL CALCULATION LOCATOR | ||
*/ | ||
public static String cscLocator = "//button[normalize-space()='Conditional Survival Calculation']"; | ||
|
||
/*** | ||
* CONDITIONAL SURVIVAL CALCULATION CHECKBOX LOCATOR | ||
*/ | ||
public static String cscCheckBoxLocator = "//input[@id='conditional']"; | ||
|
||
/*** | ||
* RECALCULATE BUTTON LOCATOR | ||
*/ | ||
public static String recalculateButton = "//div[@class='accordion-body']//button[@type='submit'][normalize-space()='Recalculate']"; | ||
|
||
/*** | ||
* ADD INTERVAL LOCATOR | ||
*/ | ||
public static String addInterval = "//span[@title='Add Interval']"; | ||
|
||
/*** | ||
* DOWNLOAD FULL DATASET LOCATOR | ||
*/ | ||
public static String downloadDataset = "//button[normalize-space()='Download Full Dataset']"; | ||
|
||
/*** | ||
* EXPORT WORKSPACE LOCATOR | ||
*/ | ||
public static String exportWorkspace = "//button[normalize-space()='Export Workspace']"; | ||
|
||
/*** | ||
* INPUT TYPE LOCATOR | ||
*/ | ||
public static String inputType = "//select[@id='inputType']"; | ||
|
||
/*** | ||
* SUBMIT BUTTON LOCATOR | ||
*/ | ||
public static String submitButtonLocator = "//button[@type='submit']"; | ||
|
||
/*** | ||
* SEND NOTIFICATION LOCATOR | ||
*/ | ||
public static String sendNotification = "//input[@id='sendNotification']"; | ||
|
||
/*** | ||
* JOB SUBMITTED LOCATOR | ||
*/ | ||
public static String jobSubmitted = "//div[contains(text(),'Your job has been submitted')]"; | ||
|
||
/*** | ||
* COHORT SELECTION LOCATOR | ||
*/ | ||
public static String selectCohort = "//label[normalize-space()='Cohort']//parent::div//select"; | ||
|
||
/*** | ||
* DOI ORG LINK | ||
*/ | ||
public static String doiOrg = "https://doi.org/10.1158/1055-9965.EPI-21-0423"; | ||
|
||
/*** | ||
* INPUT FILE LOCATOR | ||
*/ | ||
public static String inputFileLocator = "xpath=//input[@id='inputFile']"; | ||
} |
Oops, something went wrong.