diff --git a/performance-tests/STS/nurse-journey.jmx b/performance-tests/STS/nurse-journey.jmx index 868d46c3c59..425fa4f2ee7 100644 --- a/performance-tests/STS/nurse-journey.jmx +++ b/performance-tests/STS/nurse-journey.jmx @@ -1,7 +1,7 @@ - + @@ -107,7 +107,7 @@ - + AuthToken @@ -202,7 +202,7 @@ false - + 1 1 true @@ -216,7 +216,7 @@ Test Plan - Mavis_NURSE - 4.4.0 + Mavis_NURSE - 6.2.0 Wait for STS alive @@ -236,10 +236,10 @@ log.info(vars.get("User")) log.info(vars.get("BaseURL")) - + Test Plan - Mavis_NURSE - 4.4.0 + Mavis_NURSE - 6.2.0 Get patients for processing @@ -258,10 +258,10 @@ log.info(vars.get("BaseURL")) - + Test Plan - Mavis_NURSE - 4.4.0 + Mavis_NURSE - 6.2.0 Vaccinate patients @@ -2425,17 +2425,17 @@ vars.put("PARENT_1_RELATIONSHIP",relationship) - + ${__jexl3("${VaccinationGiven}" != "Vaccinated")} false true - + false - + groovy @@ -2452,7 +2452,7 @@ if(vars.get("VaccineName")=="flu"){ - + groovy @@ -2461,7 +2461,7 @@ if(vars.get("VaccineName")=="flu"){ - + sessions/${SessionId}/patients/${PatientId}/${VaccineName}/vaccinations true POST @@ -2557,7 +2557,7 @@ if(vars.get("VaccineName")=="flu"){ - + Content-Type @@ -2566,7 +2566,7 @@ if(vars.get("VaccineName")=="flu"){ - + false Authenticity_Token <form action="/draft-vaccination-record/batch" .*? name="authenticity_token" value="(.*?)" @@ -2576,7 +2576,7 @@ if(vars.get("VaccineName")=="flu"){ 1 - + false BatchId <input id="draft-vaccination-record-batch-id-(\d+)-field" class="nhsuk-radios__input" @@ -2586,11 +2586,11 @@ if(vars.get("VaccineName")=="flu"){ 1 - + ${__Random(35000,48000,)} - + Which batch did you use? @@ -2601,7 +2601,7 @@ if(vars.get("VaccineName")=="flu"){ - + groovy @@ -2614,7 +2614,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ - + draft-vaccination-record/batch true POST @@ -2647,7 +2647,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ - + Content-Type @@ -2656,7 +2656,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ - + false Authenticity_Token \/draft-vaccination-record\/confirm"[\s\S]*?authenticity_token" value="(.*?)" @@ -2897,11 +2897,11 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ - + false - + Get a random patient to search for, use flu as programme but don't consume the data localhost 9191 @@ -2916,7 +2916,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ - + false Result <html><title>(.*?)</title> @@ -2926,7 +2926,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false PROGRAMME <body>-(.*?), @@ -2936,7 +2936,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false CHILD_FIRST_NAME <body>.*?,(.*?), @@ -2946,7 +2946,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false CHILD_LAST_NAME <body>.*?,.*?,(.*?), @@ -2956,7 +2956,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false CHILD_DATE_OF_BIRTH <body>.*?,.*?,.*?,(.*?), @@ -2966,7 +2966,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false CHILD_ADDRESS_LINE_1 <body>.*?,.*?,.*?,.*?,(.*?), @@ -2976,7 +2976,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false CHILD_POSTCODE <body>.*?,.*?,.*?,.*?,.*?,(.*?), @@ -2986,7 +2986,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false PARENT_1_NAME <body>.*?,.*?,.*?,.*?,.*?,.*?,(.*?), @@ -2996,7 +2996,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false PARENT_1_RELATIONSHIP <body>.*?,.*?,.*?,.*?,.*?,.*?,.*?,(.*?), @@ -3006,7 +3006,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false PARENT_1_EMAIL <body>.*?,.*?,.*?,.*?,.*?,.*?,.*?,.*?,(.*?), @@ -3016,7 +3016,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false PARENT_1_PHONE <body>.*?,.*?,.*?,.*?,.*?,.*?,.*?,.*?,.*?,(.*?), @@ -3026,7 +3026,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + false SessionId <body>.*?,.*?,.*?,.*?,.*?,.*?,.*?,.*?,.*?,.*?,(.*?)< @@ -3036,7 +3036,7 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ 1 - + groovy @@ -3044,13 +3044,13 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ prev.setIgnore() - + ${__Random(60000,90000,)} - - patients?q=${CHILD_FIRST_NAME}+${CHILD_FIRST_NAME}&%5Bconsent_statuses%5D%5B%5D=&triage_status=&vaccination_status=&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 + + patients?q=${CHILD_FIRST_NAME}+${CHILD_LAST_NAME}&%5Bconsent_statuses%5D%5B%5D=&triage_status=&vaccination_status=&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 true GET true @@ -3064,6 +3064,24 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ ${__Random(3000,5000,)} + + false + SearchCount + Showing [\s\S]*?of <b>(.*?)< + $1$ + CountNotFound + false + 1 + + + + groovy + + + true + log.info("Full name search returned " + vars.get("SearchCount")) + + patients?q=&%5Bconsent_statuses%5D%5B%5D=&consent_statuses%5B%5D=no_response&triage_status=&vaccination_status=&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 @@ -3080,9 +3098,27 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ ${__Random(3000,5000,)} + + false + SearchCount + Showing [\s\S]*?of <b>(.*?)< + $1$ + CountNotFound + false + 1 + + + + groovy + + + true + log.info("No consent search returned " + vars.get("SearchCount")) + + - patients?q=&%5Bconsent_statuses%5D%5B%5D=&triage_status=safe_to_vaccinate&vaccination_status=&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 + patients?q=&%5Bconsent_statuses%5D%5B%5D=&triage_status=safe_to_vaccinate&vaccination_status=&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 true GET true @@ -3096,9 +3132,27 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ ${__Random(3000,5000,)} + + false + SearchCount + Showing [\s\S]*?of <b>(.*?)< + $1$ + CountNotFound + false + 1 + + + + groovy + + + true + log.info("Safe to vaccinate search returned " + vars.get("SearchCount")) + + - patients?q=&%5Bconsent_statuses%5D%5B%5D=&triage_status=&vaccination_status=due&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 + patients?q=&%5Bconsent_statuses%5D%5B%5D=&triage_status=&vaccination_status=due&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 true GET true @@ -3112,6 +3166,24 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ ${__Random(3000,5000,)} + + false + SearchCount + Showing [\s\S]*?of <b>(.*?)< + $1$ + CountNotFound + false + 1 + + + + groovy + + + true + log.info("Due vaccination search returned " + vars.get("SearchCount")) + + patients?q=&%5Bconsent_statuses%5D%5B%5D=&triage_status=&vaccination_status=&%5Byear_groups%5D%5B%5D=&year_groups%5B%5D=10&year_groups%5B%5D=11&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 @@ -3128,12 +3200,147 @@ if(vars.get("BatchId")=="BatchId_NotFound"){ ${__Random(3000,5000,)} + + false + SearchCount + Showing [\s\S]*?of <b>(.*?)< + $1$ + CountNotFound + false + 1 + + + + groovy + + + true + log.info("Year group search returned " + vars.get("SearchCount")) + + + + + patients?q=${CHILD_FIRST_NAME}&%5Bconsent_statuses%5D%5B%5D=&triage_status=&vaccination_status=&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 + true + GET + true + false + + + + + + + ${__Random(3000,5000,)} + + + + false + SearchCount + Showing [\s\S]*?of <b>(.*?)< + $1$ + CountNotFound + false + 1 + + + + groovy + + + true + log.info("First name search returned " + vars.get("SearchCount")) + + + + + patients?q=${CHILD_LAST_NAME}&%5Bconsent_statuses%5D%5B%5D=&triage_status=&vaccination_status=&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 + true + GET + true + false + + + + + + + ${__Random(3000,5000,)} + + + + false + SearchCount + Showing [\s\S]*?of <b>(.*?)< + $1$ + CountNotFound + false + 1 + + + + groovy + + + true + log.info("Last name search returned " + vars.get("SearchCount")) + + + + + patients?q=${CHILD_PARTIAL_NAME}&%5Bconsent_statuses%5D%5B%5D=&triage_status=&vaccination_status=&%5Byear_groups%5D%5B%5D=&date_of_birth_day=&date_of_birth_month=&date_of_birth_year=&archived=0&missing_nhs_number=0&aged_out_of_programmes=0 + true + GET + true + false + + + + + + + ${__Random(3000,5000,)} + + + + groovy + + + true + String name= vars.get("CHILD_FIRST_NAME") + +Integer namelength=name.length() + +vars.put("CHILD_PARTIAL_NAME",name[0..(namelength-2)]) +log.info(vars.get("CHILD_PARTIAL_NAME")) + + + + + + false + SearchCount + Showing [\s\S]*?of <b>(.*?)< + $1$ + CountNotFound + false + 1 + + + + groovy + + + true + log.info("Partial name search with " + vars.get("CHILD_PARTIAL_NAME") + " returned " + vars.get("SearchCount")) + + - + ${__jexl3("${responseCode}"!="200")} @@ -3178,7 +3385,7 @@ log.info("Response code is " + vars.get("responseCode")); - + 1000