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

Feature-716 Ability to save actual request files as a native functionality #717

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

skirankumars31
Copy link

@skirankumars31 skirankumars31 commented Jun 12, 2024

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

@skirankumars31
Copy link
Author

Hei Andreas, I tried writing the functionality in inputRedirectionHttpRegionParser.ts but i never got it to work so i kind of wrote the functionality in requestBodyHttpRegionParser.ts and then it worked. Definitely know that my code needs a lot of cleaning up :)

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

Successfully merging this pull request may close these issues.

1 participant