04-28-2008 08:31 AM
04-29-2008
04:23 PM
- last edited on
11-13-2024
10:48 AM
by
Content Cleaner
07-17-2008 09:09 AM
07-21-2008 10:40 AM
08-19-2008 08:36 AM
In the custom report, is it possible to filter based on the attribute text?.
Example
I have a attribute named "Result"
"Result" attribute possible text values are Pass / Fail / Notappl.
Is it possible to generate the requirement ID's only for the Pass values in the "Result" attribute?.
i am able to generate report for the requirement ID's which has attribute.
But i would like to generate requirement ID's report which has "Result" attribute with text 'Pass'.
08-19-2008 09:02 AM
Also is it possible to generate report based on the different attribute name?.
Example
I have two boolean attributes named priority and severity.
I need only the requirements ID's which has priority attribute.
How to configure in the report?.
Please help.
08-20-2008 03:41 PM
When you have a requirement you would like to include in the report, you can loop on the attributes of that requirement. Then in the loop for the attributes, you can define a condition to determine if the attribute exists and has the correct value for you to log the requirement.
For example, here is a condition that will display the loop's contents only if there is an attribute of type "Test" and that has the value "Three":
attr1.typeName = "Test" AND attr1.ident = "Three"
Of course, I am using the default attribute variable name (attr1), so you would want to change the condition above to use your variable name instead.
08-21-2008 05:30 AM
Thanks for the reply. Also I would like to count the attribute which has the value "Pass". Could you teach me how to do that?.
Is there any document which gives more details about the inbuild variables in the NI Requirements Gateway reports apart from the default documents in the folder \National Instruments\Requirements Gateway 1.0\Doc
Thanks for the help.
Thanks
Kalyan
08-21-2008 08:11 AM
Also i would like to count the parent ID's. Example There is a traceability between REQ_1, REQ_2 and TEST_1
I have a attribute value "PASS" in TEST_1 so that i would like to count the REQ_1 and REQ_2 so the total is 2.
Same way for all the attribute value "PASS".
How to configure in the report?. Please explain.
Thanks
Kalyan
08-25-2008 10:02 AM
Kals,
Unfortunately, report customization is mostly un-documented. However, I did find a way to accomplish what you want.
One of the structures that you can drop is called "code OTScript". If you drop this node in a requirements loop (defined with the condition we discussed above), you can create a statement that will count the number of references of that requirement. You need to type the following into the code structure:
STR($CNT(req1.references))
Please note that I tested this in several simple cases, but I cannot guarantee that it will work in your case. Please let me know if you have any trouble.