Core Step storeHeader
Description
Provides the ability to store an HTTP Header value for later checking
Parameters
- name
- Required? yes
- The name of the Http Response Header of interest. If the property name is not specified, the header name is used as key to store the value found.
- description
- Required? no
- The description of this test step.
- property
- Required? no
- The name of the property in which to store the retrieved value.
- propertyType
- Required? no, default is the "defaultPropertyType" as specified in the "config" element is used.
- The type of the property in which to store the retrieve value. Either "ant" or "dynamic".
Details
<config ...>
<steps>
<invoke description="Load Image" url="ok.gif"/>
<storeHeader description="store content-type"
name="Content-Type" property="contentType" />
<verifyProperty description="should be a gif image"
name="contentType" text="image/gif"/>
</steps>
</webtest>
WebTestRecorder