End event error due to network timeout (533 Views)
Reply
Occasional Contributor
Posts: 5
Registered: ‎02-04-2014
Message 1 of 4 (533 Views)

End event error due to network timeout

Hello,

 

I create this post to share the solution to the "end event error due to network timeout" problem with Ajax TruClient protocol.

In my case, this error occurs when I'm clicking on a button who should generate a PDF document. This generation takes in average 120 seconds.

 

The HP support advise me to modify the user.js file loacted at several places (I don't know if modifing this file at all places is necessary):

<your_script_location>/profiles/interactive/

<your_script_location>/profiles/load/user_state

<your_script_location>/profiles/load/user_profile/profile

 

You have to add the following lines:

user_pref("LoadRunner.RTS.TruClient.SyncNetworkTimeoutInterval", 30000);
user_pref("LoadRunner.RTS.TruClient.SyncNetworkTimeoutMaxIntervals", 6); 

 

The first one value is a time in ms and the second is a number of retries.

Of course, you can modify these values to be in accordance with your needs.

 

This kind of modification only affect your current script.

I think you can do this modification permanently by modifying the user.js file into the VuGen install directory.

 

Hoping help you.

 

HP Expert
Posts: 280
Registered: ‎10-24-2011
Message 2 of 4 (526 Views)

Re: End event error due to network timeout

Hi,

I do not recommend to change the default values of those advanced settings.

Those timeouts often are triggered due to a real sync network issues in the application under test. Increasing the values might just delay the failure and decreasing it might raise the false alarm rate.

Guy Rosenthal
TruClient RnD Team Manager
LoadRunner RnD
Advisor
Posts: 27
Registered: ‎06-12-2014
Message 3 of 4 (184 Views)

Re: End event error due to network timeout

Guy, how do you recommend that we avoid the network timeout problem? We have async actions that can take 300 seconds or more. No matter what step timeouts we set, we always get the "network timeout" error within about a minute and our script fails long before the action completes. We tried waiting on document load or DOM load but neither one works with our application (they don't seem to get triggered when the action completes and the page updates).

 

Using 11.52 I don't see any way to set the network timeout per-step, so the above suggested changes seem like the only solution...

 

Thanks!

-Mark

HP Expert
Posts: 280
Registered: ‎10-24-2011
Message 4 of 4 (171 Views)

Re: End event error due to network timeout

Hi,

 

The post is about sync network and not async.

There is an async end event who behave differently. If you know in advance that the async roundtrip is long (5 minutes as you mentioned) maybe you should sync on DOM and enhance your solution or refine it.

 

 

Thanks.

Guy Rosenthal
TruClient RnD Team Manager
LoadRunner RnD
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.