NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to send Testreports in Mainsequence?

Solved!
Go to solution

Hello

I would like to use my sequence to send the testreport generated from TestStand. Let's say we use any example like the "Computer Motherboard Test Sequence". At the end of the MainSequence I would like to get the path to the generated reports to send it afterwards to my mailbox via a pythonscript for example.

 

At this point it is not the question how to send the files but rather how I get the generated reports because the report is generated at the end of the Mainsequence. Is it possible to use some callback functions therefore?

 

It would be great if someone can give me an example sequence how to do this.

 

Thanks

0 Kudos
Message 1 of 4
(745 Views)

Ideally, you implement as part of your report plugin and not your test sequence. What if you didn't configure any reports? how would your main sequence know of those? what if you have more than one report?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(733 Views)

so the conclusion of your response is, there is no solution.

0 Kudos
Message 3 of 4
(703 Views)
Solution
Accepted by topic author Norick17

Like the other poster, the ultimate way is to put that in the report plugin itself. We don't know if you are using a custom one.

 

But an option you have, and I know this works with the out of the box ones, is use the "GetReportFilePath" callback in your sequence file. This runs after the reports are generated, and passes the Parameter.ReportFilePath for where the report is. This will be called multiple times for each report plugin you have enabled.

Message 4 of 4
(696 Views)