apache / apache/jmeter

failureMessage is blank in csv generated by view result tree listener

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

Description

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

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.