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
<config .../>
<steps>
<testInfo type="issueNumber" info="WT-250" description="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).
WebTestRecorder