You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
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} Tests[0].TestSteps[0].ExpectedResult: ${Tests[0].TestSteps[0].ExpectedResult}
But when I try to iterate in a loop, I don't get anything. I use the following syntax:
&{for issues|filter=%{'${IssueTypeName}'.equals('Test Set')}} #{for tests} ${Tests[n].Key} ${Tests[n].Summary} ${Tests[n].Description} #{end} &{end}
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.
Your template has some typos. I've fixed it. Please try it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Xporter : 5.0.0
Xray: 2.0.10
They are trial version, but I dougt that it has anything to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've checked in my local Environment and it's working as expected.
Can you share your template?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I stripped most of it and left the part that won't work. The green part works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.