Cant iterate tests in test set


I'm trying to iterate tests in a test set. when I use the following syntax, I get the expected results.:

Tests[0].TestSteps[0].StepNumber: ${Tests[0].TestSteps[0].StepNumber}
Tests[0].TestSteps[0].Step: ${Tests[0].TestSteps[0].Step}
Tests[0].TestSteps[0].Data: ${Tests[0].TestSteps[0].Data}


But when I try to iterate in a loop, I don't get anything. I use the following syntax:

#{for tests}


My question is: Why does it work when I hardcode the array index, but not when I iterate in a for loop?


Thanks for your help.

6 answers

1 accepted

0 votes
Accepted answer

Your template has some typos. I've fixed it. Please try it.


Which versions are you using?


Xporter : 5.0.0

Xray: 2.0.10


They are trial version, but I dougt that it has anything to do.

I've checked in my local Environment and it's working as expected.

Can you share your template?

I stripped most of it and left the part that won't work. The green part works.

Thanks, that's perfect.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Statuspage

194 years of downtime: looking back on incident data from 2018

Statuspage customers logged more than 194 years of collective incidents in 2018. That’s a whopping 87% increase from the  104 years logged in 2017 , and we aren’t even through December yet....

58 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you