jmeter-operator icon indicating copy to clipboard operation
jmeter-operator copied to clipboard

stop the test

Open chechuironman opened this issue 4 years ago • 1 comments

how can I stop a running test?

chechuironman avatar Apr 30 '20 10:04 chechuironman

Call the stoptest.sh script from the jmeter-master pod should work.

# check the jmeter-master pod name first localhost$ kubectl -n tqa get pods # open a shell then run stoptest.sh localhost$ kubectl exec -i -t -n tqa tqa-loadtest-jmeter-master-your-pod-name "--" sh -c "clear; (bash || ash || sh)" root@tqa-loadtest-jmeter-master-your-pod-name:/# /jmeter/apache-jmeter-5.0/bin/stoptest.sh

Or you can make a script.

https://github.com/kubernauts/jmeter-operator/blob/9de46870386bb5438e7183f41e99add44d0cc6ca/start_test.sh#L44

Open the jmeter-opereator/start_test.sh and change the last line as follows:

kubectl -n $namespace exec -ti $master_pod -- /jmeter/apache-jmeter-5.0/bin/stoptest.sh

and save it to jmeter-operator/stop_test.sh file.

Though I didn't try above script, however, it might work well. ;)

Good luck.

shocky avatar May 14 '21 12:05 shocky