public abstract class SlimTestSystem extends java.lang.Object implements TestSystem
Constructor and Description |
---|
SlimTestSystem(java.lang.String testSystemName,
SlimClient slimClient) |
Modifier and Type | Method and Description |
---|---|
void |
addTestSystemListener(TestSystemListener listener)
Add a listener for test system events.
|
void |
bye()
Close the test system.
|
protected SlimTestContextImpl |
createTestContext(TestPage testPage) |
protected void |
evaluateTables(java.util.List<SlimAssertion> assertions,
java.util.Map<java.lang.String,java.lang.Object> instructionResults) |
java.lang.String |
getName()
Get the test system name identifier, as it was provided by the user.
|
SlimTestContext |
getTestContext() |
protected void |
initializeTest(TestPage testPage) |
boolean |
isSuccessfullyStarted()
System is up and running.
|
void |
kill()
Kill the test system.
|
protected abstract void |
processAllTablesOnPage(TestPage testPage) |
protected void |
processTable(SlimTable table,
boolean isSuiteTearDownPage) |
void |
runTests(TestPage pageToTest)
Run a collection of tests.
|
void |
start()
Start the test system.
|
protected void |
stopTestSystem(java.lang.Throwable e) |
protected void |
testAssertionVerified(Assertion assertion,
TestResult testResult) |
protected void |
testComplete(TestPage testPage,
TestSummary testSummary) |
protected void |
testExceptionOccurred(Assertion assertion,
ExceptionResult exceptionResult) |
protected void |
testOutputChunk(java.lang.String output) |
protected void |
testStarted(TestPage testPage) |
protected void |
testSystemStopped(java.lang.Throwable e) |
public SlimTestSystem(java.lang.String testSystemName, SlimClient slimClient)
public SlimTestContext getTestContext()
public java.lang.String getName()
TestSystem
getName
in interface TestSystem
public boolean isSuccessfullyStarted()
TestSystem
isSuccessfullyStarted
in interface TestSystem
public void start() throws UnableToStartException
TestSystem
start
in interface TestSystem
UnableToStartException
public void kill()
TestSystem
kill
in interface TestSystem
public void bye() throws UnableToStopException
TestSystem
bye
in interface TestSystem
UnableToStopException
public void runTests(TestPage pageToTest) throws TestExecutionException
TestSystem
runTests
in interface TestSystem
pageToTest
- TestPage to runTestExecutionException
public void addTestSystemListener(TestSystemListener listener)
TestSystem
addTestSystemListener
in interface TestSystem
listener
- TestSystemListenerprotected void initializeTest(TestPage testPage)
protected SlimTestContextImpl createTestContext(TestPage testPage)
protected abstract void processAllTablesOnPage(TestPage testPage) throws TestExecutionException
TestExecutionException
protected void processTable(SlimTable table, boolean isSuiteTearDownPage) throws TestExecutionException
TestExecutionException
protected void evaluateTables(java.util.List<SlimAssertion> assertions, java.util.Map<java.lang.String,java.lang.Object> instructionResults) throws SlimCommunicationException
SlimCommunicationException
protected void testOutputChunk(java.lang.String output)
protected void testStarted(TestPage testPage)
protected void testComplete(TestPage testPage, TestSummary testSummary)
protected void stopTestSystem(java.lang.Throwable e)
protected void testAssertionVerified(Assertion assertion, TestResult testResult)
protected void testExceptionOccurred(Assertion assertion, ExceptionResult exceptionResult)
protected void testSystemStopped(java.lang.Throwable e)