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.
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.
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.
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.
Hi,
Which versions are you using?
Cheers.
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.