Skip to content

how to check request body content #649

Answered by nicnocquee
techieshark asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @techieshark

You can use Regex for the alert's query. For example, if you want to receive notification when the title is "Error not found", you can use the following alert:

 - query: response.body ~= "Error not found"
        message: Title not what is expected!

Likewise, If you want to get notification when the title does not contain "Where the world", you can use the following alert

 - query: response.body ~= "^(?![^]*Where the world)"
        message: Title not what is expected!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@techieshark
Comment options

Answer selected by nicnocquee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants