Self-Solve Knowledge Search

Minimize Maximize
A transation wrapping an "if" step in TruClient protocol always ends with failed...
Title :
A transation wrapping an "if" step in TruClient protocol always ends with failed status
Document ID :
KM00360437
Product - Version:
loadrunner ;
OS :
Updated :
Mon Jul 28 10:05:54 GMT 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.
Problem

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.