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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.