cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved] DataSource Loops skips every other step

SOLVED
Highlighted
Occasional Contributor

[Solved] DataSource Loops skips every other step

Hello

 

I have tests set up to iterate through datasets, but I noticed that not all tests are executed. Every other step is skipped by the DataSource Loop.

 

If I test the DataSource itself all data is generated. It doesn't matter if I get data from the built-in generator or fecth it from an external file.

I double-checked both Datasource and Loop options, and as far as I can tell everything is set up correctly.

 

This morning I build a quick debug test;

1. DataSource (which generates 10 numbered strings)

2. DataSink (storing the output in ReaduAPI and a txt file)

3. 1 second sleep

4. dataSource Loop.

 

Even this simple little test still skips every other numbered line, eg. it will do rows 1, 3, 5, 7, 9, 10.

I've attached scrshot at the bottom with all details of every relevant step in this debug test case. It should be relatively easy to reproduce the test.

 

OS: Windows 10, 64-bit
ReadyAPI 3.3.0 (and 3.0.0)

License: SoapUI Pro (Fixed)

 

I'm at a loss here.
Can someone please tell me why ReadyAPI skips every other line?

 

loopDebug.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: DataSource Loops skips every other step - Known bug?

Hey @Nico,

Im ill at moment so cant be bothered to try and reproduce this at moment.
However i noticed in your example you havent included a REST or SOAP or RunTestcase step. If i remember correctly the datasource loop needs these types of steps as the target otherwise it doesnt work properly.

Thats all i got at the moment. I'll try and reproduce when i'm feeling better!

Ta

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

View solution in original post

3 REPLIES 3
Highlighted
Community Hero

Re: DataSource Loops skips every other step - Known bug?

Hey @Nico,

Im ill at moment so cant be bothered to try and reproduce this at moment.
However i noticed in your example you havent included a REST or SOAP or RunTestcase step. If i remember correctly the datasource loop needs these types of steps as the target otherwise it doesnt work properly.

Thats all i got at the moment. I'll try and reproduce when i'm feeling better!

Ta

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

View solution in original post

Highlighted
Community Hero

Re: DataSource Loops skips every other step - Known bug?

@Nico : Seconding what @richie said. There has to be some sort of test step between the Data Source and the Data Source loop. The way it works is the Loop increments the Data Source, but actually loops to the test step. With the way you have it, the Data Source is incremented by the loop, and then gets processed again by running itself from the loop.




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
Highlighted
Occasional Contributor

Re: DataSource Loops skips every other step - Known bug?

Thanks, that was it.

Even with just an empty groovy script test step my debug loop script now iterates through all rows.

 

The same still doesn't happen for the actual script, but now I get another error which will be suitable for another thread.

Again thanks, and @msiadak thanks to you too.

 

 

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

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Filtering data retrieved from a DataSource

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors