Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHARMS - Github workflows and test case updates #395

Merged
merged 21 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CHARMS - RAS Regression
name: CHARMS - RAS Regression Part 1

on:
schedule:
Expand All @@ -20,7 +20,7 @@ jobs:
fetch-depth: 0

- name: Run specific runner class
run: mvn -B -q -Dtest="CHARMS.runners.Run_CHARMS_RAS_Regression_Test" test
run: mvn -B -q -Dtest="CHARMS.runners.Run_CHARMS_RAS_Regression_Test_1" test
continue-on-error: true

- name: Generate timestamp
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/CHARMS - RAS Regression Part 2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: CHARMS - RAS Regression Part 2

on:
schedule:
- cron: '45 13 * * MON-FRI'
workflow_dispatch:
inputs:
testBrowser:
description: 'Browser'
required: true
default: 'chrome'

jobs:
build:
runs-on: NCI-WINDOWS
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Run specific runner class
run: mvn -B -q -Dtest="CHARMS.runners.Run_CHARMS_RAS_Regression_Test_2" test
continue-on-error: true

- name: Generate timestamp
id: timestamp
run: |
$timeZone = [System.TimeZoneInfo]::FindSystemTimeZoneById("Eastern Standard Time")
$dateTime = [System.TimeZoneInfo]::ConvertTime([System.DateTime]::UtcNow, $timeZone)
$timestamp = $dateTime.ToString("yyyy-MM-dd_hh-mm-ss_tt")
Add-Content -Path $env:GITHUB_ENV -Value "timestamp=$timestamp"
- name: Determine report path
id: reportpath
run: echo "path=CHARMS-rasopathy-regression-reports" >> $GITHUB_ENV

- name: Upload Cucumber Report
uses: actions/upload-artifact@v4
if: always()
with:
name: CHARMS-RAS-REGRESSION-${{ env.timestamp }}
path: target/CHARMS-rasopathy-regression-reports/*

- name: Upload to SharePoint
shell: powershell
run: |
$Env:PATH = "C:\Users\juarezds\AppData\Local\Programs\Python\Python312;$Env:PATH"
python $Env:GITHUB_WORKSPACE\.github\scripts\upload_to_sharepoint.py
env:
FILES_PATH: target/CHARMS-rasopathy-regression-reports/*
SHAREPOINT_SITE_ID: ${{ secrets.SHAREPOINT_SITE_ID }}
SHAREPOINT_DRIVE_ID: ${{ secrets.SHAREPOINT_DRIVE_ID }}
tenant_id: ${{ secrets.SHAREPOINT_TENANT_ID }}
client_id: ${{ secrets.SHAREPOINT_CLIENT_ID }}
client_secret: ${{ secrets.SHAREPOINT_CLIENT_SECRET }}
timestamp: ${{ env.timestamp }}
UPLOAD_FOLDER: "Platform Scientific - CHARMS/TEST AUTOMATION REPORTS/Rasopathy"
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: CUSTOM BUSINESS (.NET) - Egrants Regression

on:
schedule:
# This corresponds to 5:30 PM EST (10:30 PM UTC) from Monday to Friday
- cron: '30 22 * * MON-FRI'
# This corresponds to 11:15 AM EST (16:15 PM UTC) from Monday to Friday
- cron: '15 16 * * MON-FRI'
workflow_dispatch:

jobs:
Expand All @@ -17,7 +17,7 @@ jobs:

- name: Run Egrants Regression Tests
shell: cmd
run: mvn -B -q -Dtest=CustomBusiness.Egrants.Runners.RunEgrantsRegressionTest test
run: mvn -B -q -Dtest=CUSTOM_BUSINESS.Egrants.runners.RunEgrantsRegressionTest test
continue-on-error: true

- name: Generate timestamp
Expand All @@ -35,7 +35,7 @@ jobs:
run: echo "::set-output name=path::Egrants-regression-reports"

- name: Upload Cucumber Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: Egrants-regression-report-${{ env.timestamp }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Run OA Intake Regression Tests
shell: cmd
run: mvn -B -q -Dtest=ServiceNow.OA_Intake.OAIntakeRunners.OAIntakeRegressionRunner test
run: mvn -B -q -Dtest=PLATFORM_BUSINESS.OA_Intake.runners.OAIntakeRegressionRunner test
continue-on-error: true

- name: Generate timestamp
Expand All @@ -35,7 +35,7 @@ jobs:
run: echo "::set-output name=path::OAIntake-regression-reports"

- name: Upload Cucumber Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: OAIntake-regression-report-${{ env.timestamp }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: echo "::set-output name=path::OCPL-Training-Regression-reports"

- name: Upload Cucumber Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: OCPL-Training-Regression-report-${{ env.timestamp }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/PLATFORM BUSINESS - SSJ - Regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Run specific runner class
shell: cmd
run: mvn -B -q -Dtest=SSJ_Regression_Runners test
run: mvn -B -q -Dtest="PLATFORM_BUSINESS.SSJ.runners.SSJ_Regression_Runners" test
continue-on-error: true

- name: Generate timestamp
Expand All @@ -34,7 +34,7 @@ jobs:
run: echo "::set-output name=path::ssj-regression-reports"

- name: Upload Cucumber Report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: cucumber-report-${{ env.timestamp }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ jobs:

- name: Determine report path
id: reportpath
run: echo "path=travel-regression-reports" >> $GITHUB_ENV
run: echo "path=Travel-Request-Regression-reports" >> $GITHUB_ENV

- name: Upload Cucumber Report
uses: actions/upload-artifact@v4
if: always()
with:
name: TRAVEL-REGRESSION-${{ env.timestamp }}
path: target/travel-regression-reports/*
path: target/Travel-Request-Regression-reports/*

- name: Upload to SharePoint
shell: powershell
run: |
$Env:PATH = "C:\Users\juarezds\AppData\Local\Programs\Python\Python312;$Env:PATH"
python $Env:GITHUB_WORKSPACE\.github\scripts\upload_to_sharepoint.py
env:
FILES_PATH: target/travel-regression-reports/*
FILES_PATH: target/Travel-Request-Regression-reports/*
SHAREPOINT_SITE_ID: ${{ secrets.SHAREPOINT_SITE_ID }}
SHAREPOINT_DRIVE_ID: ${{ secrets.SHAREPOINT_DRIVE_ID }}
tenant_id: ${{ secrets.SHAREPOINT_TENANT_ID }}
Expand Down
10 changes: 9 additions & 1 deletion src/test/java/CHARMS/constants/IIQ_Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ public class IIQ_Constants {
"This is a research study, and we don't currently know or understand all the risk factors involved with cancer. Therefore, some of the questions asked are for us to learn more about some of the risk factors that may potentially be related to cancer. By answering these questions, you are helping us to learn if there is a relationship between any of these risk factors and cancer.\n" +
"\n" +
"This questionnaire should take you approximately 15-20 minutes.";
public final String THIS_QUESTIONNAIRE_SHOULD_TAKE_YOU_APPROXIMATELY_30MIN_TO_COMPLETE = "This questionnaire should take you approximately 30 minutes to complete. It does not need to be completed all at once.\n" +
"\n" +
"We encourage you to take a break and return to complete the survey later, if needed.\n" +
"You can save your answers by clicking the \"Save and Next\" button in the survey and closing your browser window.\n" +
"When you return to the survey, you will be asked for a PIN code, provided during the log in process.\n" +
"This unique PIN code returns you to your previous spot in the questionnaire.\n" +
"\n" +
"The study team requests that you complete the questionnaire within two months from the date you start the questionnaire.";
public final String THIS_FIRST_QUESTION_OF_THE_QUESTIONNAIRE_TEXT = "This first section of the questionnaire\n" +
"asks you to tell us some general \n" +
"background information.";
Expand All @@ -29,7 +37,7 @@ public class IIQ_Constants {
public final String WHAT_IS_YOUR_RACE_CHECK_BOX = "What is your race? Please select all that apply.";
public final String ARE_YOU_OF_ASHKENAZY_JEWISH_DESCENT_RADIO_BUTTON = "Are you of Ashkenazi (Eastern European) Jewish descent?";
public final String WERE_YOU_RAISED_PRIMARILY_RADIO_BUTTON = "Were you raised primarily by someone other than your biological (blood) parent?";
public final String WHAT_IS_YOUR_DATE_OF_BIRTH_CALENDAR = "11/10/2004";
public final String WHAT_IS_YOUR_DATE_OF_BIRTH_CALENDAR = "What is your date of birth?";
public final String WHAT_IS_YOUR_DATE_OF_BIRTH_MONTH_DROP_DOWN = "What is your date of birth? Month";
public final String WHAT_IS_YOUR_DATE_OF_BIRTH_DAY_DROP_DOWN = "What is your date of birth? Day";
public final String WHAT_IS_YOUR_DATE_OF_BIRTH_YEAR_DROP_DOWN = "What is your date of birth? Year";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Feature: FHQ Native View
Description: This feature file contains scenarios where a Study Team member completes/verifies FHQ from Native View.

@muzipovay2 @RAS_STUDY @CP2-4180 @selenium @In-Progress
Scenario: Study team member fills in FHQ on participant's behalf
Given test automation account "https://service-test.nci.nih.gov/nav_to.do?uri=sys_script_fix.do?sys_id=b8daf9fa872096107e87a8a60cbb3597" has been reset
Given 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 "screenerScenarioAdult"
Given Study Team member logs in to Native View and navigates to participant's record "screenerScenarioAdult"
And Study Team member submits participant for review and marks them eligible
And navigates to participant Consent Record
And selects "Participant upload to portal" as the Collection Method
And selects Today as the Consent Call Scheduled Time
And selects Today as the Consent Call Date
And selects "Yes" for Copy of ConsentAssent Provided Before Signing
And selects "Yes" for Protocol Discussed in Private Setting
And selects "Yes" for Participant Verbalized Understanding of Study Conditions and Participation
And selects "Yes" for Questions Addressed Before Signing
And presses the Call Complete button
And attaches Family Cohort Study Consent pdf
And selects Today as the Consent Version
And presses the Hard Copy of Consent Received button
And selects Today as the Consent Date
And fills in "Rene Aguilar" for the Consent By field
And selects "Yes" for Consent Assent Obtained Before Study Procedures
And selects "Yes" for Copy of Signed Dated Consent Assent Given to Participant
And selects "Yes" from the Future Use of Specimens and Data by NIH dropdown
And selects "Yes" from the Future Use by Collaborators dropdown
And selects "Yes" from the Future Identifiable Use by Collaborators dropdown
Then Study Team member presses the Sign and Complete button
Then Study Team member fills out new FHQ for participant in NV
Loading
Loading