12-29-2005 09:30 AM
12-29-2005 01:08 PM
Hi
There are 2 ways you can generate a test report based on a custom XML schema
1. Generate the default XML report and apply a XSLT to the default XML report, which will convert it to the new XML schema. This requires understanding the default TestStand XML schema and how data is stored in the report.
2. Write your own custom XML generator using the TestStand API and plug it into the process model to generate the new XML report. This requires knowledge in using TestStand's API and understanding how data is collected and stored in TestStand. There is a lot of information of how to customize your report in the on-line help and other web documents including dev exchange.
I am not sure which is better for you but you might want to choose one over the other because of prior experience with a given technology.
Regards
Anand Jain
National Instruments
12-29-2005 10:03 PM
Hi Anand,
Thanks for the reply.
I could not not find much useful topics on this topic.
Can you some links where I can get more information about the same.
Refering to the point 2 of your reply I want to clarify the following,
a.) whether is it possible to write custom XML generator using NI test stand commands and API alone? Or the custom XML generator should be developed in some ther programming language?
b.) Can provide some examples for XML reports in custom XSD.
Regards
SajK
12-30-2005 11:17 AM
Answers to your questions
"I could not not find much useful topics on this topic. Can you some links where I can get more information about the same."
The topics I was referring to is for option 2. Most of the topics do not directly talk about how to generate a new report from scratch but they are related to customizing reports.
Some of them are in dev exchange and in the "using TestStand" manual.
In dev exchange I would do a search for topics which have "customize" and "report".
In the "Using TestStand" PDF (in TestStand 3.1 or greater) , look under chapter 10 for "customizing the report" to understand how reports are generated. This will help you generate your own report.
"a) whether is it possible to write custom XML generator using NI test stand commands and API alone? Or the custom XML generator should be developed in some ther programming language?"
You can use TestStand API in TestStand sequences to generate the new XML report, but I would suggest using the TestStand API in a programming language like LabVIEW or CVI.
"b.) Can provide some examples for XML reports in custom XSD."
If you have TestStand 3.1 I would suggest looking into "<TestStand>\Examples\ATML" example. In that example a custom XML report format is generated using the TestStand API and CVI
Regards
Anand Jain
National Instruments.
12-30-2005 11:29 AM
01-01-2006 11:23 PM
Anand,
Thanks for suggestions..
I actually wanted to use my own XSD file. Not the standard one avialable with NI TestStand.
Then, where I need to make changes to get custom xml report?
Whether each time while generating the report, Test stand calls shchema file ( ie TestStand 3.1\Components\ NI\Models\ TestStandModels\ Report.XSD )?
Saju
01-03-2006 01:52 PM
01-03-2006 05:00 PM
01-05-2006 11:33 PM
Thanks Tyler,
These informations will be very useful for and I will go through the User manual chapters in detail.
I am using this for one specific requirement.Report XSD file is given to me.I need to generate XML report as per that.
Regards
SajK