-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Request template #879
Comments
i don't understand what this does or what benefit it gives you. Can you explain more? |
The goal is to make the locustfile.py more compact. It offloads content creation to another file.
Things can get even messier if there are more fields.
These templates file are just normal json with placeholder value, which can be easily acquired with a swagger or api explorer. |
You can do it with faker lib. |
faker lib is great to generate exemplary data but I'm talking about a request template: for example a json template for a REST api like you can have in Postman. |
Description of feature request
It would be nice to have a template system to generate request data. For example, generating username, email...
Expected behavior
Store request templates in template/, load it by file name.
I already build such a system for my test, I can do a PR if needed.
The text was updated successfully, but these errors were encountered: