apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
7.97k stars 2.02k forks source link

failureMessage is blank in csv generated by view result tree listener #6231

Open bodycombathuang opened 3 months ago

bodycombathuang commented 3 months ago

Expected behavior

failureMessage in csv should display "error"

Actual behavior

failureMessage in csv should display nothing

Steps to reproduce the problem

I have a JSR 233 assertion under a sampler (the sampler has several assertion, first is json assertion,second is the jsr 223 assertion, json assertion passes, but JSR 233 assertion fails) the code for the jsr233 assertion is

AssertionResult.setResultForFailure("error");

and view result tree listener which writes result to test.csv

run the test plan, I can see error is shown as failureMessage in view result tree in jmeter ui

but I check test.csv, the failureMessage column value is blank

the bug is not reproduced when the jsr 233 assertion is the first assertion in the sample's child list if the jsr 233 assertion is not first in the list( there is json assertion before it) the bug is reproduced

JMeter Version

5.6.2

Java Version

No response

OS Version

No response

bodycombathuang commented 3 months ago

[test.txt](https://github.com/apache/jmeter/files/14045882/test.txt)

after you download the file, rename it to test.jmx