Skip to content

Commit 5c6f18c

Browse files
authored
Addition of academic year selection
1 parent d61c6a0 commit 5c6f18c

File tree

1 file changed

+80
-18
lines changed

1 file changed

+80
-18
lines changed

performance-tests/E2E/upload-cohort-data.jmx

Lines changed: 80 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194
<boolProp name="TransactionController.includeTimers">false</boolProp>
195195
</TransactionController>
196196
<hashTree>
197-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="https://qa.mavistesting.com/start">
197+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="https://qa.mavistesting.com/start" enabled="true">
198198
<stringProp name="HTTPSampler.path">start</stringProp>
199199
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
200200
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -210,7 +210,7 @@
210210
<boolProp name="TransactionController.includeTimers">false</boolProp>
211211
</TransactionController>
212212
<hashTree>
213-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="https://qa.mavistesting.com/users/sign-in">
213+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="https://qa.mavistesting.com/users/sign-in" enabled="true">
214214
<stringProp name="HTTPSampler.path">users/sign-in</stringProp>
215215
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
216216
<stringProp name="HTTPSampler.method">GET</stringProp>
@@ -237,11 +237,11 @@
237237
<hashTree/>
238238
</hashTree>
239239
</hashTree>
240-
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Login">
240+
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Login" enabled="true">
241241
<boolProp name="TransactionController.includeTimers">false</boolProp>
242242
</TransactionController>
243243
<hashTree>
244-
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="https://qa.mavistesting.com/users/sign-in">
244+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="https://qa.mavistesting.com/users/sign-in" enabled="true">
245245
<stringProp name="HTTPSampler.path">users/sign-in</stringProp>
246246
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
247247
<stringProp name="HTTPSampler.method">POST</stringProp>
@@ -283,7 +283,7 @@
283283
</collectionProp>
284284
</HeaderManager>
285285
<hashTree/>
286-
<BoundaryExtractor guiclass="BoundaryExtractorGui" testclass="BoundaryExtractor" testname="Authenticity_Token Boundary Extractor">
286+
<BoundaryExtractor guiclass="BoundaryExtractorGui" testclass="BoundaryExtractor" testname="Authenticity_Token Boundary Extractor" enabled="true">
287287
<stringProp name="BoundaryExtractor.useHeaders">false</stringProp>
288288
<stringProp name="BoundaryExtractor.refname">Authenticity_Token</stringProp>
289289
<stringProp name="BoundaryExtractor.lboundary">&lt;form action=&quot;/users/teams&quot; accept-charset=&quot;UTF-8&quot; method=&quot;post&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;authenticity_token&quot; value=&quot;</stringProp>
@@ -297,7 +297,7 @@
297297
<stringProp name="ConstantTimer.delay">${__Random(20000,35000,)}</stringProp>
298298
</ConstantTimer>
299299
<hashTree/>
300-
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Organisation ID Extractor">
300+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Organisation ID Extractor" enabled="true">
301301
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
302302
<stringProp name="RegexExtractor.refname">organisationId</stringProp>
303303
<stringProp name="RegexExtractor.regex">class=&quot;nhsuk-radios__input&quot; type=&quot;radio&quot; value=&quot;(.*?)&quot;</stringProp>
@@ -309,7 +309,7 @@
309309
<hashTree/>
310310
</hashTree>
311311
</hashTree>
312-
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Select team">
312+
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Select team" enabled="true">
313313
<boolProp name="TransactionController.includeTimers">false</boolProp>
314314
</TransactionController>
315315
<hashTree>
@@ -373,7 +373,7 @@
373373
<stringProp name="ConstantTimer.delay">${__Random(5000,10000,)}</stringProp>
374374
</ConstantTimer>
375375
<hashTree/>
376-
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Authenticity_Token Regular Expression Extractor">
376+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Authenticity_Token Regular Expression Extractor" enabled="true">
377377
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
378378
<stringProp name="RegexExtractor.refname">Authenticity_Token</stringProp>
379379
<stringProp name="RegexExtractor.regex">Import records&lt;\/button&gt;&lt;input type=&quot;hidden&quot; name=&quot;authenticity_token&quot; value=&quot;(.*?)&quot;</stringProp>
@@ -385,7 +385,7 @@
385385
<hashTree/>
386386
</hashTree>
387387
</hashTree>
388-
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="ImportRecords">
388+
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="ImportRecords" enabled="true">
389389
<boolProp name="TransactionController.includeTimers">false</boolProp>
390390
</TransactionController>
391391
<hashTree>
@@ -412,7 +412,7 @@
412412
<stringProp name="ConstantTimer.delay">${__Random(5000,10000,)}</stringProp>
413413
</ConstantTimer>
414414
<hashTree/>
415-
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Authenticity_Token Regular Expression Extractor">
415+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Authenticity_Token Regular Expression Extractor" enabled="true">
416416
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
417417
<stringProp name="RegexExtractor.refname">Authenticity_Token</stringProp>
418418
<stringProp name="RegexExtractor.regex">&lt;form action=&quot;\/draft-import\/type&quot; .*?name=&quot;authenticity_token&quot; value=&quot;(.*?)&quot;</stringProp>
@@ -475,6 +475,68 @@
475475
</ConstantTimer>
476476
<hashTree/>
477477
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Authenticity_Token Regular Expression Extractor">
478+
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
479+
<stringProp name="RegexExtractor.refname">Authenticity_Token</stringProp>
480+
<stringProp name="RegexExtractor.regex">action=&quot;\/draft-import\/academic-year&quot; .*? name=&quot;authenticity_token&quot; value=&quot;(.*?)&quot;</stringProp>
481+
<stringProp name="RegexExtractor.template">$1$</stringProp>
482+
<stringProp name="RegexExtractor.default">Authenticity_Token2_NotFound</stringProp>
483+
<boolProp name="RegexExtractor.default_empty_value">false</boolProp>
484+
<stringProp name="RegexExtractor.match_number">1</stringProp>
485+
</RegexExtractor>
486+
<hashTree/>
487+
</hashTree>
488+
</hashTree>
489+
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Academic year">
490+
<boolProp name="TransactionController.includeTimers">false</boolProp>
491+
</TransactionController>
492+
<hashTree>
493+
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="https://qa.mavistesting.com/draft-import/academic-year">
494+
<stringProp name="HTTPSampler.path">draft-import/academic-year</stringProp>
495+
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
496+
<stringProp name="HTTPSampler.method">POST</stringProp>
497+
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
498+
<boolProp name="HTTPSampler.postBodyRaw">false</boolProp>
499+
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
500+
<collectionProp name="Arguments.arguments">
501+
<elementProp name="draft_import[academic_year]" elementType="HTTPArgument">
502+
<boolProp name="HTTPArgument.always_encode">true</boolProp>
503+
<stringProp name="Argument.name">draft_import[academic_year]</stringProp>
504+
<stringProp name="Argument.value">2024</stringProp>
505+
<stringProp name="Argument.metadata">=</stringProp>
506+
<boolProp name="HTTPArgument.use_equals">true</boolProp>
507+
</elementProp>
508+
<elementProp name="authenticity_token" elementType="HTTPArgument">
509+
<boolProp name="HTTPArgument.always_encode">true</boolProp>
510+
<stringProp name="Argument.name">authenticity_token</stringProp>
511+
<stringProp name="Argument.value">${Authenticity_Token}</stringProp>
512+
<stringProp name="Argument.metadata">=</stringProp>
513+
<boolProp name="HTTPArgument.use_equals">true</boolProp>
514+
</elementProp>
515+
<elementProp name="_method" elementType="HTTPArgument">
516+
<boolProp name="HTTPArgument.always_encode">false</boolProp>
517+
<stringProp name="Argument.value">put</stringProp>
518+
<stringProp name="Argument.metadata">=</stringProp>
519+
<boolProp name="HTTPArgument.use_equals">true</boolProp>
520+
<stringProp name="Argument.name">_method</stringProp>
521+
</elementProp>
522+
</collectionProp>
523+
</elementProp>
524+
</HTTPSamplerProxy>
525+
<hashTree>
526+
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP Header manager" enabled="true">
527+
<collectionProp name="HeaderManager.headers">
528+
<elementProp name="Content-Type" elementType="Header">
529+
<stringProp name="Header.name">Content-Type</stringProp>
530+
<stringProp name="Header.value">application/x-www-form-urlencoded</stringProp>
531+
</elementProp>
532+
</collectionProp>
533+
</HeaderManager>
534+
<hashTree/>
535+
<ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="Think Time (5-10s)" enabled="false">
536+
<stringProp name="ConstantTimer.delay">${__Random(5000,10000,)}</stringProp>
537+
</ConstantTimer>
538+
<hashTree/>
539+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="Authenticity_Token Regular Expression Extractor" enabled="true">
478540
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
479541
<stringProp name="RegexExtractor.refname">Authenticity_Token</stringProp>
480542
<stringProp name="RegexExtractor.regex">&lt;form enctype=&quot;multipart/form-data&quot; action=&quot;/cohort-imports&quot; accept-charset=&quot;UTF-8&quot; method=&quot;post&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;authenticity_token&quot; value=&quot;(.*?)&quot; autocomplete=&quot;off&quot; /&gt;</stringProp>
@@ -553,7 +615,7 @@ ${__FileToString(${BaseDirectory}${FileName},,)}&#xd;
553615
</elementProp>
554616
</HTTPSamplerProxy>
555617
<hashTree>
556-
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
618+
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion">
557619
<collectionProp name="Asserion.test_strings">
558620
<stringProp name="296172956">&lt;div class=&quot;govuk-notification-banner govuk-notification-banner--success&quot; data-module=&quot;govuk-notification-banner&quot; role=&quot;alert&quot; aria-labelledby=&quot;govuk-notification-banner-title&quot;&gt;</stringProp>
559621
</collectionProp>
@@ -563,15 +625,15 @@ ${__FileToString(${BaseDirectory}${FileName},,)}&#xd;
563625
<intProp name="Assertion.test_type">16</intProp>
564626
</ResponseAssertion>
565627
<hashTree/>
566-
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="Setting While Loop Initiator" enabled="true">
628+
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="Setting While Loop Initiator">
567629
<stringProp name="cacheKey">true</stringProp>
568630
<stringProp name="filename"></stringProp>
569631
<stringProp name="parameters"></stringProp>
570632
<stringProp name="script">vars.put(&quot;CompletedStatus&quot;,&quot;NotYetCompleted&quot;)</stringProp>
571633
<stringProp name="scriptLanguage">groovy</stringProp>
572634
</JSR223PostProcessor>
573635
<hashTree/>
574-
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="CohortImportId Regular Expression Extractor" enabled="true">
636+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="CohortImportId Regular Expression Extractor">
575637
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
576638
<stringProp name="RegexExtractor.refname">CohortImportId</stringProp>
577639
<stringProp name="RegexExtractor.regex">&lt;a class=&quot;nhsuk-link&quot; href=&quot;/cohort-imports/(\d+)&quot;&gt;</stringProp>
@@ -581,7 +643,7 @@ ${__FileToString(${BaseDirectory}${FileName},,)}&#xd;
581643
<stringProp name="RegexExtractor.match_number">1</stringProp>
582644
</RegexExtractor>
583645
<hashTree/>
584-
<BoundaryExtractor guiclass="BoundaryExtractorGui" testclass="BoundaryExtractor" testname="LogOut_Authenticity_Token Boundary Extractor" enabled="true">
646+
<BoundaryExtractor guiclass="BoundaryExtractorGui" testclass="BoundaryExtractor" testname="LogOut_Authenticity_Token Boundary Extractor">
585647
<stringProp name="BoundaryExtractor.useHeaders">false</stringProp>
586648
<stringProp name="BoundaryExtractor.refname">LogOut_Authenticity_Token</stringProp>
587649
<stringProp name="BoundaryExtractor.lboundary">&lt;form class=&quot;button_to&quot; method=&quot;post&quot; action=&quot;/logout&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;_method&quot; value=&quot;delete&quot; autocomplete=&quot;off&quot; /&gt;&lt;button class=&quot;app-header__account-button&quot; type=&quot;submit&quot;&gt;Log out&lt;/button&gt;&lt;input type=&quot;hidden&quot; name=&quot;authenticity_token&quot; value=&quot;</stringProp>
@@ -600,7 +662,7 @@ ${__FileToString(${BaseDirectory}${FileName},,)}&#xd;
600662
<hashTree/>
601663
</hashTree>
602664
</hashTree>
603-
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Processing Time for Cohort Import" enabled="true">
665+
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Processing Time for Cohort Import">
604666
<boolProp name="TransactionController.includeTimers">true</boolProp>
605667
</TransactionController>
606668
<hashTree>
@@ -619,7 +681,7 @@ ${__FileToString(${BaseDirectory}${FileName},,)}&#xd;
619681
</elementProp>
620682
</HTTPSamplerProxy>
621683
<hashTree>
622-
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="CompletedStatus Regular Expression Extractor" enabled="true">
684+
<RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="CompletedStatus Regular Expression Extractor">
623685
<stringProp name="RegexExtractor.useHeaders">false</stringProp>
624686
<stringProp name="RegexExtractor.refname">CompletedStatus</stringProp>
625687
<stringProp name="RegexExtractor.regex">&lt;strong class=&quot;nhsuk-tag nhsuk-tag--green&quot;&gt;(Completed)&lt;/strong&gt;</stringProp>
@@ -629,7 +691,7 @@ ${__FileToString(${BaseDirectory}${FileName},,)}&#xd;
629691
<stringProp name="RegexExtractor.match_number">1</stringProp>
630692
</RegexExtractor>
631693
<hashTree/>
632-
<BoundaryExtractor guiclass="BoundaryExtractorGui" testclass="BoundaryExtractor" testname="LogOut_Authenticity_Token Boundary Extractor" enabled="true">
694+
<BoundaryExtractor guiclass="BoundaryExtractorGui" testclass="BoundaryExtractor" testname="LogOut_Authenticity_Token Boundary Extractor">
633695
<stringProp name="BoundaryExtractor.useHeaders">false</stringProp>
634696
<stringProp name="BoundaryExtractor.refname">LogOut_Authenticity_Token</stringProp>
635697
<stringProp name="BoundaryExtractor.lboundary">&lt;form class=&quot;button_to&quot; method=&quot;post&quot; action=&quot;/logout&quot;&gt;&lt;input type=&quot;hidden&quot; name=&quot;_method&quot; value=&quot;delete&quot; autocomplete=&quot;off&quot; /&gt;&lt;button class=&quot;app-header__account-button&quot; type=&quot;submit&quot;&gt;Log out&lt;/button&gt;&lt;input type=&quot;hidden&quot; name=&quot;authenticity_token&quot; value=&quot;</stringProp>
@@ -661,7 +723,7 @@ ${__FileToString(${BaseDirectory}${FileName},,)}&#xd;
661723
</hashTree>
662724
</hashTree>
663725
</hashTree>
664-
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Logout">
726+
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="Logout" enabled="true">
665727
<boolProp name="TransactionController.includeTimers">false</boolProp>
666728
</TransactionController>
667729
<hashTree>

0 commit comments

Comments
 (0)