|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AludraTestContext
Test context provided to AludraTestCase instances in order to access information necessary for initialization and framework interaction.
| Method Summary | |
|---|---|
void |
closeService(ComponentId<?> serviceId)
Closes a service. |
void |
closeServices()
CLoses all services which were opened by this context. |
void |
fireTestStep(TestStepInfo step)
Fires a new test step to all listeners of the current execution context. |
void |
logError(String errorMessage,
TestStatus status)
Reports an execution failure to the framework. |
void |
logError(String errorMessage,
Throwable t)
Reports an execution error (a kind of "uncaught" exception) to the framework. |
void |
newTestStepGroup(String name)
Starts a new group of test steps with the given name. |
| Methods inherited from interface org.aludratest.service.AludraContext |
|---|
getNonLoggingService, getService, newComponentInstance |
| Method Detail |
|---|
void closeServices()
void closeService(ComponentId<?> serviceId)
serviceId - the ComponentId of the service to closevoid newTestStepGroup(String name)
name - of the group to create
void logError(String errorMessage,
TestStatus status)
errorMessage - the error message assigned to the failure.status - the TestStatus indicating the failure. status.isFailure() should be true.
void logError(String errorMessage,
Throwable t)
errorMessage - the error message assigned to the error. Can be the message of the exception.t - the Throwable to be reported.void fireTestStep(TestStepInfo step)
step - Step to notify listeners about.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||