Search code examples
jmeterkubernetes-helm

Jmeter test status on non-gui mode


How can i get jmeter test status in non-gui mode. Jenkins install jmeter helm chart on kuberntes and start the test as part of the installation, meaning that after the chart installed a script entry point will run automatically inside the container, jenkins is only trigger the chart. i want to know when the test is finished and get back the status to jenkins from the pod to publish the report test result on jenkins.


Solution

  • When JMeter's non-gui test execution is finished it returns a normal exit code which can be obtained:

    1. %errorlevel% environment variable in Windows
    2. $? environment variable in Unix and derivatives

    Not knowing the details of how you launch JMeter it is quite hard to come up with exact Jenkins configuration but I'm pretty much sure that you can utilize the aforementioned variables to get the JMeter execution status