Hi
Subject: Printing Test Reports (automatic printing) from TestStand using Win 7 OS
For production testing, we need to be able to print the test report after each test (without having to stop the test sequence). I have used the SequenctialPrinitng Model with Win XP, but have had trouble when migrating over to Win 7.
Reviewed the article below, this seems possible. However, I am not sure how to get the version of MS XML and the IXMLDOMDocumentX version referenced in the Note section below.
Thanks
Bill
Programmatic Printing of TestStand Reports - Modular
Overview
TestStand does not have a option that allows the user to automatically print their test reports. This example provides a sequence file containing two sequences that first converts an XML report to an html file, if necessary. It then uses the Internet Explorer ActiveX server to print the html report. This pair of sequences will print all four types of TestStand reports, and is configurable to only print when desired. These sequences have been designed with modularity in mind, so that they should be able to be taken in their current form and placed in any process model that generates test reports. Also, because of this modularity, you can use only the XML conversion sequence if you wish to only convert your XML document to an html document, although this is not covered in the readme. For a more integrated approach, see the example program "Programmatic Printing of TestStand Reports".
To use this example, unzip the contents of printingsupport.zip and follow the instructions in the readme file.
Note: If you are using Windows 7, the ActiveX/COM steps ("Load the XML Report", "Load the StyleSheet", "Transform XML to HTML") in the subsequence titled "Convert XML report to HTML" may not have a reference to the correct Automation Server. Please check this subsequence and make sure that you are referencing the Automation Server "Microsoft XML, vX.X (Ver X.X)", where X.X is the version number of the Microsoft XML Automation Server on your Windows 7 machine. Also, ensure that the Object Class is DOMDocument (IXMLDOMDocumentX) where X is the version of the Object Class specified in the Module Settings.