Method GetHeaderValue
Returns response header valueUsage
Function GetHeaderValue(
String HeaderName,
Boolean Report [Optional]
)
Parameters
HeaderName
Type: String
Header Name
Report (optional)
Type: Boolean
Default Value: False
Generate report for this step
Returns
Header Value
Example
VBScript
Server("API Server").Method("Method").Execute
' Execute method should be called before get header value
headerValue = Server("API Server").Method("Method").GetHeaderValue("Server", True)
JavaScript
Server("API Server").Method("Method").Execute();
// Execute method should be called before get header value
var headerValue = Server("API Server").Method("Method").GetHeaderValue("Server", true);
Comment
Execute method should be called before get header value