NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Post Processing Python Script for Report Formatting

Solved!
Go to solution

Hi

 

I have a Python Script for Generating the Excel report from the XML(ATML) Report generated by TestStand.

 

My Query is, where can I add this action step in the Sequential model so that every time, I run the test it should call the Python script and generate the Excel report also with the standard ATML report.

 

I tried adding this Python script (code module) inside the Post UUT Callback step, But I'm not getting the Generated xml report path inside this Step.

 

Kindly help me to solve this problem.

 

Thanks in Advance

- Vipin

0 Kudos
Message 1 of 6
(1,242 Views)
Solution
Accepted by topic author Vipin@AMP

Hi Vipin,

 

the standard XML report is generated by the appropriate ModelPlugin.

 

The PostUUT callback is executed after the Report has been created so it should be the right time during sequence execution.

In the Callback Parameter set, you have all the PlugIn Config Data available

Oli_Wachno_0-1691661371761.png

As far as I can see, the path values are not available in a evaluated manner but instead as this macro string which probably is a problem.

You could analyze the report generation code in order to find out, how should be evaluated.

 

0 Kudos
Message 2 of 6
(1,208 Views)

Hi

 

thanks for the reply.

 

I will check and update here.

0 Kudos
Message 3 of 6
(1,197 Views)
Solution
Accepted by topic author Vipin@AMP

Hi,

 

Thanks for the hint!

 

I have implemented this inside model Plugin NI_ReportGenerator.seq >> ModelPlugin - UUT Done

>> Cleanup Stage. Here I'm getting the report Generation Path also.

 

Now I need to check how to duplicate this Model plugin and use it as a different report type under the Result Processing Menu.

 

 

 

0 Kudos
Message 4 of 6
(1,139 Views)

https://www.ni.com/docs/de-DE/bundle/teststand/page/process-model-plug-in-architecture.html

 

is a pretty goog start for working with ProcessModel Plugin.

 

Just copying over the NI code  to %TestStandPublic%\ Components\Models\ModelPlugins might create issues due to duplicate code. Yet probably no issues, which can't be solved.

 

 

Message 5 of 6
(1,113 Views)

Thanks Oli_Wachno.

 

Let me go through the document and make the necessary changes. 

0 Kudos
Message 6 of 6
(1,096 Views)