Jmeter test status on non-gui mode

1/22/2020

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.

-- rubico
jmeter
kubernetes-helm

2 Answers

1/27/2020

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

-- Dmitri T
Source: StackOverflow

1/23/2020

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.

-- Sankaranand
Source: StackOverflow