cancel
Showing results for 
Search instead for 
Did you mean: 

DataSource Loop- not able to reload values

SOLVED
Highlighted
Contributor

DataSource Loop- not able to reload values

@nmrao 

I have Datasource step- D0->Excel -> containing data from an excel column- say it has one column as number with has 5 values ( number 1 to 5)

When i run the Data Source loop  using D0, I am able to run it fine, as there are 5 rows of data , it run for 5 times.

 

My requirement is to now to run the same step D0 for 10 times, and for the same I added one more step

 

DataSource(D1)->Data Generator-> In that I am passing number of rows as 10 

And then added a DataSource loop using D1 , and in that loop my source step is D1 and Target step is D0

My loop runs for 10 times, problem is when I look at the values it is displaying 

1,2,3,4,5,5,5,5,5,5

however I was expecting it to be like

1,2,3,4,5,1,2,3,4,5

Not sure what I am doing wrong, but I am quite sure it should work.

 

Any thoughts..!!

 

Thanks,

Anand 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Hero

Re: DataSource Loop- not able to reload values

Not sure. May be file pointer already reached EOF.

Instead use groovy as data source first which will repeat your original one time excel data source.

Refer documentation for groovy data source.


Regards,
Rao.

View solution in original post

Highlighted
Community Manager

Re: DataSource Loop- not able to reload values

Hi @anand1,

 

Was the original issue resolved?

 

We have a great video demonstrating how to set up data-driven testing in ReadyAPI:

 

If the video didn't help, could you please post here screenshots of your settings?

---------
Tanya Gorbunova
SmartBear Community Manager

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

View solution in original post

4 REPLIES 4
Highlighted
Community Hero

Re: DataSource Loop- not able to reload values

Not sure. May be file pointer already reached EOF.

Instead use groovy as data source first which will repeat your original one time excel data source.

Refer documentation for groovy data source.


Regards,
Rao.

View solution in original post

Highlighted
Community Leader

Re: DataSource Loop- not able to reload values

@anand1  : Try below 3 solution for this:

 

1. Try to write the desired set of data in your excel sheet

2. Find a solution to reset DataSource Iteration after 5 Count.

3. Using Customize Groovy Code will be the better solution as you can achieve any condition with your logic.

 

 


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



Thanks and Regards,
Himanshu Tayal
Highlighted
Community Manager

Re: DataSource Loop- not able to reload values

Thanks Rao and Himanshu!

 

Hi @anand1! Do the suggestions help?


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
Community Manager

Re: DataSource Loop- not able to reload values

Hi @anand1,

 

Was the original issue resolved?

 

We have a great video demonstrating how to set up data-driven testing in ReadyAPI:

 

If the video didn't help, could you please post here screenshots of your settings?

---------
Tanya Gorbunova
SmartBear Community Manager

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
Top Kudoed Authors