loadrunner Hello All, I want to write the Test User Id of...

  • perf-test.com need your contributions to build up a strong repository of performance engineering resources.

A

Agam Jajoo

Guest
Hello All, I want to write the Test User Id of the each user used by controller during test execution. Just to see which user is causing the error Runtime settings are attached in the screenshot. Any help would be appreciated
picture
 
give a try to this code if (lr_get_transaction_status(“Transaction1”) == LR_FAIL) { lr_error_message("%s", LR_EVAL_STRING("{parameter}")); return -1; }
 
Use lr_set_transactions and in transaction name use the parameter name ,which u use for user, it will set the status as well as user name
 
If the userids all work in VuGen, I feel you are chasing the wrong issue. This is most likely NOT a userid issue!
 
^ I agree. If you're encountering this error only on the controller, it's a possibility that this is user concurrency issue. You might missed some more correlations?
 
one thing you can do do while running in controller when error occurs click on vusers and then right click on vusers and open vusers log u can find out which users are failing
 
BTW, since LR 12.02 there is a new useful API - lr_set_custom_error_message(). It allows setting a custom text to be output after built-in error messages. Can be useful for outputting various user-related info such as lr_whoami() output and script parameters.