Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Introducing additional operations during condition verification #171

Open
j3ssie opened this issue Feb 5, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@j3ssie
Copy link
Contributor

j3ssie commented Feb 5, 2024

It would be beneficial if you could incorporate additional operations into the Conditionals section, akin to those available in the Python programming language.

  1. Some commonly needed use cases include comparing status codes or the lengths of response bodies, such as {check.response.status_code} >= 300 or length({base.response.body}) > length({check.response.body}).

  2. Suppose I have defined a list of intriguing strings/regex patterns in the defined section, as shown below.

define:
	message = 
		"Message\":\"Invalid web service call",
		"Exception of type",
		"Server Error in '",
		"Server Error in Application"

I desire the capability to perform the conditional in or contains operation, such as {check.response.body} contains {message} or {message} in {check.response.body}

@Michelle-PortSwigger
Copy link
Contributor

Thanks for the feedback.

We can't make any promises at this stage, but we've made a note of your requests so they can be reviewed as we expand the capabilities of BChecks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants