I am using TruClient 12.02.
I am having a problem with TC.transactionDuration().
What I do is this:
var overallTransaction = "BUC02_Main";
TC.setParam("pOverallTransaction", overallTransaction); // store transaction name in paramter pOverallTransaction
then some other steps... (takes a few seconds)
window.alert("pOverallTransaction: " TC.getParam("pOverallTransaction") "\n" "transactionDuration: " TC.transactionDuration(TC.getParam("pOverallTransaction")) );
This returns an alert window with this info:
I would expect a (small) positive value for the transactionDuration and not a negative value.
Interestingly enough... when I save, close and reopen Vugen and run the script again, the result of the TC.transactionDuration() is now a positive number (like: 19.342)
When I run the script again, it returns that negative value. Mind you, i didn't finish the script (meaning: I did not run TC.endTransaction())
Any idea what is going on?