|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AludraService
Common interface for all services that can be tested by AludraTest. Service implementors must provide a default constructor
(public and without parameters) and need to initialize when the framework calls the service's
init(AludraServiceContext)
method.
Method Summary | |
---|---|
Condition |
check()
Called by test code to create a service specific child class of the Condition interface. |
String |
getDescription()
Provides a textual description of the most important configuration information to be logged when the service is configured. |
String |
getInstanceName()
Returns the instance name which applies to this service instance. |
void |
init(AludraServiceContext context)
This method is called by the framework when the service is about to be used. |
Interaction |
perform()
Called by test code to create a service specific child class of the Interaction interface. |
void |
setSystemConnector(SystemConnector connector)
Allows the client code to inject an SystemConnector for providing informations of a SUT asynchronously. |
Verification |
verify()
Called by test code to create a service specific child class of the Verification interface. |
Methods inherited from interface org.aludratest.service.AludraCloseable |
---|
close |
Method Detail |
---|
void init(AludraServiceContext context)
context
- Service context which can be used to access other services
AutomationException
- if the service is misconfigured
AccessFailure
- if a required system cannot be connectedString getInstanceName()
null
in some cases (for some
service types), so be careful to handle this case.
null
if not set.String getDescription()
Interaction perform()
Interaction
interface. Note that a service
interfaces may override this method's signature to declare a more specific Interaction child interface with additional
features.
Interaction
objectVerification verify()
Verification
interface. Note that a service
interfaces may override this method's signature to declare a more specific Verification child interface with additional
features.
Verification
objectCondition check()
Condition
interface. Note that a service
interfaces may override this method's signature to declare a more specific Condition child interface with additional
features.
Condition
objectvoid setSystemConnector(SystemConnector connector)
SystemConnector
for providing informations of a SUT asynchronously.
connector
- the connector to apply
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |