NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Report generation delay

Hi,
I had a problem with teststand report generation at the end of the test. The report generation is taking too long, while it is appending the report.
 
My report is in ascii text format and will attach the report to the pre-existing file. The typical test has about 100 steps, and the test exists the sequence when a step fails.
I had tried before the on-the-fly report option, but I had some other problems with it.
I think two main reasons for the delay is: Filtering for Failed steps and appending to the big file.
 
But I don't how to solve this. Does any body has any ideas without using on-the-fly method.
 
Thanks in Advance
0 Kudos
Message 1 of 8
(4,601 Views)
Hi,

what kind of resultfiltering are you doing? There can be a huge potential of improvement; this is because you can "filter" the results of each step during runtime of the sequence and discard every result which does not pass this filter. The default filterfunction of the reportgeneration takes place during reportgeneration, so after all results already have been collected. This can be inefficient, exp. with large resultlists.
The function used for "runtime-filtering" woulod be an override od the "PostResultListEntry"-Callback.

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 8
(4,591 Views)

Hi Norbert,

The result filtering is set to Skip Passed/Done steps and this is done in report settings menu. So My result list only have Failed steps.

Do you suggest to modify PostResultListEntry from the model.

Thanks

 

 

0 Kudos
Message 3 of 8
(4,584 Views)
Yes, you should give it a try to remove all "passed/done"-step results from the resultlist by using the callback. Te callback has a parameter called "DiscardResult" and you have to set this to true within the callback if the result.status == "passed" || result.status == "done" (pseudocode!).

By the way, as a indicated before:
Filtering in the reportgeneration (you configure this in the report options dialog) does NOT remove any results from the resultlist!!

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 8
(4,561 Views)

Hi Norbert,

Does this applies only to newer versions of teststand. I have this problem on one of the oldest teststand versions I Have, which is TS V1.0. I couldn't  find the call back and the result processing is done in separate file called reportgen_txt.seq.

I have attched the sequence.

Thanks

0 Kudos
Message 5 of 8
(4,530 Views)
I cannot tell you exactly if the "needed" callback is already available in TS 1.0 since this was "before my time".... 🙂
Nevertheless, there ARE callbacks already in TS 1.0 so you have to look around if you can find it. Sadly, i havent found any list of available callbacks in TS 1.0 in the docs....
I can tell you, that the needed callback is included with TS 3.0 and above.

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 8
(4,510 Views)

Hi,

I dont believe the callback is available in TestStand 1, which is why I resorted to removing items from the ResultList before the Test Report was generated.

see my submitted sequence file

http://zone.ni.com/devzone/cda/epd/p/id/2026

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 7 of 8
(4,505 Views)

Thanks Ray,

This solved my problem fully and I understand why is the delay exactly. I just changed the precondition to NOT FAILED.

I couldn't find the call back in TS3.0 as well and so applied the same steps I did for TS1.0.

Thanks again

mama007,

0 Kudos
Message 8 of 8
(4,433 Views)