org.aludratest.testcase
Interface AludraTestContext

All Superinterfaces:
AludraContext
All Known Implementing Classes:
AludraTestContextImpl

public interface AludraTestContext
extends AludraContext

Test context provided to AludraTestCase instances in order to access information necessary for initialization and framework interaction.

Author:
Volker Bergmann, falbrech

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

closeServices

void closeServices()
CLoses all services which were opened by this context.


closeService

void closeService(ComponentId<?> serviceId)
Closes a service.

Parameters:
serviceId - the ComponentId of the service to close

newTestStepGroup

void newTestStepGroup(String name)
Starts a new group of test steps with the given name.

Parameters:
name - of the group to create

logError

void logError(String errorMessage,
              TestStatus status)
Reports an execution failure to the framework.

Parameters:
errorMessage - the error message assigned to the failure.
status - the TestStatus indicating the failure. status.isFailure() should be true.

logError

void logError(String errorMessage,
              Throwable t)
Reports an execution error (a kind of "uncaught" exception) to the framework.

Parameters:
errorMessage - the error message assigned to the error. Can be the message of the exception.
t - the Throwable to be reported.

fireTestStep

void fireTestStep(TestStepInfo step)
Fires a new test step to all listeners of the current execution context.

Parameters:
step - Step to notify listeners about.


Copyright © 2015 aludratest.org. All rights reserved.