Starting a Functional Tester script from within a script

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

You can use the callScript method as follows:

....
// import statements and comments 
import myscripts;// Added so script can find test3.

public class RegressionSuite extends RegressionSuiteHelper 
{
public void testMain (Object[] args)
{ 
    callScript("test1");
    callScript(new test2());
    callScript("myscripts.test3"); 
} 
}

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


Feedback