How to wait for batch file execution to be completed before continuing with rest of keyword tests
Hi,
I have a some keyword tests, but before they are executed, I need to run a batch file that gets the executable for my App.
But the batch file execution time varies with different versions of the App, so adding a delay after this is not ideal.
The batch file execution is carried out using a VBScript test that makes use of the 'TestedApps.AppName.Run' command.
I need to be able to wait for the batch file execution to be completed before I start the next keyword test in my suite.
Is there a way for me to add a parameter to this command to achieve this or get a return code (0) from the batch file to signal that it is completed the execution and add this as a check before I run the next test?
Thanks,
Deepa.
This works! It takes a parameter and test run resumes only after the batch file has completed it's execution.
Sub Run_Build (Build_Version)
dim shell, x, y, z
x="C:\FolderA\FolderB\"
y=x & "App_Name.bat "
z=Project.Variables.Build_Version
set shell=CreateObject("WScript.Shell")
shell.run y + z, 1, true
End sub