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 Test 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.

Terms of use | Feedback
(C) Copyright IBM Corporation 2002, 2004. All Rights Reserved.