Canoo Webtest WebTest Canoo

Core Step testInfo

Description

Provides the ability to display 'static' information in report. This step does nothing. It just gets reported as it (with its attributes) in the report.

Parameters

type
Required? yes
The information type. Helps to classify info. Many information of the same type within a single WebTest are allowed.
description
Required? no
The description of this test step.
info
Required? no
The information that has to be displayed in the report (ex: related bug number, ...)

Inline Text

The inline text is all the text between the start tag ( <testInfo> ) and the end tag ( </testInfo> ), including blanks, tabs or newlines. Using a pair of start/end tags ( <testInfo> </testInfo> ) has not the same behavior than the seemingly equivalent empty element tag ( <testInfo/> )! See this issue for an example.

Required? no
An alternative to the attribute info for e.g. large texts.

Details

Suppose that you make a test to ensure that an issue registered in your issue tracking system is now fixed. You can write this information in the webtest using testInfo for instance this way

testInfo Example
<webtest name="testInfo: simple usage scenario">
    <config .../>
  <steps>
    <testInfo type="issueNumberinfo="WT-250description="the related issue number in WebTest tracking system"/>
    ... the 'real' steps here...
  </steps>
</webtest>

Using the standard html reports generated by WebTest this information is displayed on the top of the test details. The xslt can be easily adapted to produce a better representation (for instance hyperlink into the issue tracking system in the previous example).

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