Slow Down Execution from QC?
The system I am testing has multiple threads of execution that sometimes causes the runs to be not deterministic. I know that in QTP ver 10 I can set my run option to delay between steps. Is there any way to have a similar delay between steps when run from QC?
For example, in one script we set the time and expect three pop-up messages. The script uses lines such as:
JavaDialog("Name of pop-up window").JavaButton("OK").Click
When running from QC, sometimes the line above fails saying it couldn't find the JavaDialog("Name of pop-up window").
I added "Wait(3)" before the line but it still doesn't run 100%. I could add a chekpoint for it before the attemts to click OK, but I assumed the script already waits for the pop-ups to appear anyway.
This is only one example. There are others where background processing sometimes take longer, or there is a network access that suddenly goes a little slower.
I would believe that my scripts would run much better if some time was allowed between steps. I really don't want to continue to add additional waits, .exists and checkpoints.
Re: Slow Down Execution from QC?
You could up the default object sync timeout value on your tests from the standard 20 seconds.
File - Settings - Run - Object Sync timeout:
For special cases where you don't want to impact the global timeout, .Exist(xx) would be the best way to go rather than hard waits and checkpoints.