Ask a Question

Waiting for batch file (tested app) to complete before continuing keyword test

Todd351
Occasional Contributor

Waiting for batch file (tested app) to complete before continuing keyword test

I am running a batch file that refreshes my database to test my desktop application. How do I make it wait for the batch file to finish before it continues running the rest of the keyword test?

I run different batch files in different keyword tests so they all do not take the same time to run. I am trying to speed up my tests for better efficiency.

3 REPLIES 3
Marsha_R
Community Hero

How can you yourself tell when the database update is complete?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
Todd351
Occasional Contributor

The batch file command window closes.

You could have your test check every few seconds in a loop to see if the command window exists.  When it no longer exists, or some time has passed (how long is too long to wait?), then finish the loop and go on to the next line of the test.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: