0
votes

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.

2
When you say "start the test as part of the installation", how does the trigger to the test actually happen? Is it through command line or is there a separate Jenkins job for this? Please do elaborate the entire scenarioM Navneet Krishna

2 Answers

0
votes

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

0
votes

if you are triggering jmeter scripts via jenkins , you can have a post build operation after script execution using jenkins.

I am using powershell in jenkins to run jmeter in non gui mode, once test is done doing other post build operations.