NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Requirements Gateway customize reports with conditions

I want to create a report in NIRG to list e.g. all failed tests.
My environment consists of three documents: Specification (DOORS) - Testscript (Teststand) - Testreport (Teststand XML Testreport).
 
Now I want to have the chance to list all failed tests in a report. How to read out the Status-attribute is clear for me, but how can I create a condition in the properties area for this status-attribute in the custumizing report dialog.
Where can I get a list of all possible 'Conditions'? I saw conditions like 'IsFiltered', 'IsDerived' ... where are these conditions defined? I didn't found any informations about this in the customization guide.
When I create conditions like in 'C' programming language I get an error message.
 
Stephan
0 Kudos
Message 1 of 2
(2,890 Views)
Stephan,

I contstructed a simple report that lists all steps that failed.  It is also possible to include the sequence calls that fail as well.

I added a single parameter to the report of type "Document".  I think added a List structure in the report.  Inside of the list, I added a loop on the doc1.sections/entities/requirements.  Inside of the loop, I added a list item.  I added a paragraph inside of the list item, and added the ent1.display inside of it.

I then selected the loop and changed the condition to the following:
typeName="Test Step - Failed" OR typeName="SeqCall - Failed"

This will only display steps that failed or sequences that failed.  I determined this by looking at the TestStand XML Report Type's defintion to determine how the information was stored.

Unfortunately there is no master list of functions or parameters that can be used.  Generally I will look at the example reports if I need a particular function to see if one exists.  Of course, if you get stuck, you can always post on the forums and I will be happy to help you.

I have attached the report I created.  You will need to place it in a subdirectory of your .rqtf project called "doc_models".  If you already have a file by this name, you can merge the files in a text editor.

Allen P.
NI
0 Kudos
Message 2 of 2
(2,864 Views)