Class ReportScript

java.lang.Object
com.sun.javatest.Script
com.sun.javatest.lib.ReportScript

public class ReportScript extends Script
A special script which reads the result file which is presumed to exist in the work directory as the result of a prior run. This will allow the creation of a TestResult object from a old test run.
  • Constructor Details

    • ReportScript

      public ReportScript()
  • Method Details

    • run

      public final void run()
      Description copied from class: Script
      Run the script, to fill out the test results for the test description given to init. Most implementations will use the default implementation of this method, which delegates to a simpler (abstract) method @link(run(String[],TestDescription, TestEnvironment)). If you override this method, be aware that this method does insert many of the standard result properties into the TestResult object - harness info, start stop times, etc.
      Overrides:
      run in class Script
    • run

      public Status run(String[] args, TestDescription td, TestEnvironment env)
      This method should not be called; for this class, its identity is significant, not its implementation.
      Specified by:
      run in class Script
      Parameters:
      args - Any script-specific options specified in the script property
      td - The test description for the test to be performed
      env - The test environment giving the details of how to run the test
      Returns:
      The result of running the script
      Throws:
      Error - if called
      See Also: