Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Generating a very, very customized XML report

$
0
0

Hi there,

 

It might sound like this is an easy one from the title - maybe it is but I suspect not.

 

We've been experimenting with NI's offline results, and some time ago I'd gotten all of our customizations (additional columns in our tables, etc) working. To be perfectly frank, the stock offline results and ORPU leave much to be desired from our perspective.

 

Collaborating with my database wizard colleague, we're trying to keep things really simple. I'd like to generate a very direct XML dump of our results so that we can have SQL Server parse the XML and insert it. (Sample attached) He already has some code put together to do that.

 

Our schema is customized, but it's based off the stock TestStand schema with some extra columns. We use many of the common types for PROP_RESULT but nothing too exotic. (No waveform types)

 

I'm already familiar with the plugin architecture - I've written all our many model customizations into a plugin and customized two others. It seems to me that parsing ResultList objects into UUT_RESULT and STEP_RESULT records is for the most part pretty straightforward. Where I get hung up is how exactly to handle all the variations in additional results, step looping, PROP_RESULT records, etc. I've stared at some of NI's code for plugins and they've unsurprisingly put a lot of this functionality into libraries that may or may not be publicly documented? I thought maybe I could "borrow" some of their ResultList traversal code but it looks pretty challenging.

 

I thought about customizing an XML stylesheet and using the stock report generator, but I'm a little overwhelmed by the stylesheets that TestStand ships with. I'm a novice with XML stylesheets, and while I'm dangerous in JavaScript, wow that is a lot to take in.

 

Any ideas or experience relating to how to get this end result?

 

Thank you very much in advance,

 

Mr. Jim

 

 


Viewing all articles
Browse latest Browse all 6524

Trending Articles