Extension Step appletRunner
Description
Runs and tests applets from inside webtest. If the applet triggers the load of a new page in the specified target, then this page becomes the current one.
This step provides a mechanism to integrate the testing of an applet into the overall testing of the encompassing web application. If you have a complex web application in which the workflow changes between html pages and applet(s), you can use this step to test the complete application from webtest.
This step runs an user-specified scenario against the applet to drive the applet's GUI. With a scenario, you can input value into the applet, verify the informations displayed and follow the pages invoked by the applet. The scenario is a Java classes that uses Jemmy to interact with the GUI of the applet.
Parameters
- scenario
- Required? yes
- The name of the test scenario class.
- xpath
- Required? yes
- The XPath identifying the applet element to start.
- description
- Required? no
- The description of this test step.
- password
- Required? no
- A password that can be provided for pages that require basic authentication. Required if username is specified.
- save
- Required? no
- A shorthand: save='prefixName' is the same as savePrefix='prefixName' saveResponse='true'.
- savePrefix
- Required? no, default is the 'savePrefix' parameter as specified in <config>.
- A name prefix can be specified for making a permanent copy of received responses. A unique number and the file extension (depending on the MIME-Type) will be appended. The resultpath attribute of the <config> element is used for determining the location of the saved result.
- saveResponse
- Required? no
- Whether to make a permanent copy of received responses. Overrides the default value set in the <config> element.
- scenarioLocation
- Required? no
- The location of the scenario class.
- target
- Required? no
- A target to follow after the applet ends.
- username
- Required? no
- A username that can be provided for pages that require basic authentication. Typically only needed on the first step of any webtest accessing a secure site. Required if password is specified.
Nested Parameters
- parameter
- Required? no
- A parameter for the applet scenario.
- parameterRef
- Required? no
- A parameter for the applet scenario.
WebTestRecorder