08-12-2009, 09:27 AM
Hi,
U can try the following:
Test Data file(Excel) should have 2 fileds, 1.Script Name & 2.ToBeExecuted and the Driver Scripts will be as follows.
U can try the following:
Test Data file(Excel) should have 2 fileds, 1.Script Name & 2.ToBeExecuted and the Driver Scripts will be as follows.
Code:
MyTest = DataTable.Value("Script", 1)
If DataTable.Value("ToBeExecuted", 1)= "YES" Then
Select Case MyTest
Case "Test1"
RunAction("Test1", oneIteration)
Case "Test2"
RunAction("Test2", oneIteration)
Case "Test3"
RunAction("Test3", oneIteration)
---------
End Select
Else
Reporter.ReportEvent 1, "-------------", "-------------------"
End If