Skip to content

Commit 1a5328d

Browse files
committed
Updated jmx script
1 parent 283ab73 commit 1a5328d

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

Diff for: helm/jmeter-k8s-starterkit/scenario/gsma-inbound-transaction/GSMA-inbound-transaction.jmx

+10-14
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
99
<collectionProp name="Arguments.arguments"/>
1010
</elementProp>
11-
<stringProp name="TestPlan.user_define_classpath">/Users/dhavalmaniyar/Downloads/wiremock-standalone-3.0.4.jar</stringProp>
11+
<stringProp name="TestPlan.user_define_classpath">/etc/wiremock/wiremock-standalone-3.0.4.jar</stringProp>
1212
</TestPlan>
1313
<hashTree>
1414
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
@@ -20,17 +20,17 @@
2020
</elementProp>
2121
<elementProp name="protocol" elementType="Argument">
2222
<stringProp name="Argument.name">protocol</stringProp>
23-
<stringProp name="Argument.value">${__P(protocol,http)}</stringProp>
23+
<stringProp name="Argument.value">${__P(protocol,https)}</stringProp>
2424
<stringProp name="Argument.metadata">=</stringProp>
2525
</elementProp>
2626
<elementProp name="port" elementType="Argument">
2727
<stringProp name="Argument.name">port</stringProp>
28-
<stringProp name="Argument.value">${__P(port,8443)}</stringProp>
28+
<stringProp name="Argument.value">${__P(port,)}</stringProp>
2929
<stringProp name="Argument.metadata">=</stringProp>
3030
</elementProp>
3131
<elementProp name="threads" elementType="Argument">
3232
<stringProp name="Argument.name">threads</stringProp>
33-
<stringProp name="Argument.value">${__P(threads,500)}</stringProp>
33+
<stringProp name="Argument.value">${__P(threads,200)}</stringProp>
3434
<stringProp name="Argument.metadata">=</stringProp>
3535
</elementProp>
3636
<elementProp name="duration" elementType="Argument">
@@ -40,7 +40,7 @@
4040
</elementProp>
4141
<elementProp name="rampup" elementType="Argument">
4242
<stringProp name="Argument.name">rampup</stringProp>
43-
<stringProp name="Argument.value">${__P(rampup,5)}</stringProp>
43+
<stringProp name="Argument.value">${__P(rampup,10)}</stringProp>
4444
<stringProp name="Argument.metadata">=</stringProp>
4545
</elementProp>
4646
<elementProp name="operationshost" elementType="Argument">
@@ -75,7 +75,7 @@
7575
</elementProp>
7676
<elementProp name="" elementType="Header">
7777
<stringProp name="Header.name">X-CallbackURL</stringProp>
78-
<stringProp name="Header.value">http://localhost:8080/callback</stringProp>
78+
<stringProp name="Header.value">http://jmeter-slaves-svc.jmeter.svc.cluster.local:8080/callback</stringProp>
7979
</elementProp>
8080
</collectionProp>
8181
</HeaderManager>
@@ -249,6 +249,7 @@ try {
249249
System.out.println(&quot;################ STARTUP ###############&quot;);
250250
WireMockServer wireMockServer = new WireMockServer(WireMockConfiguration.options().port(8080));
251251
System.out.println(&quot;starting.......&quot;);
252+
// wireMockServer.stop();
252253
wireMockServer.start();
253254

254255
bsh.shared.myObject = wireMockServer;
@@ -257,6 +258,7 @@ try {
257258
StubMapping stubMapping = stubFor(post(&quot;/callback&quot;).willReturn(status(200)));
258259
System.out.println(&quot;--- stub registered ---&quot;);
259260

261+
Thread.sleep(3000);
260262
}
261263
catch (Throwable ex) {
262264
log.error(&quot;Error in Beanshell&quot;, ex);
@@ -392,7 +394,7 @@ Thread.sleep(120000);
392394
<stringProp name="ThreadGroup.num_threads">1</stringProp>
393395
<stringProp name="ThreadGroup.ramp_time">1</stringProp>
394396
<boolProp name="ThreadGroup.delayedStart">false</boolProp>
395-
<boolProp name="ThreadGroup.scheduler">true</boolProp>
397+
<boolProp name="ThreadGroup.scheduler">false</boolProp>
396398
<stringProp name="ThreadGroup.duration">${duration}</stringProp>
397399
<stringProp name="ThreadGroup.delay">${duration}</stringProp>
398400
<boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp>
@@ -406,13 +408,7 @@ Thread.sleep(1000);
406408
</BeanShellSampler>
407409
<hashTree/>
408410
<BeanShellAssertion guiclass="BeanShellAssertionGui" testclass="BeanShellAssertion" testname="Check for callback" enabled="true">
409-
<stringProp name="BeanShellAssertion.query">import com.github.tomakehurst.wiremock.WireMockServer;
410-
import static com.github.tomakehurst.wiremock.client.WireMock.*;
411-
import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
412-
import com.github.tomakehurst.wiremock.stubbing.*;
413-
import com.github.tomakehurst.wiremock.WireMockServer;
414-
import org.apache.jmeter.util.JMeterUtils;
415-
import java.utils.*;
411+
<stringProp name="BeanShellAssertion.query">import static com.github.tomakehurst.wiremock.client.WireMock.*;
416412
try{
417413

418414
System.out.println(&quot;LIST OF ALL EVENTS = &quot;+ getAllServeEvents().size());

0 commit comments

Comments
 (0)