Forum Discussion

Todd351's avatar
Todd351
Occasional Contributor
3 years ago

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

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

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

    • Todd351's avatar
      Todd351
      Occasional Contributor

      The batch file command window closes.

      • Marsha_R's avatar
        Marsha_R
        Champion Level 3

        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.