Measure

cancel
Showing results for 
Search instead for 
Did you mean: 

requirement gateway

I am able to print requirement which has "NTR" attribute using the following conditon

$SOME(req5.attributes[typeName = "NTR"])

 

But for the each requirement i would like to check whether the particular attribute is available.

 

if it is available i have to print "X" otherwise i have to leave it as blank.

 

Is it possible to print "X" if the particular attribute is available?.

 

For Example  :

"REQ_1"  has attribute "NTR"

"REQ_2"  does have attribute "NTR"

"REQ_3"  has attribute "NTR"

I would like to have a report something like this. How to do this?

 --------------------

ReqID   -  NTR 

 --------------------

REQ_1      X

REQ_2

REQ_3      X

--------------------- 

 

 Your immediate help is appreciated.

0 Kudos
Message 1 of 2
(6,584 Views)

Kals, here is what you want.

 

The key is to always loop over the Requirements, but to have the X show up only if an attribute of the type name exists.

 

Message Edited by Josh W. on 09-11-2008 02:49 PM
Josh W.
Certified TestStand Architect
Formerly blue
0 Kudos
Message 2 of 2
(6,568 Views)