| junit.extensions.abbot.ScriptFixture
All known Subclasses: abbot.editor.ScriptEditorFunctionalSuite, example.FontChooserTest, example.MyCodeTest,
ScriptFixture | public class ScriptFixture extends TestCase (Code) | | Simple wrapper for a test script to run under JUnit. If the script
does not contain a launch step, the hierarchy used will include existing
components. No automatic cleanup of components is performed, since it is
assumed that a Terminate step within the script will trigger that operation
if it is required.
|
Constructor Summary | |
public | ScriptFixture(String filename) Construct a test case with the given name, which must be the
filename of the script to run. |
Method Summary | |
public static void | main(String[] args) Assumes each argument is an Abbot script. | protected void | runTest() Override the default TestCase runTest method to invoke the script. | protected void | setUp() Saves the current UI state for restoration when the
fixture (if any) is terminated. | protected void | tearDown() |
ScriptFixture | public ScriptFixture(String filename)(Code) | | Construct a test case with the given name, which must be the
filename of the script to run.
|
main | public static void main(String[] args)(Code) | | Assumes each argument is an Abbot script. Runs each one.
|
runTest | protected void runTest() throws Throwable(Code) | | Override the default TestCase runTest method to invoke the script.
The
Script is created and a default
StepRunner is used
to run it.
See Also: junit.framework.TestCase.runTest |
setUp | protected void setUp() throws Exception(Code) | | Saves the current UI state for restoration when the
fixture (if any) is terminated. Also sets up a
TestHierarchy for the duration of the test.
|
|
|