apache / apache/jmeter

View Result Tree: incorrect display of Assertion Result when defined globally

Open
#5,338 7 comments 0 reactions 0 assignees View on GitHub
enhancement need info os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**Marc Stern** ([Bug 64539](https://bz.apache.org/bugzilla//show_bug.cgi?id=64539&redirect=false)):
I have a JSR223 Assertion defined at the Thread group level.
It is correctly executed for each HTTP Request sampler.
When the assertion fails via AssertionResult.setFailure(true), it correctly add a red Assertion Result in the View Result Tree.
Problem: the HTTP Request in the View Result Tree stays green. When looking at the View Result Tree, all tests seem OK (see screenshot).

If the same assertion is added inside each HTTP Request, the View Result Tree correctly displays the HTTP Request in red (but it would require to duplicate the assertion to thousands of requests which is not manageable).

Created attachment [1.png](https://apache.github.io/jmeter-bugzilla-attachments/39/64539/37317/1.png): screenshot

screenshot

OS: All

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.