cancel
Showing results for 
Search instead for 
Did you mean: 

Iterate from the start of resultset after EOF is reached.

SOLVED
Highlighted
Contributor

Iterate from the start of resultset after EOF is reached.

Hi,
Following r my test step using Rest services.

1. Create Datasource ( Select Id from <tablename>)
2. getResouce for the specific ID (from step 1)
3. DataSource Loop.

depending on number of rows returned in step 1, the test iterates.

Can you please suggest how can this test run continuously after EOF is reached. Start from row 1 again, till EOF and repeat the whole step again.

It use to run earlier without making any specific settings in the Data Source step, but now it is failing.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Manager

Thank you for sharing it with us @anand1 !

For future reference - this post hold the solution.


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

9 REPLIES 9
Highlighted
Community Hero

Hi @anand1,

Just to clarify what you want.

You have a looping testcase with n number of records in your datasource.

The testcase loops fine relative to the n records in your datasource and once the testcase executes n times you want the whole thing to run again n times?

Is that right? I feel like ive got that wrong somewhere cos why do you need the test to execute twice with the same datasourced records? Am i missing something?

Nice one,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Highlighted
Contributor

@richie 

Yes you are right, I would like to run the request back again once it loops n times.

Reason, there is one more request before that which results in n+10 records and everytime i run it,

my subsequent request (which has n records) does not come back to the start of the record, once it reaches EOF.

 

I have seen it earlier it use to work fine, not sure what has changed now.

 

Any thoughts

Highlighted
Community Hero

Repeating the question in new topics won't really helps. Please have some patience.

https://community.smartbear.com/t5/SoapUI-Pro/DataSource-Loop-not-able-to-reload-values/m-p/200349#M...

 

You haven't replied any in the previous question after the suggestions.



Regards,
Rao.
Contributor

No offense @nmrao 

From the time of soapui pro days I remember this thing works as if is default thing/feature, hard to believe that for this I need to add a groovy script to reset it in the newer version.

No resistance in adding it, but somehow i feel that i am not able to harness the default features of the product .

 

And adding another thread was to give the requirement a new perspective, nothing else.

 

Thanks,

Anand

 

Highlighted
Community Hero

Understood.

But the other topic isn't updated after the replies whether you tried or those not helpful? Otherwise no way to know what happened

Please understand that the people spend their time on the questions. So appreciate the response.


Regards,
Rao.
Highlighted
Community Manager

Hi @anand1. I agree with Rao here -  we would be happy to help you, but, first, we would like to understand what works for you and what doesn't. The Community provided you with valuable input in both topics, please provide us with feedback on that. Or, please elaborate your request if the suggestions don't work. Thank you.


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
Highlighted
Contributor

Thank you, will keep it before creating a new thread, for now yes it worked for me.

 

 

Highlighted
Community Hero

Glad to hear that.



Regards,
Rao.
Highlighted
Community Manager

Thank you for sharing it with us @anand1 !

For future reference - this post hold the solution.


Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get a full Raw JMS request

Participate!

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors