Forum Discussion
TestComplete has all sorts of Wait* conditions you can use. Here's a place to start:
Thank you, Marsha.
I have been using the the TestComplete "wait" calls for quite some time. However, in the situations I am talking about, I have been unable to find a suitable "wait" method call. The background processes expose very little in the way of underlying objects/properties for these mechanisms to work.
I am looking for some other (uncommon) tricks to use. For example, in one case I have solved the problem by polling the status of a file (ie., does it exist and is it "closed") as a method of synchronization. I do this using the aqFiles library and a while loop. Klunky, but it works and I do not have to use an arbitrary wait period hoping that something important happens and then move on as if it did happen.
- Marsha_R6 years agoChampion Level 3
Then it would help to know what other sorts of processes you are having trouble with. Hard to know which tricks to use when we don't know exactly what is failing for you.
- m_essaid6 years agoValued Contributor
Hi,
You may wait for a specific process to be closed then go further
I have such methods with the "cmd" process to wait for robocopy to finish.
something like
is the process exists
yes-> exit
no -> wait 4 secons then repeat
you could count iterrations to put a safety (exit anyways after 100 iterrations...)
Related Content
- 3 years agoA28810
- 7 months agopaarmann-ara
- 9 years agoteak
Recent Discussions
- 11 hours agotramuntana
- 3 days agoSlickRick