jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

Propagate errors from __groovy execution

Open vlsi opened this issue 2 years ago • 0 comments

Use case

Errors from __groovy(...) should be visible to users, and it should fail the test.

Currently, org.apache.jmeter.functions.Groovy catches all exceptions and it only logs them.

See https://github.com/apache/jmeter/blob/a45bcc9172e5d3fd5cb12c3792dce5b0559187c6/src/functions/src/main/java/org/apache/jmeter/functions/Groovy.java#L131-L134

The errors should not be ignored by default.

Possible solution

No response

Possible workarounds

No response

JMeter Version

5.6.2

Java Version

No response

OS Version

No response

vlsi avatar Dec 18 '23 13:12 vlsi