Extension Step verifyHeader
Description
Verifies that the current response contains the specified HTTP Header.
Parameters
- name
- Required? yes
- The name of the Http Response Header of interest.
- text
- Required? yes
- The expected header value.
- description
- Required? no
- The description of this test step.
- regex
- Required? no, default is 'false'
- Specifies whether the text value represents a regular expression.
Inline Text
The inline text is all the text between the start tag ( <verifyHeader> ) and the end tag ( </verifyHeader> ), including blanks, tabs or newlines. Using a pair of start/end tags ( <verifyHeader> </verifyHeader> ) has not the same behavior than the seemingly equivalent empty element tag ( <verifyHeader/> )! See this issue for an example.
- Required? no
- Alternative way to set both name and text attributes separated by a semicolon like "Content-Type: text/html".
WebTestRecorder