Web test Download handling really slow

2 posts, 0 answers
  1. aplicaciones
    aplicaciones avatar
    34 posts
    Member since:
    Apr 2017

    Posted 06 Feb Link to this post

    Hello,

    I will try to depict my scenario as best as possible:

    Browser:  Internet Explorer 11
    To simplify: I have a rather simple Web Test in which I have to connect a Popup window and then  download a file. 

    My code is like this: 

     

    //Connect to Popup

    Manager.WaitForNewBrowserConnect("https://someWebAdresss", true, 15000);
     Manager.ActiveBrowser.WaitUntilReady();

     

     DownloadDialogsHandler handler = new DownloadDialogsHandler(ActiveBrowser, DialogButton.SAVE, savedLocation, Manager.Desktop);

     //Trigger the dialog.
     Manager.DialogMonitor.Start();

    handler.WaitUntilHandled();

     

    The issue I am facing right now is that the Download handling is really slow when executed with Telerik. By contrast, if I do this manually it's completely normal. Let me clarify this: the "toolbar" which offers the Save As appears but it takes (sometimes) a lot of time to execute. And then, when the download path is being set it also takes a lot of time.

    What I would like to know is whether I am doing something wrong or if there is any way to speed up this.
    PS: I have attached a sample of the download toolbar window to be more clear but this is not the actual image of my test.
    Regards,
    Sebastian

  2. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    308 posts

    Posted 07 Feb Link to this post

    Hello Sebastian,

    Thank you for detailed case description.

    The time-related problem I could identify here is related to the last line of code provided. If there is no time set in the WaitUntilHandled method it will use the maximum time set to wait for an element. Try to use a time interval as a method's argument to speed up the execution of this step:
    dialog.WaitUntilHandled(20000);

    Here is a sample in a doc article for a reference. I hope this will solve the problem. 

    Best Regards,
    Nikolay Petrov
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top