Measure

cancel
Showing results for 
Search instead for 
Did you mean: 

Requirement Gateway

Hi,

 

To display the list of "NotAppl" requirements, currently i am using loop on attributes with the condition as follows.

(attr4.typeName = "Result" AND attr4.ident = "NotAppl")

How to display the list of requirements which does not have the "Result" attribute at all? (i.e typeName itself is not present)

What is the modification required in the above condition?.

What is use of "loop when absent" test box in the attached image?

 

Thanks in advance for the quick reply.

Thanks

Kalyan

0 Kudos
Message 1 of 3
(6,585 Views)
Please help for the above query since it is urgent.
0 Kudos
Message 2 of 3
(6,562 Views)

Kals,

 

You can create a loop on the requirements of a document (or of the entire project) and use one of the following conditions:

$SOME(req1.attributes[typeName = "test"])

$NO(req1.attributes[typeName = "test"])

 

What these will do is return true or false depending on if the requirement has any attributes whose typeName is "test".

 

The loop if absent condition can be used to force the contents of a loop to run even if there are no elements to loop over.  For instance, if you had a loop over all sections and then a loop over all requirements, if you set to loop if not present over the requirements loop, then it would run even if the section had no requirements.  See pages 58-59 of the Customization Guide for more information.

Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 3 of 3
(6,554 Views)