Forum Discussion

DeepaJ's avatar
DeepaJ
Contributor
9 years ago
Solved

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...
  • DeepaJ's avatar
    DeepaJ
    9 years ago

    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