T - the configuration typeC - the client typepublic interface RemoteResourceProvider<T,C>
| Modifier and Type | Method and Description |
|---|---|
T |
configure(TestContext testContext,
RemoteResource remoteResource,
PropertiesReader configReader)
A method to configure a remote resource.
|
default void |
load(TestContext testContext,
RemoteResource remoteResource,
RemoteResourceInstance<C> instance,
Set<String> dataFiles)
Load the given list of data file into the local resource prior to the resource being
used.
|
RemoteResourceInstance<C> |
start(TestContext testContext,
RemoteResource remoteResource,
T config)
Start the remote resource with the given testContext and configuration.
|
void |
stop(TestContext testContext,
RemoteResource remoteResource,
RemoteResourceInstance<C> instance)
Stop the remote resource.
|
T configure(TestContext testContext, RemoteResource remoteResource, PropertiesReader configReader)
A method to configure a remote resource. Configuring a remote resource typically involves
creating a default configuration object that can be further configured by a
ConfigHandler method. Please note:
start(org.testifyproject.TestContext, org.testifyproject.annotation.RemoteResource, java.lang.Object)
method.
.testify.yml configuration
properties. A specific section in .testify.yml can be specified through
RemoteResource.configKey().
ConfigHandler method before it is passed to
start(org.testifyproject.TestContext, org.testifyproject.annotation.RemoteResource, java.lang.Object)
method
testContext - the test contextremoteResource - test class remote resource annotationconfigReader - a configuration properties readerRemoteResourceInstance<C> start(TestContext testContext, RemoteResource remoteResource, T config) throws Exception
testContext - the test contextremoteResource - test class remote resource annotationconfig - the remote resource configurationException - an exception thrown while startingdefault void load(TestContext testContext, RemoteResource remoteResource, RemoteResourceInstance<C> instance, Set<String> dataFiles) throws Exception
testContext - the test contextremoteResource - test class remote resource annotationinstance - the remote resource instancedataFiles - a data files that should be loadedException - an exception thrown while loading datavoid stop(TestContext testContext, RemoteResource remoteResource, RemoteResourceInstance<C> instance) throws Exception
testContext - the test contextremoteResource - test class remote resource annotationinstance - the remote resource instanceException - an exception thrown while stoppingCopyright © 2016–2018 Testify Project. All rights reserved.