Feature-716 Ability to save actual request files as a native functionality #717
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have the request json file with a lot of variables that need to the replaced at runtime. While testing i had a failure and we had to figure out exactly what values were sent like uuid and timestamp to figure out what was going wrong in the system and it was difficult because the actual request with replaced variables is not saved anywhere. Andreas pointed out in Discord that it can be done be done using a script but i figured out that building this functionality natively would be more useful because this is more or less a universal problem for all api testers. Basically i thought something like this
<@ input/request.json >>! input/actual/request.json
The actual request with all the values will saved in the arguments(input/actual/request.json) that is given
So i played around with the code and implemented the functionality in a hurry. I have submitted a pull request and i would love to have some feedback and collab on the pull request since im not that much of a coder.I have tested my code and it works
Thanks
Kiran