public interface AbstractJavaTestHttpPluginInterface
Modifier and Type | Interface and Description |
---|---|
static interface |
AbstractJavaTestHttpPluginInterface.PluginResourceFiles
Additional files which are required to execute the plug-in, such as jar-files and configuration files.
|
Modifier and Type | Method and Description |
---|---|
void |
onDeconstruct(AbstractJavaTestPluginContext pluginContext)
Called when the plug-in is deconstructed.
|
java.util.List<java.lang.String> |
onHttpRequest(AbstractJavaTestPluginContext pluginContext,
java.util.List<java.lang.String> inputValues,
HTTPRequest httpRequest)
Called before the HTTP request is send.
|
java.util.List<java.lang.String> |
onHttpResponse(AbstractJavaTestPluginContext pluginContext,
java.util.List<java.lang.String> inputValues,
HTTPResponse httpResponse)
Called after the HTTP response is received.
|
java.util.List<java.lang.String> |
onInitialize(AbstractJavaTest javaTest,
AbstractJavaTestPluginContext pluginContext,
java.util.List<java.lang.String> inputValues)
Called when the plug-in is initialized.
|
void |
setLog(LogAdapterInterface log)
Called by environment when the instance is created.
|
void setLog(LogAdapterInterface log)
log
- the log adapterjava.util.List<java.lang.String> onInitialize(AbstractJavaTest javaTest, AbstractJavaTestPluginContext pluginContext, java.util.List<java.lang.String> inputValues) throws java.lang.Exception
javaTest
- the reference to the executed test program, or null if no such information is available (in debugger environment)pluginContext
- the plug-in contextinputValues
- the list of input valuesjava.lang.Exception
- if an error occurs in the implementation of this method or if the plug-in cannot be initialized.
Note: depending on the initialize scope of the plug-in (global/user/session) either the whole test, or the user, or the current session of the user is aborted if an exception is thrown.java.util.List<java.lang.String> onHttpRequest(AbstractJavaTestPluginContext pluginContext, java.util.List<java.lang.String> inputValues, HTTPRequest httpRequest) throws AbstractJavaTestPluginSessionFailedException, AbstractJavaTestPluginUserFailedException, AbstractJavaTestPluginTestFailedException, java.lang.Exception
pluginContext
- the plug-in contextinputValues
- the list of input valueshttpRequest
- the HTTP requestAbstractJavaTestPluginSessionFailedException
- if the plug-in signals that the 'user session' has to be aborted (abort current session - continue next session)AbstractJavaTestPluginUserFailedException
- if the plug-in signals that the user has to be terminatedAbstractJavaTestPluginTestFailedException
- if the plug-in signals that the test has to be terminatedjava.lang.Exception
- if an error occurs in the implementation of this methodjava.util.List<java.lang.String> onHttpResponse(AbstractJavaTestPluginContext pluginContext, java.util.List<java.lang.String> inputValues, HTTPResponse httpResponse) throws AbstractJavaTestPluginSessionFailedException, AbstractJavaTestPluginUserFailedException, AbstractJavaTestPluginTestFailedException, java.lang.Exception
pluginContext
- the plug-in contextinputValues
- the list of input valueshttpResponse
- the HTTP responseAbstractJavaTestPluginSessionFailedException
- if the plug-in signals that the 'user session' has to be aborted (abort current session - continue next session)AbstractJavaTestPluginUserFailedException
- if the plug-in signals that the user has to be terminatedAbstractJavaTestPluginTestFailedException
- if the plug-in signals that the test has to be terminatedjava.lang.Exception
- if an error occurs in the implementation of this methodvoid onDeconstruct(AbstractJavaTestPluginContext pluginContext) throws java.lang.Exception
pluginContext
- the plug-in contextjava.lang.Exception
- if an error occurs in the implementation of this method