Forum Discussion
- joejoyceStaff
Hey Sirisha2020 , is there a reason you're using Groovy Script to do this? With, for example, the Data Sink test step in ReadyAPI Test, you can store data collected in your tests to an external location (like a shared drive, in your case).
Documentation for that step is here: https://support.smartbear.com/readyapi/docs/functional/steps/data-sink.html
- Sirisha2020ContributorHi joe,
Thanks for your reply. We are trying to save the JSON requests and
responses using groovy script. Now, we are able to save the
requests/response in our local folder. But we are trying to find is there
any way to save them using a groovy script in our project folder.
Thanks.- joejoyceStaff
Thanks for the extra info. Where is the Project folder located? Is there a reason that it's more difficult to save it in this location than locally?
- nmraoChampion Level 3Thorough not sure how you are currently saving the requests and responses, you could map or mount the shared location to your drive and use that.
For example //shared/data can be mapped to local z / y drive(it can be any name) and write there what is the issue unless the location is hard coded. You can use a project property for the location as it can change on computer.
Another approach can be write a batch script to copy once execution is completed.
Related Content
Recent Discussions
- 3 hours ago
- 17 days ago