NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

XML encrypt/decrypt

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?


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 1 of 17
(5,579 Views)

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

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 17
(5,575 Views)

 

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,

 

 

0 Kudos
Message 3 of 17
(5,571 Views)

Hm

 

Seems i have completly missunterstood the question,

if we are taking about file encryping.

 

Sorry

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 17
(5,562 Views)

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.. 😞

0 Kudos
Message 5 of 17
(5,544 Views)

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,

0 Kudos
Message 6 of 17
(5,539 Views)

Hello Ashwin,

 

I would appreciate if you can attach a sample sequence file for my reference.

0 Kudos
Message 7 of 17
(5,533 Views)

 

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,

0 Kudos
Message 8 of 17
(5,533 Views)

 


@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,

0 Kudos
Message 9 of 17
(5,528 Views)

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,

Message 10 of 17
(5,522 Views)