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_1803
Posted: 17-Feb-2010 09:57

WebTest 3.0 released, featuring upgrades to Java 5, Groovy 1.6, and HtmlUnit 2.4.
The release includes support for maven integration, IDE-integration like for unit tests, capturing of background JavaScript errors, new steps for mouseOver and mouseOut events, better parallel execution of tests and - as usual - lots of handling improvements.
Posted: 5 March 2009

WebTest @ JavaOne
Dierk König presented "Functional testing of web applications: scaling with Java" on Wed May 7, 13:30 at JavaOne 2008 in the Tools and Scripting Languages track.
Posted: 8 May 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