'How to write Dynamic Transaction names with loop count in truclient

I want to define dynamic transaction name with a variable in it like for(var i=0;i<=5;i++)

LR.startTransaction("Application_TransactionLoopcount_"+myloopcount); Truclient step1 Truclient step2

LR.endTransaction("Application_TransactionLoopcount_"+myloopcount, "Auto");

Expecting transaction like: Application_TransactionLoopcount_1

But always throwing an syntax expection Pls advice



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source