Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to detect the test end while JMeter starts the test errors in Java #6284

Open
kkrrsq opened this issue Jun 3, 2024 · 0 comments
Open

Comments

@kkrrsq
Copy link

kkrrsq commented Jun 3, 2024

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 #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant