NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Step Name in XML Report programmaticaly

I am trying to change the step name programmaticaly in TestStand to reflect in the XML report. The step is executed several times in a loop, and every time the loop runs I want the step to be named differently in the XML report. For example, the names will be something like this < Test1: Signal Name 1>, <Test2: Signal Name 2> ....etc. Any help on this will be appreciated .
 
Thanks,
Sam
0 Kudos
Message 1 of 5
(3,679 Views)

Hi,

The best time to change the name is before you perform the test, then it will get inserted in the ResultList and hence into your report.

I have attached one way of doing this. You can also perform it after the Step you wish to change, in which case you would use the RunState.PreviousStep as a reference.

You could call the API method as part of your code.

Remeber, if you use a PropertyLoader to load Limits, and you have placed this inside the loop, then your Limits file for the Step Name must match the new step name not the old one that you see statically.

This is a TS3.5 example.

Hope this helps

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 5
(3,675 Views)

Hi Ray,

Thanks for your help. However, I am unable to open the sequence file that you sent me because it is made using version 3.5 of teststand and I only  have version 3.1. It wouldn't open because it is incompatible. Do you have anything that is supported in TestStand 3.1 ?

Thanks,

Ayman

0 Kudos
Message 3 of 5
(3,672 Views)

Hi,

Here is it in 3.1 format

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 4 of 5
(3,670 Views)
Thanks, that worked exactly like I wanted.
0 Kudos
Message 5 of 5
(3,648 Views)