ContributionsMost RecentMost LikesSolutionsRe: Calling Script Routines via COMHi David, Thank you for the answer. Can you clarify a bit. What do you mean with multiple unit references (5, 10, 50 or 100 references per each unit) and with wide usage of global variables (10, 50 or 100 variables...)? Also one thing that is strange that the start time varies each time from 20s to 60s.Re: Calling Script Routines via COMHello, I have noticed the same thing. Sometimes (very often) it takes a long time (~30 s - 120 s) from TestExecute to start the actual test execution. TestExecute "hangs" after the "Opening the project suite..." message when the Playback bar appears on top right corner. After the hang test is executed normally. I'm also using code based on your sample code (http://smartbear.com/support/viewarticle/11013/) to run the scripts. Did you find any solutions for this problem? It would be great if you would share your conclusions here on the forum, rather than via e-mail, so that everyone else would see what was causing the problem. I'm using the latest version of TE, but also noticed the same thing with the previous versions.TestExecute and region updateHello, Is it possible to update regions with TestExecute (i.e. the same way than with TestComplete)?Re: OnStopTest Event and exceptionI finally had some time to study this problem little bit more and I was able to reproduce it in testproject. It seems that TestComplete goes to OnStopTest event everytime when exception occurs, but it doesn't execute it entirely. I created simple OnStopTest event like this: Sub GeneralEvents_OnStopTest(Sender) Log.Message "Message 0" Log.Message "Message 1" Log.Message "Message 2" Log.Message "Message 3" Log.Message "Message 4" Log.Message "Message 5" Log.Message "Message 6" Log.Message "Message 7" Log.Message "Message 8" Log.Message "Message 9" End Sub And when exception (the same UBound error) occurred TestComplete went to this event, but almost never did it post all the 10 messages to the log after the Ubound error. It usually posted 2-3 lines but after that, nothing. Anyways, I will send the testsuite to you and you can examine this problem further more. I hope to hear some kind of resolution from you guys whether this problem is in TestComplete, in my computer (setup) or in testsuite (settings etc.) and how can I resolve this.Re: OnStopTest Event and exceptionYes, I already have OnStopTest event and I disabled Error dialog option. I put "mine" (test = Ubound(grfhgh)) which causes exception every time in the middle of one of my scripts and I ran the script 10 times. 3 out of 10 times TestComplete didn't execute the OnStopTest event. Why is that? Edit. I'm Using TestComplete 8.60.665.7, I have Windows 7 and used browser is IE9.Re: OnStopTest Event and exceptionBut the popup that appears is error dialog created by TestComplete, how to handle that? And what if I have in this case error dialog turned off, then I don't get unexpected window, but exception still occurs.OnStopTest Event and exceptionHi, The manual says: " The OnStopTest event is not generated if the test is stopped right after it has begun. Also, the OnStopTest is not generated in Connected Applications. In all other cases, the OnStopTest event is generated when the test run is finished. For instance, if -- - An exception occurred during the script execution. " For example I had the case where UBound() had faulty parameter which caused exception, and when unexpected exception occurred, I got popup about it and execution stopped there without executing the OnStopTest event where I do several things. And this is not happening right after the beginning of the test. Why test doesn't go to OnStopTest Event in this case?Counting with doubles (fractions)Hey, I ran into this strange bug with TC 8.60.665.70 when counting with double values: 17.08-(17.10-0.02) = -3,5527136788005E-15 17.07-(17.09-0.02) = 0 They should both give 0, right? Is this because computers can't process fractions correctly or is this bug in VBSCript, TestComplete or in my computer or even in my head? Am I missing something here?Set StopOnError in scriptHello, Is there any other way to set the value of StopOnError in script than Project.TestItems.Current.StopOnError = 0. This isn't working if I run a subroutine without creating testitem (e.g. I use Run Current Routine). I would like to do Regions.Items(region).Check in loop few times before stopping the execution. So I don't want that the execution stops in first check if it's not true. I don't want to turn errors off completely. I could use Log.Enabled = false, but then I don't get the log messages wheter the check has succeeded or not. I would use Regions.Compare method where I can specify the failure message type, but with that method I can't use masks. Edit. I just realized that I can't use Project.TestItems.Current.StopOnError method to set the value. But the question still remains, is there a way to do this?Re: Sys.Process("iexplore", 2).ToURL - Waits after 8.50 upgradeI have the same problem with IE9 and TC 8.60.665.7. ToUrl waits very long. This problem doesn't exist with FF 6. I don't want to change the IE settings because bypassing this pop-up window is part of the test. The window is caused by .htaccess login. Is there "nicer" workaround for this than using the address bar?