I have below columns in data table sheet. I need to execute 3 test scripts available under column "Test Script" Based on status = Y. I could get the data script location using below code. What is the commend to be used to execute the script so that i can run that command in the loop to execute multiple scripts.
test script Test Dir Status
WebPge D:\satish\qtp\ Y
webred D:\satish\qtp\ Y
WinApp D:\satish\qtp\ N
rcount = datatable.GetSheet(2).getrowcount
For i = 1 to rcount
tdir = datatable.Value("DirName",2)
tcase = datatable.Value("Testcase",2)
st = datatable.Value("Status",2)
If st = "Y" Then
tex = tdir & tcase
elseIf st = "N" Then
print "testcase not executed"
As suggested by you i have used below code in VBS file to call above script. winDT is the mts file for above script.
My script in first post only displays script names in the print log as below. I need to execute 3 scripts one after another so please suggest command to be used to perform it.
set qt = createobject("quicktest.application")
set qt = nothing
on error resume next
print 'test is in process="& testpath