abao
abao copied to clipboard
Testing requests with required queryParameters
Hello, is there a way, how to test request with required query params? I would add query param in a hook, but there is no such parsed info in test.request...
Thanks for the suggestions!
please use test.request.query
, it's mentioned in hooks part of README
I was hoping there is a way to modify requests globally in beforeAll
and use some parsed data from queryParams raml definition. Anyway, i can set up individual hooks for appropriate endpoint tests.
Thank you for your answer!
What is your case?
Is it OK if abao can parse/use queryParams in raml for each individual API?
I have lot of API endpoints with required queryParams, so if abao parses / sends required queryParams in test requests (similar to uriParameters), it would be nice!
Add to plan
Have you finished this feature?
@honzatrtik How do you resolve this problem ? I have the same problem,can you give some advise
i have fixed this feature , can i create a feature branch?
@cybertk Hello. Could you help merge this pull request? I also wrote some unit tests for it. Our project really need this feature. Currently we are downloading dependencies directly from Github. But we hope this feature can be released to npm.
This issue should be closed now. @Cybertk, Could you also release a new version to NPM?
@plroebuck @galk-in I think we can release v0.4 now. Could you please help prepare the release note, or we can just extract them from all the previous beta tags?
@cybertk I think we can just extract.
Cool, I will do this.