Method GetHeaderValues
Returns array of response header values by header nameUsage
Function GetHeaderValues(
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 Values String Array
Example
VBScript
Server("API Server").Method("Method").Execute
' Execute method should be called before getting header values
headerValues = Server("API Server").Method("Method").GetHeaderValues("Server", True)
JavaScript
Server("API Server").Method("Method").Execute();
// Execute method should be called before getting header values
var headerValues = Server("API Server").Method("Method").GetHeaderValues("Server", true);
Comment
Execute method should be called before get header value by index