Canoo Webtest WebTest Canoo

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.

news

Latest build: R_1705
Posted: 14-May-2008 13:13

WebTest @ JavaOne
Dierk König will present "Functional testing of web applications: scaling with Java" on Wed May 7, 13:30 at JavaOne in the Tools and Scripting Languages track.
Posted: 6 May 2008

WebTest 2.6 released, featuring upgrades to Ant 1.7, Groovy 1.5.4, and HtmlUnit 1.14.
The release includes support for data-driven testing, testing of drag-and-drop, advanced AJAX support, high-concurrency testing and reporting, real-time monitoring, and - as usual - lots of handling improvements.
Posted: 18 March 2008

New WebTest screencast available:
Data Driven WebTest
Posted: 13 November 2007

First WebTest screencast available:
Creating a first Webtest Project

Extend WebTest with Groovy! Groovy in Action is available in every good bookstore.
Groovy in Action
Posted: 29 January 2007