Highlighted
Visitor.
246 views

Truclient script not executing second iteration in Vugen

Scaenario: I developed a script with Loadrunner Truclient protocol. I am executing it for 5 iterations in Vugen. After executing first iteration it is not moving to execute the second iteration. Even after the logout step gets completed for first iteration, it is not able to start the second iteration.

Solution: After logot, there are some additional pop ups that are thrown which needs to be handled for closing the current browser session and starting the new session (in this case a new iteration)

It can be handled by using the following line of javascript code in the tru client script:

Window.onbeforeunload=null; 

Mention the above line two or three times depending upon the number of times the pop up came

 

 

0 Likes
1 Reply
Highlighted
Visitor.

Re: Truclient script not executing second iteration in Vugen

Window.onbeforeunload=null;

This line of code means that we are forcibly closing the pop ups by setting the pop up window event to null

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.