Forum Discussion
axeltoushirou
9 years agoContributor
I suggest you use some Groovy Script and do a loop
example:
for (int i = 0; i < 10; i++) {
assert expectedData == context.expand( '${Test Step Name#Response#$.e[i].productid}' )
// i is equal to 0 and will increment each iteration until it reaches 9
// this will do a loop from index 0 - 9
// also the expectedData should be incremented also }
if you are using JSON as data you can use JsonSlurper, or XMLSlurper for XML.
hope this will help you.
Related Content
- 9 years ago
- 8 years ago
- 5 years ago
Recent Discussions
- 9 hours ago
- 3 days ago