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

RESTler uses "fuzzstring" instead of value from generator after first request #931

Open
qusysert opened this issue Jan 14, 2025 · 1 comment

Comments

@qusysert
Copy link

Description

RESTler uses "fuzzstring" instead of value from generator after first request
For first request its actually generating random values using specified generator, then it uses "fuzzstring" as value for all fields

Steps to reproduce

  1. Compile grammar
  2. Add path to default generators custom_value_gen_template.py in engine_settings

{
"disable_cert_validation":true,
"per_resource_settings": {},
"max_combinations": 20,
"custom_value_generators": "/RESTler/restler/Compile/custom_value_gen_template.py",

"authentication": {
"token": {
"location": "/RESTler/restler/token.txt",
"token_refresh_interval": 300
}
}
}

  1. Run restler in fuzz mode
    ./Restler fuzz --grammar_file /RESTler/restler/Compile/grammar.py --dictionary_file /RESTler/restler/Compile/dict.json --settings /RESTler/restler/Compile/engine_settings.json --target_ip 10.8.141.108 --target_port 9993 --host s

Expected results

Restler uses values from generators on every request

Actual results

Restler uses value from generators only on first request, then it using "fuzzstring" for all fields

network.testing.281473523395336.1.txt

Environment details

macOS, Python 3.12.8, dotnet 6.0.128, RESTler version: 9.2.4

@qusysert
Copy link
Author

Its also uses same random generated values for every request in test mode
Why this happens?

network2.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant