jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

failureMessage is blank in csv generated by view result tree listener

Open bodycombathuang opened this issue 1 year ago • 1 comments

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 avatar Jan 24 '24 08:01 bodycombathuang

[ test.txt ](url)

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

bodycombathuang avatar Jan 25 '24 02:01 bodycombathuang