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

How can I test and fuzz multiple examples? #867

Open
DooniilGameDeveloper opened this issue Feb 27, 2024 · 1 comment
Open

How can I test and fuzz multiple examples? #867

DooniilGameDeveloper opened this issue Feb 27, 2024 · 1 comment
Assignees
Labels
engine Issue in the RESTler engine question Further information is requested ux User experience related issue

Comments

@DooniilGameDeveloper
Copy link

Description

Hello!

I have a POST request and I need to use <20 custom examples for it. As I understand these examples can help in mutation data, am I right?

So, I created examples.json, specified it in config.json and everything works for the first example:
image
But if I add another example, like this
image
The example doesn't use while testing. In grammar.py I found just the first one. Can I do something with it?

@marina-p
Copy link
Contributor

marina-p commented Mar 4, 2024

Hello @DooniilGameDeveloper,

You can enable testing all examples through the following engine setting:

"test_combinations_settings": {
      "example_payloads" : {
          "payload_kind": "all"
      }
}

And in the following two use cases:

  1. test mode when --test_all_combinations is specified on the RESTler command line

  2. fuzz mode and setting "fuzzing_mode": "bfs" in the engine settings.

Currently, it does not work with fuzz-lean mode but that would be straightforward to enable.

Side note: as you saw, RESTler only adds the first example to the Python grammar - the others are only added to the grammar.json file generated side by side with grammar.py.

Thanks,

Marina

@marina-p marina-p self-assigned this Mar 5, 2024
@marina-p marina-p added auth question Further information is requested engine Issue in the RESTler engine ux User experience related issue and removed auth labels Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issue in the RESTler engine question Further information is requested ux User experience related issue
Projects
None yet
Development

No branches or pull requests

2 participants