Im trying to loop through all linked issues of a test. I want to print "No created issues" if none are found or print a list of issues if there are some.
How can this be done using xray document generator? It doesnt seem to have an "else" conditional and i have no idea what are the return types of various filters are since they dont seem to have been documented.
Using this for loop i can loop through all the correct linked issues, but i have no idea how to turn this into a if clause.
#{for k=Tests[n].LinksCount|filter=%{'${Tests[n].Links[k].LinkType}'.equals('created')}}
Does any one know a solution to this?
Im specifically interested in a way to know if there are no issues of certain type.
Hi @LAL
You can see here the related information about Iterations and here how to create a Conditional Block.
I also suggest you open a ticket at our Service Desk and attach the template you are using so we can investigate this further, and help you to get the information you need.
Thank you.
Best Regards,
Sergio.
_______________
Solution Architect and Testing Advocate @Xray
Personal blog on testing, Agile, and software development: https://sergiofreire.com
Follow me on Twitter: https://twitter.com/darktelecom
Ive read the documentation, but ive found it to be very unintuitive and lacklustre.
Listing returnable values would be a BIG improvement to the docs.
I used "set" function and a variable to check if loop has been run. This is basically how i made an "else" loop.
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.