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. The types issueNumber and summary have a special signification for WebTest's standard report generation.
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">
  <testInfo type="issueNumberinfo="WT-250"
    description="the related issue number in WebTest tracking system"/>
  ... the 'real' steps here...
</webtest>

Using the standard HTML reports generated by WebTest this information is displayed on the top of the test details. As issueNumber is a special type for testInfo, an additional formatting occurs here: an hyper link is created to the issue number in the bug tracking system (according that you set the build property wt.htmlReports.testInfo.issueNumber.baseUrl to specify the base url of your bug tracking system).

Special types

testInfo can be used for any type of information but two types are handled specially by WebTest's standard report generation:

issueNumber
Required? no
It tells WebTest to generate an hyper link from the info attribute allowing to have a clickable link to an issue related to the test directly from the test report. The value of the build property wt.htmlReports.testInfo.issueNumber.baseUrl is prepended to the info value. In the case of WebTest's issue tracker, this property is set to http://webtest-community.canoo.com/jira/browse/ to create links like http://webtest-community.canoo.com/jira/browse/WT-250.
summary
Required? no
Information contained in testInfo steps with this type will be displayed as well in the overview report.

news

Latest build: development
Posted: 19-Jul-2016 17:36

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