How to detect the test end while JMeter starts the test errors in Java
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
### Expected behavior
_No response_
### Actual behavior
I have a Java program that uses the StandardJMeterEngine runTest method to run tests. When the JMX file contains an errors that causes the StandardJMeterEngine notifyTestListenersOfStart method to throw an exception, similar to https://github.com/apache/jmeter/issues/6174, the NotifyTestListenersOfEnd method will not be called. As a result, my program cannot detect that the test has ended. How can I make my program detect that the test has ended in this scenario?
### Steps to reproduce the problem
1.Create a JMX file with an error, for example by adding a variable ${__intSum(${__time(,)},-3600000,)}, which will throw a NumberFormatException.
2.Run the JMX using the StandardJMeterEngine runTest method.
### JMeter Version
5.6.2
### Java Version
java version 17.0.6
### OS Version
windows 10
Contributor guide
Assessment
This issue has not been assessed yet.