NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Passed Reports only

How can I have TestStand only save reports that have passed? I don't
want reports saved that have Failed, Termaited or have errors. Thanks
0 Kudos
Message 1 of 10
(4,468 Views)
Hi,

Easies way would be to modify the report generator sequence file and
in the PutOneResultInReport sequence use a goto steps at the beginning
that has a precondition and if it met will jump to the step After
Details.
The precondition would be
Parameters.Result.Status != "Passed"

Hope this helps
Regards
Ray Farmer
0 Kudos
Message 2 of 10
(4,468 Views)
Where do i find the report generator sequence file?
0 Kudos
Message 3 of 10
(4,468 Views)
Hi,

In the folder ..\TestStand\Components\User\Models\TestStandModels or
..\TestStand\Components\NI\Models\TestStandModels and the sequence file is called reportgen_txt.seq or reportgen_html.seq or for TS 3.0 reportgen_xml.seq.

Depends which report style you are using eg Text , Html or XML

Hope this helps.
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 10
(4,468 Views)
Ray, Thanks for the help, I tried doing what you suggested and the report saves as a blank report. I think what i would like to do is skip over the "Write UUT Report" in the sequential model if the the report does not pass. That way the report will not save at all. If I use a GOTO Statement before "Write UUT Report" What would I need to put in it for a pre-condition?
0 Kudos
Message 5 of 10
(4,468 Views)
Ray, Thanks for the help, I tried doing what you suggested and the report saves as a blank report. I think what i would like to do is skip over the "Write UUT Report" in the sequential model if the the report does not pass. That way the report will not save at all. If I use a GOTO Statement before "Write UUT Report" What would I need to put in it for a pre-condition?
0 Kudos
Message 6 of 10
(4,468 Views)
Hi,

When the process model calls the step to set the report path it actuals creates an empty file at the same time.
So if you really dont want a report file then it would be best to shift the Determine Report Path step further down the process model sequence,eg after you know the result from the MainSequence then you can be sure of not generating any empty files by skipping all the report related steps.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 7 of 10
(4,468 Views)
Hi,

There are two possibilities, depending on the behavior you want to achieve:
1. Generate and see the report in the TestStand report viewer, but to save only the "Passed" reports
2. Don't generate/view/save any report but only the "Passed" ones

In the first case, all you have to do is to insert a new precondition for the "Write UUT Report" step in each of the Execution Entry Points, as follows:

In the second case, it is easier to place a GoTo step as first step in the "TestReport" callback, and set the following precondition:

Hope this helps,
Silvius
Silvius Iancu
0 Kudos
Message 8 of 10
(4,468 Views)
Hi,

You also need to make sure you do not call the step 'Determine Report File Path' in either Single Pass or Test UUTs sequence because this step generates an empty report file.
So you need to move this step to a position after the call to the MainSequence Callback and before the call to TestReport Callback. Also put an additional precondition to allow the step to be called if MainSequence "Passed".

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 9 of 10
(4,468 Views)
Thanks for everyones help!
0 Kudos
Message 10 of 10
(4,468 Views)