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

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

 

  • 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

  • Hi,

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

    Regards,

    Shlomi

  • 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

  • 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

  • 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

  • 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

  • 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

     

  • 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

  • Verified Answer

    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