A transation wrapping an "if" step in TruClient protocol always ends with failed status

  • KM00360437
  • 13-Feb-2013
  • 28-Jul-2014

Summary

A transaction wrapping an "if" step in TruClient protocol always ends with failed status even if it is successful. A workaround is provided to overcome the issue in LoadRunner 11.x.

Error

A transaction that wraps an "if" step in TruClient protocol will always report a "Failed" status even if it is successful.

Cause

The issue appear in LR 11.0x and is fixed in version 11.51.

Fix

To workaround the issue, add a dummy step of type "Evaluate JavaScript" (with no JavaScript code) right after the "if" step. Then include the "Evaluate JavaScript" step into the transaction and change the transaction's end to point to the "Eval JavaScript" step.

The script should now report the correct status of the transaction.