Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
calling more than one test using driver script
#4
Solved: 10 Years, 10 Months ago
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.

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
Reply


Messages In This Thread
RE: calling more than one test using driver script - by rameshrise3 - 08-12-2009, 09:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  calling QTP script from one to another krishnas.tester 3 6,500 11-12-2014, 10:32 AM
Last Post: vinod123
  Excel and Driver Script shipu 1 3,606 02-27-2014, 09:09 AM
Last Post: supputuri
  Open QTP using Driver Script shipu 1 2,901 02-26-2014, 12:21 PM
Last Post: supputuri
Sad Batch Test Script Help nidhitaneja 0 2,473 02-09-2014, 10:34 PM
Last Post: nidhitaneja
  calling stored procedure from Oracle borisk 3 6,252 03-19-2013, 12:41 PM
Last Post: gaveyom

Forum Jump:


Users browsing this thread: 1 Guest(s)