8
8
<elementProp name =" TestPlan.user_defined_variables" elementType =" Arguments" guiclass =" ArgumentsPanel" testclass =" Arguments" testname =" User Defined Variables" enabled =" true" >
9
9
<collectionProp name =" Arguments.arguments" />
10
10
</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 >
12
12
</TestPlan >
13
13
<hashTree >
14
14
<Arguments guiclass =" ArgumentsPanel" testclass =" Arguments" testname =" User Defined Variables" enabled =" true" >
20
20
</elementProp >
21
21
<elementProp name =" protocol" elementType =" Argument" >
22
22
<stringProp name =" Argument.name" >protocol</stringProp >
23
- <stringProp name =" Argument.value" >${__P(protocol,http )}</stringProp >
23
+ <stringProp name =" Argument.value" >${__P(protocol,https )}</stringProp >
24
24
<stringProp name =" Argument.metadata" >=</stringProp >
25
25
</elementProp >
26
26
<elementProp name =" port" elementType =" Argument" >
27
27
<stringProp name =" Argument.name" >port</stringProp >
28
- <stringProp name =" Argument.value" >${__P(port,8443 )}</stringProp >
28
+ <stringProp name =" Argument.value" >${__P(port,)}</stringProp >
29
29
<stringProp name =" Argument.metadata" >=</stringProp >
30
30
</elementProp >
31
31
<elementProp name =" threads" elementType =" Argument" >
32
32
<stringProp name =" Argument.name" >threads</stringProp >
33
- <stringProp name =" Argument.value" >${__P(threads,500 )}</stringProp >
33
+ <stringProp name =" Argument.value" >${__P(threads,200 )}</stringProp >
34
34
<stringProp name =" Argument.metadata" >=</stringProp >
35
35
</elementProp >
36
36
<elementProp name =" duration" elementType =" Argument" >
40
40
</elementProp >
41
41
<elementProp name =" rampup" elementType =" Argument" >
42
42
<stringProp name =" Argument.name" >rampup</stringProp >
43
- <stringProp name =" Argument.value" >${__P(rampup,5 )}</stringProp >
43
+ <stringProp name =" Argument.value" >${__P(rampup,10 )}</stringProp >
44
44
<stringProp name =" Argument.metadata" >=</stringProp >
45
45
</elementProp >
46
46
<elementProp name =" operationshost" elementType =" Argument" >
75
75
</elementProp >
76
76
<elementProp name =" " elementType =" Header" >
77
77
<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 >
79
79
</elementProp >
80
80
</collectionProp >
81
81
</HeaderManager >
@@ -249,6 +249,7 @@ try {
249
249
System.out.println(" ################ STARTUP ###############" );
250
250
WireMockServer wireMockServer = new WireMockServer(WireMockConfiguration.options().port(8080));
251
251
System.out.println(" starting......." );
252
+ // wireMockServer.stop();
252
253
wireMockServer.start();
253
254
254
255
bsh.shared.myObject = wireMockServer;
@@ -257,6 +258,7 @@ try {
257
258
StubMapping stubMapping = stubFor(post(" /callback" ).willReturn(status(200)));
258
259
System.out.println(" --- stub registered ---" );
259
260
261
+ Thread.sleep(3000);
260
262
}
261
263
catch (Throwable ex) {
262
264
log.error(" Error in Beanshell" , ex);
@@ -392,7 +394,7 @@ Thread.sleep(120000);
392
394
<stringProp name =" ThreadGroup.num_threads" >1</stringProp >
393
395
<stringProp name =" ThreadGroup.ramp_time" >1</stringProp >
394
396
<boolProp name =" ThreadGroup.delayedStart" >false</boolProp >
395
- <boolProp name =" ThreadGroup.scheduler" >true </boolProp >
397
+ <boolProp name =" ThreadGroup.scheduler" >false </boolProp >
396
398
<stringProp name =" ThreadGroup.duration" >${duration}</stringProp >
397
399
<stringProp name =" ThreadGroup.delay" >${duration}</stringProp >
398
400
<boolProp name =" ThreadGroup.same_user_on_next_iteration" >true</boolProp >
@@ -406,13 +408,7 @@ Thread.sleep(1000);
406
408
</BeanShellSampler >
407
409
<hashTree />
408
410
<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.*;
416
412
try{
417
413
418
414
System.out.println(" LIST OF ALL EVENTS = " + getAllServeEvents().size());
0 commit comments