Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I tried to use this feature: Datasource -> Rows Per Iteration, I thought the tool will process 5 data per iteration, but instead, every 5th data on the Datasource got processed. Can anyone help me on this one? I got stuck here and cant find any materials online available. thanks!

question from:https://stackoverflow.com/questions/65947955/readyapi-run-multiple-data-per-iteration-on-datasource

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
366 views
Welcome To Ask or Share your Answers For Others

1 Answer

The SmartBear site explains this clearly. If you define 5 rows per iteration, you get 5 rows, but you have to access each of the five by an index. If you don't specify the index, you get the last of the five, which is what I think you're seeing.

E.g.

${DataSource#Country::0}  // Index specified
${DataSource#Country}  // Index not specified.

Here is the link to SmartBear's site. Link


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...