Is it possible to assert on a list of response headers #2123
Replies: 2 comments 1 reply
-
Hi @cesarsaenz
Also, you can check what headers you're receiving with --verbose, |
Beta Was this translation helpful? Give feedback.
-
Maybe you can use filters, that allows you to transform data.
You have also |
Beta Was this translation helpful? Give feedback.
-
I have a site that I want to verify by asserting header responses, however the response contains the same header name multiple times in the response with different values. When I capture that header in a variable, its type is a list, I then tried to use "includes and contains to look for a specific value, however those only work on strings. An example of a capture is
[Capture]
variable "headerWithMulitpleValues" header foobar
[Asserts]
variable "headerWithMulitpleValues" contains "baz"
actual: [string <name=foo; value=>, string <name=baz; value=true>]
expected : contains string
Is there a way to assert a value in the header list, or a way to concert the list to a string?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions