I have a couple of web scenarios, and some of them have "Required String" enabled. The endpoint will always return http response code 200, even if the required string doesn't match. Example:
Step 1
Endpoint: https://api.example.com/api/v1/status
Required string: "ApiStatus" status="up"
Step 2
Endpoint: https://api.example.com/api/v1/status
Required string: "Apiv2Status" status="down"
[...]
The status code of https://api.example.com/api/v1/status will always be 200, even if it shows "Apiv2Status" status="down", so I cannot use the web.test.rspcode function.
I wanna create a trigger that, if a certain step have status="down", trigger an alarm.
How can I achieve that?
Step 1
Endpoint: https://api.example.com/api/v1/status
Required string: "ApiStatus" status="up"
Step 2
Endpoint: https://api.example.com/api/v1/status
Required string: "Apiv2Status" status="down"
[...]
The status code of https://api.example.com/api/v1/status will always be 200, even if it shows "Apiv2Status" status="down", so I cannot use the web.test.rspcode function.
I wanna create a trigger that, if a certain step have status="down", trigger an alarm.
How can I achieve that?
Comment