Skip to content

Commit 57a6dce

Browse files
authored
Add files via upload
Add rowcount to workflow inputs
1 parent 042e2f0 commit 57a6dce

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

performance-tests/E2E/generate_cohort.jmx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
66
<collectionProp name="Arguments.arguments"/>
77
</elementProp>
8-
<boolProp name="TestPlan.functional_mode">false</boolProp>
9-
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
108
</TestPlan>
119
<hashTree>
1210
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group">
@@ -102,7 +100,9 @@ writer = new PrintStream(new File(vars.get(&quot;BaseDirectory&quot;) + &quot;co
102100

103101
writer.println(&quot;CHILD_ADDRESS_LINE_1,CHILD_ADDRESS_LINE_2,CHILD_POSTCODE,CHILD_TOWN,CHILD_PREFERRED_GIVEN_NAME,CHILD_DATE_OF_BIRTH,CHILD_FIRST_NAME,CHILD_LAST_NAME,CHILD_NHS_NUMBER,PARENT_1_EMAIL,PARENT_1_NAME,PARENT_1_PHONE,PARENT_1_RELATIONSHIP,PARENT_2_EMAIL,PARENT_2_NAME,PARENT_2_PHONE,PARENT_2_RELATIONSHIP,CHILD_SCHOOL_URN&quot;)
104102

105-
for(outrow=1;outrow&lt;21;outrow++){
103+
rowcount=vars.get(&quot;RowCount&quot;).toInteger()
104+
105+
for(outrow=1;outrow&lt;=rowcount;outrow++){
106106
vars.put(&quot;CHILD_ADDRESS_LINE_1&quot;,r.nextInt(100000).toString() + &quot; &quot; + CHILD_ADDRESS_LINE_1.get(r.nextInt(CHILD_ADDRESS_LINE_1.size())).tokenize(&apos; &apos;)[-2] + &quot; &quot; + CHILD_ADDRESS_LINE_1.get(r.nextInt(CHILD_ADDRESS_LINE_1.size())).tokenize(&apos; &apos;).last())
107107
vars.put(&quot;CHILD_ADDRESS_LINE_2&quot;,CHILD_ADDRESS_LINE_2.get(r.nextInt(CHILD_ADDRESS_LINE_2.size())).tokenize(&apos; &apos;).first() + &quot; &quot; + CHILD_ADDRESS_LINE_2.get(r.nextInt(CHILD_ADDRESS_LINE_2.size())).tokenize(&apos; &apos;).last())
108108
vars.put(&quot;CHILD_POSTCODE&quot;,CHILD_POSTCODE.get(r.nextInt(CHILD_POSTCODE.size())).tokenize(&apos; &apos;).first() + &quot; &quot; + CHILD_POSTCODE.get(r.nextInt(CHILD_POSTCODE.size())).tokenize(&apos; &apos;).last())
@@ -146,14 +146,8 @@ writer.close();</stringProp>
146146
<stringProp name="scriptLanguage">groovy</stringProp>
147147
</JSR223Sampler>
148148
<hashTree/>
149-
<DebugSampler guiclass="TestBeanGUI" testclass="DebugSampler" testname="Debug Sampler" enabled="true">
150-
<boolProp name="displayJMeterProperties">false</boolProp>
151-
<boolProp name="displayJMeterVariables">true</boolProp>
152-
<boolProp name="displaySystemProperties">false</boolProp>
153-
</DebugSampler>
154-
<hashTree/>
155149
</hashTree>
156-
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
150+
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables">
157151
<collectionProp name="Arguments.arguments">
158152
<elementProp name="BaseDirectory" elementType="Argument">
159153
<stringProp name="Argument.name">BaseDirectory</stringProp>
@@ -170,10 +164,15 @@ writer.close();</stringProp>
170164
<stringProp name="Argument.value">${__P(URN, 114624)}</stringProp>
171165
<stringProp name="Argument.metadata">=</stringProp>
172166
</elementProp>
167+
<elementProp name="RowCount" elementType="Argument">
168+
<stringProp name="Argument.name">RowCount</stringProp>
169+
<stringProp name="Argument.value">${__P(RowCount,1000)}</stringProp>
170+
<stringProp name="Argument.metadata">=</stringProp>
171+
</elementProp>
173172
</collectionProp>
174173
</Arguments>
175174
<hashTree/>
176-
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
175+
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree">
177176
<boolProp name="ResultCollector.error_logging">false</boolProp>
178177
<objProp>
179178
<name>saveConfig</name>

0 commit comments

Comments
 (0)