NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie question: How to format XML report & send to URL

I'm just getting started with TestStand, and need to integrate it with a Manufacturing execution system (Visiprise).
What this means is that after each test, I need to be able to generate an XML report in a specific format, then send it across the network to a URL.
I'd be grateful for any pointers to examples or documentation to help me with my first steps!
Many thanks
Nick Hewish
0 Kudos
Message 1 of 2
(3,341 Views)
Hi Nick,

Fortunately with TestStand, changing the format of your reports is fairly straightforward. If you look at a sequence in your process model called "TestReport", you can see that there are a series of sequences that control how the file is generated. So what you can do is modify these calls to call your own sequences that will generate reports. For XML reports, the sequences that are called by default are in reportgen_xml.seq. I would recommend copying this file and making any changes you want to it, and then also doing the same for your process model. You can use your custom process model to call your new report sequence, and it will generate the XML however you see fit.

As for sending it on the network, you will have to make a generic code module t
hat can transmit over the network to your desired location. You can then add this step into your process model so that it submits it after any execution.
0 Kudos
Message 2 of 2
(3,341 Views)