03-31-2011 11:31 PM
Hi All,
I'm a newbie, and want to know if the output XML file (UUT test report) from TestStand can be encrypted without using any third party software?
Actually I want to know if TestStand itself supports encryption/decryption of XML?
And if TestStand doesn't supports, is there any work around for this requirement?
04-01-2011 12:39 AM
Hi Moderator1983,
In my opinion there is no NI-application for encrypting the XML report file.
Maybe there is one if you switch on the ATML-XML report file, because ATML is a standard of IEEE.
For encrypting you might use XSLT for more information see http://www.w3schools.com
or for parsing just special tags you could use the Microsoft-DOM object see http://msdn.com
Hope this helps
Juergen
04-01-2011 01:01 AM
There is no encryption for the Result XML file available in Testand. I can't understand why you need to protect a Report file.
You have to edit the Process Model straight away or to use the Call back, which is based on which fields you are going to Encrypt.
There is something called Style Sheet which will transform the Report XML file to an HTML file, to view it in the Browser. Teststand will automatically apply the Style sheet specified in the Report option to the Report XML file, when the Sequence is finished executing and will show the Report. If you are encrypting the Report XML, the Style Sheet will not work, so you have decrypt before applying the Style sheet or you have to edit the Style Sheet to parse the Encrypted XML file.
AshwiN,
04-01-2011 01:24 AM
04-01-2011 04:41 AM
Hello,
Encryption in XML file is required to encrypt the various configuration parameter values so that a user cannot view / edited it external outside the to the test application. By making use of Private / Public keys data would be encrypted.This key will be exchanged between TestStand & XML to decrypt & display it to user.
See additional details on XML encryption on : http://www.w3.org/TR/xmlenc-core/
We can encrypt the step result using LabVIEW encryption example --> http://zone.ni.com/devzone/cda/epd/p/id/3473
My question now is --> How to include the customize XML report header to include the encryption standard?
I saw many articles to make use of "ModifyReportHeader". Can someone furnish me with a working example of modifying the header through TestStand? I tried ... but in Vain.. 😞
04-01-2011 04:56 AM
This is the Method I have tried to Modify the Report Header
http://forums.ni.com/t5/NI-TestStand/Data-from-text-file-to-report-header/m-p/1458376#M31966
AshwiN,
04-01-2011 05:00 AM
Hello Ashwin,
I would appreciate if you can attach a sample sequence file for my reference.
04-01-2011 05:01 AM
NI can probably post some example code in the Knowledge Base, I hope there is very limited information is available for the Report Customization, especially formatting the XML file and the Style sheet
AshwiN,
04-01-2011 05:22 AM
@AmitKaria2k wrote:
Hello Ashwin,
I would appreciate if you can attach a sample sequence file for my reference.
I hope I had done it some times before. Want to make a search, I will find and post the code.
AshwiN,
04-01-2011 06:13 AM
Hello AmitKaria2k,
I can't find it, in the mean time I created some sequence that will add the Report Header (Don't look for the Standards, I got a hell of task from my boss, spend little time to make it). This will just concatenate a XML node in the Report Header.
But the thing is we have to edit the Style Sheet to parse this Node and display it in the Report. Let me know if you have to know about how to edit the Style sheet to show the added XML node.
AshwiN,