Hello, the question says it all. I'm trying to print the value of a variable used to iterate in a for loop... but nothing is shown.
&{for count=TestsCount} Count: ${count} &{end}
When using this, Count doesnt show anything, but TestsCount is equal to 2.
What am I doing wrong?
Thanks for your help.
Hi @Barry Allan,
This &{for... &{end} notation is used only to iterate over issues.
In your case you just need to use this (Xporter 5.0):
#{for count=TestsCount} Count: ${count} #{end}
If you just want to print the TestsCount value use this:
${TestsCount}
Cheers,
Rui Rodrigues
I can TestsCount, but the for loop doesn't print any value. I do have Xporter 5.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The count variable represents the current index value. What do you want to print? The total or the current index value?
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.
You must user ${count} to print the current iteration index, as shown on the example above.
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.