public class ScriptFixture
extends junit.framework.TestCase
| Constructor and Description |
|---|
ScriptFixture(java.lang.String filename)
Construct a test case with the given name, which must be the
filename of the script to run.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Assumes each argument is an Abbot script.
|
protected void |
runTest()
Override the default TestCase runTest method to invoke the script.
|
void |
setAWTFixtureHelper(AWTFixtureHelper helper)
Provide a non default AWTFixtureHelper, the most common
usercase of this is when you want to base in a custom TestHierarchy
for example when you don't want to ingore existing components.
|
protected void |
setUp()
Saves the current UI state for restoration when the
fixture (if any) is terminated.
|
protected void |
tearDown() |
countTestCases, createResult, getName, run, run, runBare, setName, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatpublic ScriptFixture(java.lang.String filename)
public void setAWTFixtureHelper(AWTFixtureHelper helper)
setAWTFixtureHelper(new AWTFixtureHelper(new TestHierarchy(false)));protected void setUp()
throws java.lang.Exception
TestHierarchy for the duration of the test.setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionprotected void runTest()
throws java.lang.Throwable
Script is created and a default StepRunner is used
to run it.runTest in class junit.framework.TestCasejava.lang.ThrowableTestCase.runTest()public static void main(java.lang.String[] args)
Abbot is hosted on