Starting a Functional Test script from within a script

Functional Test scripts can contain methods that invoke other test scripts. You might want to take advantage of this functionality by creating a test script that serves as a command file for a suite of scripts.

You can use the CallScript method as follows:


....
 ' Added so script can find Test3.
 Imports Myscripts
 
 Public Class RegressionSuite
     Inherits RegressionSuiteHelper

     . . .

     Public Function TestMain(ByVal args() As Object)
         CallScript("Test1")
         CallScript(New Test2())
         CallScript("Myscripts.Test3")
     End Function
   End Class

Do not call the TestMain method from another Functional Test script (for example, Test1.TestMain(...)). Rational® Functional Tester would then be unable to ensure that each Functional Test script is invoked properly and has the expected event handling support.