Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
360 views
in Technique[技术] by (71.8m points)

soapui - READYAPI - Run multiple data per iteration on datasource

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

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

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...