Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop the test #21

Open
chechuironman opened this issue Apr 30, 2020 · 1 comment
Open

stop the test #21

chechuironman opened this issue Apr 30, 2020 · 1 comment

Comments

@chechuironman
Copy link

how can I stop a running test?

@shocky
Copy link

shocky commented May 14, 2021

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.

kubectl -n $namespace exec -ti $master_pod -- /bin/bash /load_test "$test_name"

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants