Hello,
I'm using the Xray document generator templates. I want to number my issues in the resulting table. The loop runs over &{for issues}. From the documentation I get the impression that &{n} should give me the index number of the issue in the loop. But this gives me an empty result. What is the correct way to get the index printed in the table ?
Hi @Wilfred Janssen an @Mia Smith
Declare and initialize a variable before the "for" loop: ${set(count,0)}
then just after "for" loop , do the increment : ${set(count,%{${count}+1})}
It works.
It seems that &{n} isn't working in the Xray document generator templates to number issues. The correct way may vary based on the specific version and tools you're using. Since the documentation is not clear, consider consulting official support or community forums related to Xray for the precise syntax required to print the index in your table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.