Setting auto-wait timeout in OnStartTest
Hi all,
as the test runs way faster on my local pc (physical pc with Testcomplete) than on the virtual machine with TestExecute I tried to set the auto-wait timeout for tests in OnStartTest and revert it in OnStopTest. (so that failed checkpoints on my local pc do not make me watch 14 seconds looking at the screen :-))
OnStartTest: Options.Run.Timeout = 1000;
OnStopTest: Options.Run.Timeout = 14000;
If I run a small functions in the scriptextensions itself this is all working fine.
But in OnStartTest and OnStopTest that are called from my Keyword Tests there is a runtime error executing this line.
I assume this has to do with the scriptextensions not knowing in which project the timeout has to be changed, but I am not sure.
Can anybody help me with that?
Best regards,
Joachim
hmmm... I implemented it quite dumb in the script-section of each of the projects.
I had preferred that it is possible in the central eventhandler that I wrote in the script extensions. But it is not.