TPTP 4.2.0 Testing Tools Project
Public API Specification

org.eclipse.hyades.test.core.testgen
Class TestGenerator

java.lang.Object
  extended byorg.eclipse.hyades.test.core.testgen.TestGenerator
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
Testgen

public abstract class TestGenerator
extends java.lang.Object
implements java.lang.Runnable

Object to be extended by objects which will generate tests in the Testgen infrastructure This object is associated with extension point org.eclipse.hyades.execution.testgen.TestGenerator


Field Summary
protected  org.eclipse.core.runtime.IProgressMonitor monitor
           
protected  java.lang.String outputFileName
          the output filename (ends with .testsuite)
protected  org.eclipse.core.resources.IFile recModelFile
          reference to the .recmodel file associated with the generated test
 
Constructor Summary
TestGenerator()
           
 
Method Summary
 void closeProgressDialog()
          Deprecated.  
 java.lang.String getJobTitle()
          returns a string to be used as a job name
 java.lang.String getOutputFileName()
           
 void initialize(org.eclipse.core.resources.IFile recModelFile, java.lang.String outputFileName)
          method called to initialize the Test Generator with needed information and references
 void initialize(org.eclipse.core.resources.IFile recModelFile, java.lang.String outputFileName, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 boolean isSuccess()
           
 void run()
          this method is called by the display to perform the test generation.
abstract  boolean runTestGen()
          Deprecated.  
 boolean runTestGen(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void setMessage(java.lang.String message)
          Deprecated. - use IProgressMonitor
 void setProgress(int percentComplete)
          Deprecated. - use IProgressMonitor directly
abstract  boolean showProgress()
          method called to determine whether or not a progress dialog should be shown with test generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recModelFile

protected org.eclipse.core.resources.IFile recModelFile
reference to the .recmodel file associated with the generated test


outputFileName

protected java.lang.String outputFileName
the output filename (ends with .testsuite)


monitor

protected org.eclipse.core.runtime.IProgressMonitor monitor
Constructor Detail

TestGenerator

public TestGenerator()
Method Detail

runTestGen

public abstract boolean runTestGen()
                            throws TestgenException
Deprecated.  

method called to begin test generation

Returns:
Throws:
TestgenException

runTestGen

public boolean runTestGen(org.eclipse.core.runtime.IProgressMonitor monitor)
                   throws TestgenException
Throws:
TestgenException

showProgress

public abstract boolean showProgress()
method called to determine whether or not a progress dialog should be shown with test generation.

Returns:

initialize

public void initialize(org.eclipse.core.resources.IFile recModelFile,
                       java.lang.String outputFileName)
method called to initialize the Test Generator with needed information and references

Parameters:
recModelFile -
outputFileName -

initialize

public void initialize(org.eclipse.core.resources.IFile recModelFile,
                       java.lang.String outputFileName,
                       org.eclipse.core.runtime.IProgressMonitor monitor)

run

public void run()
this method is called by the display to perform the test generation. Testgenerators are executed via Display.getDefault().asyncExec(Runnable); *

Specified by:
run in interface java.lang.Runnable

setProgress

public void setProgress(int percentComplete)
Deprecated. - use IProgressMonitor directly

called to set the percent complete of the progress dialog

Parameters:
percentComplete -

setMessage

public void setMessage(java.lang.String message)
Deprecated. - use IProgressMonitor

called to change the displayed message on the progress dialog. These messages must be localized

Parameters:
message -

closeProgressDialog

public void closeProgressDialog()
Deprecated.  

called to close the progress dialog


isSuccess

public boolean isSuccess()
Returns:

getOutputFileName

public java.lang.String getOutputFileName()

getJobTitle

public java.lang.String getJobTitle()
returns a string to be used as a job name

Returns:

TPTP 4.2.0 Testing Tools Project
Public API Specification