apache / apache/jmeter

Propagate errors from __groovy execution

Open
#6,191 0 comments 0 reactions 0 assignees View on GitHub
enhancement to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.