Search code examples
jmeter

JMeter Command Line Execution - Returning Status


I'm running jmeter test plans via command line and functionally its all working ok, but I want to return from jmeter two values: a boolean field indicating if an error was thrown by any step in the excecution (essentially a pass/fail indicator), and a value generated in jMeter and stored in a user defined variable. Is it possible to do this and if so how?


Solution

  • In the end I extended a BeanShell Listener script I had to write status of any errors to a txt file, as well as the variable I needed. Then I was able to parse this txt file in my batch file to extract the variable and check for pass/fail based on the existence of "error" in the file. I deleted the txt file after each execution to allow a new one to be genereated per execution.