77
88 workflow_dispatch :
99 inputs :
10+ runDataPrep :
11+ description : " Run data prep"
12+ required : true
13+ type : boolean
14+ default : ' true'
15+ runNurse :
16+ description : " Run the nurse journey"
17+ required : true
18+ type : boolean
19+ default : ' true'
1020 urn :
11- description : " URN - for a school in the QA environment. This session MUST HAVE A SESSION DATE FOR TODAY."
21+ description : " Required: URN for a school in the QA environment. This must have a session date for today and tomorrow."
22+ required : true
23+ type : string
24+ input_file :
25+ description : " Require: Input file name used for all steps."
1226 required : true
1327 type : string
1428 duration :
15- description : " Duration of nurse journey test, in seconds. This will include ramp-up."
29+ description : " Optional (default 3600) Duration of nurse journey test, in seconds. This will include ramp-up."
1630 required : false
1731 type : number
1832 threads :
19- description : " Threads to run. Equivalent to the number of nurses using the system."
33+ description : " Optional (default 70) Threads to run. Equivalent to the number of nurses using the system."
2034 required : false
2135 type : number
2236 ramp_up :
23- description : " Ramp-up time in seconds. Threads will be gradually started up over this time."
37+ description : " Optional (default 900) Ramp-up time in seconds. Threads will be gradually started up over this time."
2438 required : false
2539 type : number
2640 vaccination_loop :
27- description : " Vaccination loop. The number of vaccinations each nurse will perform before logging and back in again."
41+ description : " Optional (default 20) Vaccination loop. The number of vaccinations each nurse will perform before logging and back in again."
2842 required : false
2943 type : number
30- input_file :
31- description : " Input file name used for all steps."
32- required : false
33- type : string
44+
3445
3546# env:
3647# JMETER_PLUGIN_INSTALL_LIST: "jpgc-udp,jpgc-graphs-basic,jpgc-dummy,bzm-random-csv"
@@ -81,27 +92,30 @@ jobs:
8192
8293 - name : Run file import for new file
8394 run : |
95+ if : inputs.runDataPrep == true
8496 mkdir -p import-output
8597 import_output_dir=import-output
8698 echo "Placeholder step for file import"
8799
88- # - name: Run Consent Journey for imported records (2K records)
89- # run: |
90- # mkdir -p consent-output
91- # consent_output_dir=consent-output
92- # jmeter/bin/jmeter -n -t performance-tests/E2E/consent-journey.jmx \
93- # -l $consent_output_dir/samples.jtl \
94- # -j $consent_output_dir/jmeter.log \
95- # -e -o $consent_output_dir/consent-report \
96- # -JURN=${{inputs.urn}} \
97- # -JAuthToken=${{secrets.HTTP_AUTH_TOKEN_FOR_TESTS}} \
98- # -JInputFile=${{inputs.input_file}}
100+ - name : Run Consent Journey for imported records
101+ if : inputs.runDataPrep == true
102+ run : |
103+ mkdir -p consent-output
104+ consent_output_dir=consent-output
105+ jmeter/bin/jmeter -n -t performance-tests/E2E/consent-journey.jmx \
106+ -l $consent_output_dir/samples.jtl \
107+ -j $consent_output_dir/jmeter.log \
108+ -e -o $consent_output_dir/consent-report \
109+ -JURN=${{inputs.urn}} \
110+ -JAuthToken=${{secrets.HTTP_AUTH_TOKEN_FOR_TESTS}} \
111+ -JInputFile=${{inputs.input_file}}
99112
100113 - name : Run nurse journey JMeter test
114+ if : inputs.runNurse == true
101115 run : |
102116 mkdir -p nurse-output
103117 nurse_output_dir=nurse-output
104- jmeter/bin/jmeter -n -t performance-tests/E2E/ nurse-journey.jmx \
118+ jmeter/bin/jmeter -n -t performance-tests/nurse-journey.jmx \
105119 -l $nurse_output_dir/samples.jtl \
106120 -j $nurse_output_dir/jmeter.log \
107121 -e -o $nurse_output_dir/report \
@@ -114,13 +128,15 @@ jobs:
114128 -JInputFile=${{inputs.input_file}}
115129
116130 - name : Upload consent journey JMeter output
131+ if : inputs.runDataPrep == true
117132 uses : actions/upload-artifact@v4
118133 with :
119134 name : jmeter-consent-journey-output-${{ env.timestamp }}
120135 path : consent-output
121136 if-no-files-found : warn
122137
123138 - name : Upload nurse journey JMeter output
139+ if : inputs.runNurse == true
124140 uses : actions/upload-artifact@v4
125141 with :
126142 name : jmeter-nurse-journey-output-${{ env.timestamp }}
0 commit comments