Forum Discussion

nbenitus's avatar
nbenitus
Contributor
14 years ago

How to control wait time for ToURL command

Hi,



I am doing some web testing and I am using the following line:



Aliases.iexplore.ToURL(<www.mysite.com>)



When I browse to that page, I get a login popup asking for an username and password.



However, the ToURL is waiting for the page to load (and it isn't because because of the credentials missing) for about a minute.



Is it possible to configure something in TestComplete so the ToURL function only waits for 10 seconds fore example? (or not at all)



Thanks in advance!



Benoit

7 Replies

  • vbarros's avatar
    vbarros
    Occasional Contributor
    Maybe remove the Stop error on help.



    I hope I have helped!
  • Thanks for the reply Victor.



    However, I am unsure what you mean.



    Could you please give me some more details?
  • vbarros's avatar
    vbarros
    Occasional Contributor





    After double-clicking on the project, will open the right side of a screen. Click properties>> Playback >> uncheck the Stop error in Runtime



    If you have further questions, will be a pleasure to help you

    Hope that helps!





























  • Thanks Victor for the extra detail.



    I was unaware of that window and I see plenty of really useful options, thanks again!



    About my initial question, the Stop on error is already unchecked.



    My problem is not that the execution stops, but rather that it waits for one minute before proceeding. I am trying to remove that extra minute of delay.



    Is it possible to change the auto wait timeout in scripts? (Looked in the help, but no luck)
  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Benoit,


    Is it possible to change the auto wait timeout in scripts? (Looked in the help, but no luck)


    Have you tried using the Options.Run.Timeout property?

  • windend's avatar
    windend
    Occasional Contributor
    I think you want to wait for a longer time before TestComplete ends with error. You can check the above "Stop on error" checkbox, and encrease the "Auto-wait timeout, ms:" besides this option. This time is defined the auto-wait time.



    This option can also be set in script as below(in VBs).



    Options.Run.Timeout=100000



    Hope this can help you.

  • Excellent, Options.Run.Timeout=10000 does work.



    Thanks to everyone for your help ! :)