cancel
Showing results for 
Search instead for 
Did you mean: 

Loop over testStep in soapUi testSuite

SOLVED
Highlighted
Occasional Contributor

Loop over testStep in soapUi testSuite

Hi All,

I makingone testSuite where I need to repeat one testStep multiple time. Again repeat count depends on output of previous step where getting response in some JSON string. Need to get the iteration count of of response document and loop-over for 2nd testStep.

Kindly help ifyou can get something.

 

As per below pic I needto do loopover policyList based on the response of Add step


Capture.PNG


Thanks
Baharul Islam

1 ACCEPTED SOLUTION

Accepted Solutions
Community Leader

Re: Loop over testStep in soapUi testSuite

Hi @Baharul,

 

In your K Loop, where you are running the Request, just after the execution, write your code to save the response somewhere so that you can use in future, either in Properties step or excel file.

 

Refer link on how to store Response to Excel file or notepad How to save response data in Excel

 

 

 


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" 🙂

Thanks and Regards,
Himanshu Tayal

View solution in original post

2 REPLIES 2
Highlighted
Occasional Contributor

Re: Loop over testStep in soapUi testSuite

Hi All,

 

I am able to achive this through Groovy script as per below screen-shot. I am not sure if this is the implementation is supposed to be or is there anyother way..

 

Can anyone please help me in getting how to collect response time for each step..

 

Capture.PNG

 

 

 

 

Thanks in advance...

Community Leader

Re: Loop over testStep in soapUi testSuite

Hi @Baharul,

 

In your K Loop, where you are running the Request, just after the execution, write your code to save the response somewhere so that you can use in future, either in Properties step or excel file.

 

Refer link on how to store Response to Excel file or notepad How to save response data in Excel

 

 

 


Click "Accept as Solution" if my answer has helped, and remember to give "kudos" 🙂

Thanks and Regards,
Himanshu Tayal

View solution in original post

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