Highlighted
Contributor.
Contributor.
4596 views

Download ** failed - end event error due to network timeout.

Jump to solution

Hi, 

When executing a TruClient script that performs a click to initiates download that exceeded 30 seconds,  it gave the error 'end event error due to network timeout'.  

Our application does not provide any visual indication when the download completes. Hence, the Wait for Object approach as suggested by the link here does not apply:

/t5/LoadRunner-Practitioners-Forum/End-event-error-due-to-network-timeout/td-p/6371177

I tried to follow the instruction in the link to change the network timeout settings. It does not work.
I am still getting network timeout error after 30 seconds.

Can someone suggest way to increase the network timeout or if there is other way to approach this issue?

Thanks!
Jason

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

Hi,

Try this:
Add a file with the name additionalSettings.json
With the content:

{
                TruClient: {
                                SyncNetworkTimeoutInterval: 10000,
                                SyncNetworkTimeoutMaxIntervals: 10,
                                AsyncNetworkTimeoutInterval: 10000,
                                AsyncNetworkTimeoutMaxIntervals: 10
                }
}

 

Regards,
Michal

 

 

View solution in original post

19 Replies
Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..

Re: Download ** failed - end event error due to network timeout.

Jump to solution

Have you tried Object Sync option?


Thank you,
NaveenKumar Namachivayam | www.QAInsights.com
Learn TruWeb - my Udemy Course "Performance Testing using TruWeb" | https://www.udemy.com/performance-testing-using-truweb/?couponCode=YOUTUBE
0 Likes
Highlighted
Contributor.
Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

If you mean wait for an Object to show up,, that won't work for us as there is no visual to indicate that the download has completed.

Thanks!
Jason

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

Hi,

I suggest trying "Document Loaded" end event instead of "Step network completed"

Regards,

Shlomi

Highlighted
Contributor.
Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

Thanks Shiomi. 

I had tried all possible end event including Document Loaded. Only the Step network completed event applies to the download click action. Document does not get re-loaded after performing the download.. 

I wish to know how we can increase this network timeout settings. 

Regards,
Jason

0 Likes
Highlighted
Contributor.
Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

I have exhausted all available options including the solutions suggested in this link,

/t5/LoadRunner-Practitioners-Forum/End-event-error-due-to-network-timeout/td-p/6371177

Still I am unable to find a way that can increase the network timeout.  

Wait For Object and Document Loaded will not work for me for reasons I had explained in earlier post.

Thanks!
Jason

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

Hi, 

In 12.53 Patch4, we added new function which allow users to filter out step unrelated requests in TruClient script. It's only relevant for steps that has network related end event or steps that does not have end event.  You may have a try. 

Below are the TruClient APIs for filtering network requests. Add one genaric API Action, and you can try with this API. 

 TC.addNetworkFilter(filters, include, applyTo)

  • filters - one or more urls separated with ';'. The url can have the wildcard '*' which cam match 0 or more characters
  • include - whether to include or exclude the urls requests matching the filter.  optional argument. default false.
  • applyTo - which type of request the filter applies to [ "Xhr", "NonXhr", "All" ] optional argument. default All.

TC.clearNetworkFilters - clear the filters

Highlighted
Contributor.
Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

Thank You!

We wish to measure the time it took for the download activity, hence filtering it is not an option we can take.

If anyone can tell me how or where we can adjust the network timeout that will be great!

Regards,
Jason

0 Likes
Highlighted
Contributor.
Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

Can someone suggest ways to adjust the network timeout? I am at my wits end on this.

I cannot use other end events like Wait For Object to detect the end state of the download activity as there is no visual to indicate download is complete. Also Document Loaded will not work too as the download does not trigger a page refresh.

All I am seeing is a spinning icon on the browser tab and the file name showing up in the download bar right at the bottom.

I need this to work to measure the transaction response time for the download.

Any download that took longer than 30 seconds gives a network timeout error.

I am running some benchmarking test and need this to work. 

Thanks!
Jason

 

0 Likes
Highlighted
Contributor.
Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

This is a blocking issue that prevent us from taking transaction response time base on network end event that exceed 30 seconds. 

Can someone please point me in a right direction to seek resolution for this?

Thanks!
Jason

0 Likes
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

Hi,

Try this:
Add a file with the name additionalSettings.json
With the content:

{
                TruClient: {
                                SyncNetworkTimeoutInterval: 10000,
                                SyncNetworkTimeoutMaxIntervals: 10,
                                AsyncNetworkTimeoutInterval: 10000,
                                AsyncNetworkTimeoutMaxIntervals: 10
                }
}

 

Regards,
Michal

 

 

View solution in original post

Highlighted
Contributor.
Contributor.

Re: Download ** failed - end event error due to network timeout.

Jump to solution

Thanks Michal! This works with some minor modification to the content. Added few double quotes.

{
  "TruClient": {
    "SyncNetworkTimeoutInterval": 60000,
    "SyncNetworkTimeoutMaxIntervals": 10,
    "AsyncNetworkTimeoutInterval": 60000,
    "AsyncNetworkTimeoutMaxIntervals" : 10
  }
}

Awesome!

Regards,
Jason

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.