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

Monkeystore example doesn't parse string parameters #17

Open
JorenVdV opened this issue May 18, 2017 · 2 comments
Open

Monkeystore example doesn't parse string parameters #17

JorenVdV opened this issue May 18, 2017 · 2 comments

Comments

@JorenVdV
Copy link

JorenVdV commented May 18, 2017

When running the monkeystore example on the petstore:
got-swag http://petstore.swagger.io/v2/swagger.json examples/monkeystore.yaml -m
the status does not get filled in
{
"MONKEY_LAST": {
"parameters": {
"status": null
},
"statusCode": 200
}
}

@morris
Copy link
Contributor

morris commented May 22, 2017

Hi!

This looks like intended behavior, currently: A monkey test will always stop as soon as it sees 2xx. We're open for discussion if that behavior is good enough, though. More requests give more insight, of course. Possible enhancements:

  • Try every parameter at least once
  • Make at least 5 requests

@JorenVdV
Copy link
Author

Hi,

a "try every parameter" option would be nice, or even a subset with a defined sized (take X random values/combinations)
I was confused about the fact that it takes "null" as the first possible attempt compared to one from the x-vars list.

@morris morris added v2 and removed help wanted labels Jul 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants