cancel
Showing results for 
Search instead for 
Did you mean: 

Request should pick the data from a file and response should be generated in another file

SOLVED
tewaryjaydeep
New Member

Request should pick the data from a file and response should be generated in another file

How can i make request in a loop in ReadyAPI with different data and response should be generated in...

I have a request body  I have different data for a particular field in Request Body. Is there a way how I can loop the request with different data each time?

the goal is to have a file where 100's of different data responses are saved.

JAYDEEP TEWARY
1 ACCEPTED SOLUTION

Accepted Solutions
sonya_m
Community Manager

Re: Request should pick the data from a file and response should be generated in another file

I see that replies from the Community cover the first part of the question - you can either use a script, or do this using ReadyAPI features.

 

As for saving responses, please refer to this help article - https://support.smartbear.com/readyapi/docs/functional/steps/data-sink.html?sbsearch=datadriven 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

4 REPLIES 4
ChrisAdams
Contributor

Re: Request should pick the data from a file and response should be generated in another file

Hi,

 

This is known as a data-driven test.  This is standard functionality in the Pro (licensed) versions of SoapUI/Ready API.  This functionality is excellent and easy to use.

 

Here is a link to Smartbear's page https://www.soapui.org/docs/data-driven-tests/functional-tests/ 

 

However, if you're using the free version, this functionality is locked-down.  You can 'craft' your own data-driven solution, but it can be a little complicated, especially if you are new to SoapUI.

 

This type of test comes up very frequently in forum chats.  If you're using the free version, then search this forum and stack overflow for 'soap ui data driven tests' as I have previously seen several solutions put together by users.

 

Chris

HimanshuTayal
Community Hero

Re: Request should pick the data from a file and response should be generated in another file

@tewaryjaydeep : You can get help from below URL and build your own code on how to pick data from another file and use in request 

 

https://community.smartbear.com/t5/API-Functional-Security-Testing/TechCorner-Challenge-4-How-to-Gen...

 


Click "Accept as Solution" if my answer has helped,
Remember to give "Kudos" 🙂 ↓↓↓↓↓



Thanks and Regards,
Himanshu Tayal
sonya_m
Community Manager

Re: Request should pick the data from a file and response should be generated in another file

Thanks for your help, community!

 

@tewaryjaydeep does the advice help? Please mark the best reply as a solution!


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
sonya_m
Community Manager

Re: Request should pick the data from a file and response should be generated in another file

I see that replies from the Community cover the first part of the question - you can either use a script, or do this using ReadyAPI features.

 

As for saving responses, please refer to this help article - https://support.smartbear.com/readyapi/docs/functional/steps/data-sink.html?sbsearch=datadriven 


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors