https://bz.apache.org/bugzilla/show_bug.cgi?id=57958

            Bug ID: 57958
           Summary: Failed assertions do not show in 'View Results Tree'
                    when inside check for JMeterThread.last_sample_ok
           Product: JMeter
           Version: 2.13
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 32760
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32760&action=edit
JMeter script demonstrating the problem described in this report.

In a test plan, there is a need to fire the logout step if login was successful
no matter which intermediate step fails.

In the test plan, the value of JMeterThread.last_sample_ok was used in an
if-controller with 'Evaluate for all children' turned on so that any failing
step inside the if-controller will skip the remaining steps.

This technique works, however, when assertions fail inside this if-controller,
they are not reported in the 'View Results Tree' as errors if 'Generate Parent
Sample' is enabled.

If these steps are not inside the above mentioned if-controller, they report
correctly even if 'Generate Parent Sample' is enabled.

Attached is an example JMeter script that demonstrates this problem stripped
down and with URLs replaced with wikipedia.org.

Running the script as posted, the 'View Results Tree' will only report logout.
The failure inside the previous if-controller that caused an error (due to an
assertion failure) is not reported.

If the if-controller 'Run Things' is moved outside the test for
JMeterThread.last_sample_ok, the error is reported correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to