1717 required : true
1818 type : boolean
1919 default : ' true'
20- input_file :
21- description : " Require: Input file name used for all steps ."
20+ URN :
21+ description : " Required: what URN to run the test against ."
2222 required : true
2323 type : string
2424 duration :
2525 description : " Optional (default 3600) Duration of nurse journey test, in seconds. This will include ramp-up."
2626 required : false
27- type : number
27+ type : string
2828 threads :
2929 description : " Optional (default 70) Threads to run. Equivalent to the number of nurses using the system."
3030 required : false
31- type : number
31+ type : string
3232 ramp_up :
3333 description : " Optional (default 900) Ramp-up time in seconds. Threads will be gradually started up over this time."
3434 required : false
35- type : number
35+ type : string
3636 vaccination_loop :
3737 description : " Optional (default 20) Vaccination loop. The number of vaccinations each nurse will perform before logging and back in again."
3838 required : false
39- type : number
39+ type : string
40+ row_count :
41+ description : " Optional (default 1000) number of rows in the cohort file."
42+ required : false
43+ type : string
4044
4145
4246# env:
8791 id : timestamp
8892 run : echo "timestamp=$(date '+%Y%m%d%H%M%S')" >> $GITHUB_ENV
8993
94+ - name : Create new cohort file
95+ if : inputs.runDataPrep == true
96+ run : |
97+ mkdir -p generate-cohort-output
98+ generate-cohort-output_dir=generate-cohort-output
99+ jmeter/bin/jmeter -n -t performance-tests/E2E/generate-cohort.jmx \
100+ -l $generate-cohort-output_dir/samples.jtl \
101+ -j $generate-cohort-outputt_dir/jmeter.log \
102+ -e -o $generate-cohort-output_dir/upload-report \
103+ -JAuthToken=${{secrets.HTTP_AUTH_TOKEN_FOR_TESTS}} \
104+ -JURN=${{inputs.URN}} \
105+ -JRowCount=${{inputs.row_count}}
106+
90107 - name : Run file import for new file
91108 if : inputs.runDataPrep == true
92109 run : |
97114 -j $import_output_dir/jmeter.log \
98115 -e -o $import_output_dir/upload-report \
99116 -JAuthToken=${{secrets.HTTP_AUTH_TOKEN_FOR_TESTS}} \
100- -JInputFile=${{inputs.input_file}}
117+ -JInputFile="cohortnew.csv"
101118
102119 - name : Run Consent Journey for imported records
103120 if : inputs.runDataPrep == true
@@ -109,7 +126,7 @@ jobs:
109126 -j $consent_output_dir/jmeter.log \
110127 -e -o $consent_output_dir/consent-report \
111128 -JAuthToken=${{secrets.HTTP_AUTH_TOKEN_FOR_TESTS}} \
112- -JInputFile=${{inputs.input_file}}
129+ -JInputFile="cohortnew.csv"
113130
114131 - name : Run nurse journey JMeter test
115132 if : inputs.runNurse == true
@@ -125,7 +142,7 @@ jobs:
125142 -JThreads=${{inputs.threads}} \
126143 -JRampUp=${{inputs.ramp_up}} \
127144 -JVaccinationLoop=${{inputs.vaccination_loop}} \
128- -JInputFile=${{inputs.input_file}}
145+ -JInputFile="cohortnew.csv"
129146
130147 - name : Upload consent journey JMeter output
131148 if : inputs.runDataPrep == true
0 commit comments