ory_z
15 years agoContributor
Auto Wait for CMD window can't be changed
Hi there,
I'm currently using an application in my tests that is not the actual SUT but helps me to perform some tasks that are needed. When clicking a certain button in the application it executes a predefined script in a new CMD window. The problem I'm having is that TestComplete seems to be waiting for a defined period of time after clicking the button, before continuing to the next step or line in the test script.
At first I thought it's the project's auto wait period (the wait time is around 10s), but changing the project auto wait timeout property to even a 100 doesn't affect this wait time.
I then tried manupilating it in a script using the following syntax (VB):
Options.Run.Timeout = 100
Call Aliases.CardSharkCryptoSW.dlgCardShark.RunESLScriptBtn.ClickButton
Options.Run.Timeout = 10000
This also didn't help. So I tried to debug, added a breakpoint on the first line, and when the execution was paused, I Evaluated the expression "Options.Run.Timeout" but it returned 50... Stepped over the next two steps and kept evaluating the expression. Turns out it always returns 50, not sure if a bug or not?
So what is causing the test execution to pause for 10 seconds after the execution of the script in the CMD window?
Thanks
I'm currently using an application in my tests that is not the actual SUT but helps me to perform some tasks that are needed. When clicking a certain button in the application it executes a predefined script in a new CMD window. The problem I'm having is that TestComplete seems to be waiting for a defined period of time after clicking the button, before continuing to the next step or line in the test script.
At first I thought it's the project's auto wait period (the wait time is around 10s), but changing the project auto wait timeout property to even a 100 doesn't affect this wait time.
I then tried manupilating it in a script using the following syntax (VB):
Options.Run.Timeout = 100
Call Aliases.CardSharkCryptoSW.dlgCardShark.RunESLScriptBtn.ClickButton
Options.Run.Timeout = 10000
This also didn't help. So I tried to debug, added a breakpoint on the first line, and when the execution was paused, I Evaluated the expression "Options.Run.Timeout" but it returned 50... Stepped over the next two steps and kept evaluating the expression. Turns out it always returns 50, not sure if a bug or not?
So what is causing the test execution to pause for 10 seconds after the execution of the script in the CMD window?
Thanks