Forum Discussion

k_steel's avatar
k_steel
New Contributor
15 years ago

Huge delay between events when executing script

Hi,


I have a script that does functional web testing of my application.  When I run the script, there is a huge delay between any of the events.  I am simply trying to set the text in a text box and then click a button on my web page, and I end up with a 20-30 second delay between these events:


TestedApps.iexplore_AgencyLender.Run

Set iexplore = Aliases.iexplore1

Call iexplore.ToURL("https://5280-webdevl-02/firstapprearch_starlite/lender/webforms/default.aspx?schema=825033")


Set page = iexplore.pageLenderLogin

page.Wait

page.txtUserID.SetText("ksteel")

page.txtPassword.SetText("mypassword")

page.btnLogin.Click



This happens on every page I try to write a script for and causes my tests to run extremely long.  I have checked all of the properties of my project and can't figure out why it would take so long between events.  Any thoughts?



Thanks!

9 Replies

  • k_steel's avatar
    k_steel
    New Contributor
    I have version 8.10.487.7 of TestComplete.  I performed a "Check for Updates..." and it didn't find any available.  I already tried all of the tips from the "Automated Test Performance Tips" article, and it did not help. 



    When I watch my test run, I can see it enter text in the textbox on my web page.  Then it just sits there and waits for about 30 seconds before clicking the next button.
  • k_steel's avatar
    k_steel
    New Contributor
    I shut everything down and restarted my computer, and now my tests seem to be executing faster.  It seems like when I do a lot of work and debugging in TestComplete, things start to slow down and I need a reboot.



    Thanks!
  • It is seems like on memory leak of Testcomplete

    I had test this issue and had some funny result, I programmed in Vbs on TC and when I started use:



    Set var = Nothing in the end of Script I stopped reboot PC after long debug script or long run



    All OK)


  • ANW's avatar
    ANW
    Contributor
    I have had the same issue, though nowhere near as bad as you.



    In IE browser, it would often take a second or two between performing actions, like entering text, clicking on buttons etc.



    Recently, I had to change the Web Object tree model in TestComplete from TAG to TREE. This has improved performance in IE browser significantly. 



    Funny thing is that I never had any performance issues in Firefox.



    Depending on how many tests you have already, and what model you use, it might be an idea to change it. Even though i currently have only a few scripts, it has still been a major rewrite of almost all my generic code to use the new object tree model.
  • chad's avatar
    chad
    Occasional Contributor
    I'm having the same problem where when I start up scripting it's fine but after running a few scripts or working in TestComplete for about 10 minutes it slows down my computer a lot.  It actually renders it useless till I shut down TestComplete.  



    I use Firefox for my primary testing browser and I do use the Tag model.  I don't want to change the model since TAG works the best for me with Firefox and what I need to do.  



    I also notice that the Object browser will refresh on me all the time.  I will be trying to map an object and it will suddenly keep refreshing every 2 seconds.  Again, I have to shut down TestComplete and start over.  



    Are there any other settings in the TestComplete config file I might try to change?
  • Hello Nikita,






    I had test this issue and had some funny result, I programmed in Vbs on TC and when I started use:


    Set var = Nothing in the end of Script I stopped reboot PC after long debug script or long run





    I suppose, the problem you described is other than those stated here. Please describe what exactly happens when you are debugging a script for a long time. Also, describe a sample scenario, the expected and actual behavior, and send us the description via our Contact Support form.
     





    Hello Chad,



    It can be a separate problem, which is not related to the original problem being discussed in this thread. In the future, please create an individual thread when asking a question so that users could search for information on the forum more easily.



    Have you tried using the recommendations given in the Automated Test Performance Tips article with TestComplete 8.60? What were your results?






    I also notice that the Object browser will refresh on me all the time.  I will be trying to map an object and it will suddenly keep refreshing every 2 seconds.  Again, I have to shut down TestComplete and start over.





    Which TestComplete and browser versions are you using? Is the problem specific to a definite page and page element or can it be reproduced with any page? Also, is the page you are testing available over the Internet? Can you send us the link to it along with the exact steps to reproduce the problem so that we could try to reproduce the behavior in our lab?
     
  • Hi, Im experiencing the exact same issue.



    After running 20 or 30 tests it just starts to take 30 seconds extra for every event.

    Did we find the cause of this issue at all?
  • Hi Ivan,




    It's unlikely that the issue you currently face is related to the thread started more than a year ago, so let's work on the issue in the support case you created.