Skip to content

Commit

Permalink
Merge pull request #288 from CBIIT/muzipovay2
Browse files Browse the repository at this point in the history
CHARMS RAS @CP2-3730 @CP2-3703 Verifying participants can complete screeners, verifying that the Consent Record field Assent signed is true after minor aged 11-13 submits assent.
  • Loading branch information
Mariachaudhry authored Oct 8, 2024
2 parents 4b15827 + 79c7a4f commit b588c4d
Show file tree
Hide file tree
Showing 18 changed files with 305 additions and 109 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ public class CHARMS_Data_File_Path_Constants {
public static final String RAS_SCENARIO_TWO_DATA = "src/test/java/ServiceNow/CHARMS/Resources/RASScenario2.xlsx";
public static final String RAS_SCENARIO_THREE_DATA = "ServiceNow/CHARMS/Resources/RASScenario3.xlsx";
public static final String RAS_SCENARIO_FOUR_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario4.xlsx";
public static final String RAS_SCENARIO_FIVE_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/GenAIData/Gen_AI_Data_Set_1.xlsx";
public static final String RAS_SCENARIO_AGE_11_13_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario_Consent_Age_11-13.xlsx";
public static final String RAS_SCENARIO_AGE_14_17_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario_Consent_Age_14-17.xlsx";
public static final String RAS_SCENARIO_FIVE_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/GenAIData/Gen_AI_Data_Set_1.xlsx";
public static final String RAS_SCENARIO_AGE_UNDER_7 = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario_Consent_Age_Under-7.xlsx";
public static final String RAS_SCENARIO_AGE_7_10_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario_Consent_Age_7-10.xlsx";
public static final String RAS_SCENARIO_AGE_11_13_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario_Consent_Age_11-13.xlsx";
public static final String RAS_SCENARIO_AGE_14_17_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario_Consent_Age_14-17.xlsx";
public static final String RAS_SCENARIO_ADULT_NEEDS_LAR = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario_Consent_Adult_Needs_LAR.xlsx";
public static final String RAS_SCENARIO_ADULT = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/RASScenario_Consent_Adult.xlsx";
public static final String IIQ_SAMPLE_FORM = "https://ncidccpssurveys.gov1.qualtrics.com/jfe/form/SV_37PVCadeAqdT6Ki?family_member_id=5671bd521bafa1106daea681f54bcb68&study=RASopathies";
public static final String FHQ_SCENARIO_ONE_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/FHQScenario1.xlsx";
public static final String FHQ_SCENARIO_TWO_DATA = System.getProperty("user.dir") + "/src/test/java/ServiceNow/CHARMS/Resources/FHQScenario2.xlsx";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ Feature: RAS Consent Scenarios
Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
And logs in via Okta with username "<Email>" and password "<Password>"
And "Download Study Consent" text shows on participant portal and when clicked downloads "Consent Record"

Examples:
| Email | Password | ScreenerScenario | ConsentStatus | ConsentType | ResponseType | AccountResetScriptURL |
| consent_participant@yopmail.com | Charms123$ | screenerScenario1 | Complete | Adult | CHARMS e-consent | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |
# | [email protected] | Charms123$ | screenerScenarioAge14-17 | Complete | Aged 14 - 17, signed consent required | CHARMS e-consent | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |
| Email | Password | ScreenerScenario | ConsentStatus | ConsentType | ResponseType | AccountResetScriptURL |
| consent_participant@yopmail.com | Charms123$ | screenerScenario1 | Complete | Adult | CHARMS e-consent | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |

@muzipovay2 @RAS_STUDY @CP2-3603 @selenium @RAS_Regression
Scenario Outline: Verifying consent workflows for an adult participant, and then verifying that a Download Study Consent widget shows on portal and when clicked downloads the most recent Consent Record
Expand All @@ -32,7 +30,6 @@ Feature: RAS Consent Scenarios
Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
And logs in via Okta with username "<Email>" and password "<Password>"
And "Download Study Consent" text shows on participant portal and when clicked downloads "Consent Record"

Examples:
| Email | Password | ScreenerScenario | ConsentStatus | ConsentType | ResponseType | AccountResetScriptURL |
| consent_participant@yopmail.com | Charms123$ | screenerScenario1 | Complete | Adult | Participant upload to portal | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |
Expand All @@ -46,7 +43,7 @@ Feature: RAS Consent Scenarios
And logs in via Okta with username "<Email>" and password "<Password>"
And clicks on "Eligibility Questionnaire" to begin survey
When the participant submits a screener from excel sheet "<ScreenerScenario>"
Then Study Team member logs in to Native View and completest consent call "<ScreenerScenario>", "<ConsentStatus>", "<ConsentType>", "<ResponseType>", "<ParentGuardianStatus>", "<NumberOfGuardianSignaturesRequired>", "<NumberOfParentGuardianSignaturesReceived>"
Then Study Team member logs in to Native View and completes consent call "<ScreenerScenario>", "<ConsentStatus>", "<ConsentType>", "<ResponseType>", "<ParentGuardianStatus>", "<NumberOfGuardianSignaturesRequired>", "<NumberOfParentGuardianSignaturesReceived>"
And Study Team member logs out of Native View
And a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
And logs in via Okta with username "<Email>" and password "<Password>"
Expand All @@ -60,3 +57,35 @@ Feature: RAS Consent Scenarios
Examples:
| Email | Password | ScreenerScenario | ConsentStatus | ConsentType | ResponseType | ParentGuardianStatus | NumberOfGuardianSignaturesRequired | NumberOfParentGuardianSignaturesReceived | AccountResetScriptURL |
| consent_participant@yopmail.com | Charms123$ | screenerScenarioAge11-13 | Complete | Aged 11 - 13, signed assent required | CHARMS e-consent | Parents, Married | 1 | 1 | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |

@muzipovay2 @RAS_STUDY @selenium @CP2-3730 @RAS_Regression
Scenario: Verifying that when a minor aged 11-13 has completed Assent, the field Assent signed is true in their Native View Consent Record
Given test automation account "https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597" has been reset
And a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
And logs in via Okta with username "[email protected]" and password "Charms123$"
And clicks on "Eligibility Questionnaire" to begin survey
When the participant submits a screener from excel sheet "screenerScenarioAge11-13"
Then Study Team member logs in to Native View and completes consent call "screenerScenarioAge11-13", "Complete", "Aged 11 - 13, signed assent required", "CHARMS e-consent", "Parents, Married", "1", "0"
And Study Team member logs out of Native View
And a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
And logs in via Okta with username "[email protected]" and password "Charms123$"
And participant clicks on Study Assent and completes form with "Charms123$"
And participant logs out of RAS portal
Then Study Team member logs in to Native View and verifies that the field Assent signed is true "screenerScenarioAge11-13"

@muzipovay2 @RAS_STUDY @selenium @CP2-3703 @RAS_Regression
Scenario Outline: Verifying that Adult/Minor participants can complete the Eligibility Questionnaire
Given test automation account "<AccountResetScriptURL>" has been reset
Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
And logs in via Okta with username "<Email>" and password "<Password>"
And clicks on "Eligibility Questionnaire" to begin survey
When the participant submits a screener from excel sheet "<ScreenerScenario>"
And Study Team member logs in to Native View and verifies that a new screener has been submitted "<ScreenerScenario>"
Examples:
| Email | Password | ScreenerScenario | AccountResetScriptURL |
| consent_participant@yopmail.com | Charms123$ | screenerScenarioAdult | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |
| consent_participant@yopmail.com | Charms123$ | screenerScenarioAdult-NeedsLAR | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |
| consent_participant@yopmail.com | Charms123$ | screenerScenarioAgeUnder7 | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |
| consent_participant@yopmail.com | Charms123$ | screenerScenarioAge7-10 | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |
| consent_participant@yopmail.com | Charms123$ | screenerScenarioAge11-13 | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |
| consent_participant@yopmail.com | Charms123$ | screenerScenarioAge14-17 | https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597 |
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ Feature: RAS Screener Scenarios
Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
And logs in via Okta with username "<Email>" and password "<Password>"
And clicks on "Eligibility Questionnaire" to begin survey
# When the participant submits a screener from excel sheet "<ScreenerScenario>"
When the participant submits a screener from excel sheet "<ScreenerScenario>"
# Then screener data from "<ScreenerScenario>" is verified
# And the consent is submitted for "<ScreenerScenario>"
# Then data submitted for scenario is verified in native from the excel sheet "<ScreenerScenario>"
# Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
# And logs in via Okta with username "<Email>" and password "<Password>"
# And clicks on the IIQ Form
# And a participant enters username "<Email>" and pin
# And the participant submits a Individual Information Questionnaire for excel sheet "<IIQScenario>"
# Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
# And logs in via Okta with username "<Email>" and password "<Password>"
# And clicks on the Ras Survey Form
# And a participant enters username "<Email>" and pin
# When the participant submits a RAS Survey from excel sheet "<SurveyScenario>"
And the consent is submitted for "<ScreenerScenario>"
Then data submitted for scenario is verified in native from the excel sheet "<ScreenerScenario>"
Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
And logs in via Okta with username "<Email>" and password "<Password>"
And clicks on the IIQ Form
And a participant enters username "<Email>" and pin
And the participant submits a Individual Information Questionnaire for excel sheet "<IIQScenario>"
Given a participant is on the RASopathies Longitudinal Cohort Study login page "myRASLoginPage"
And logs in via Okta with username "<Email>" and password "<Password>"
And clicks on the Ras Survey Form
And a participant enters username "<Email>" and pin
When the participant submits a RAS Survey from excel sheet "<SurveyScenario>"
Examples:
| Email | Password | ScreenerScenario | IIQScenario | SurveyScenario |
| charmsras1@yahoo.com | RASTest2022$$ | screenerScenario1 | IIQScenario1 | RASSurveyScenario1 |
Expand Down
Loading

0 comments on commit b588c4d

Please sign in to comment.