NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all step names within a group or a sequence?

Solved!
Go to solution

Hi,

 

I'd like to show all the names of the steps within a sequence or a group.

I wonder if there is a simple function which can be used directly, such as RunState.PreviousStep.Name.

I tried via a foolish way to append each step name, though it shows all the step names but I still think there is a simple function can access all the step names.

Can anyone give me some suggestion, thanks a lot!!!

0 Kudos
Message 1 of 4
(3,312 Views)
Solution
Accepted by topic author William1225

I've doctored up your sequence a little.  But yes you have to loop.

 

Also, what format do you want the names in?

 

Hope this helps,

 

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 4
(3,281 Views)

Hi, Jigg,

 

Thanks to your reply.

You use a simple and compact form to work it out.

I still wonder if there is an API function can return all the step names in a form of array instead of loop.

What do you think?

0 Kudos
Message 3 of 4
(3,253 Views)

There is no way to do this without looping.  At least not in 2010 SP1.

 

Sorry.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 4
(3,240 Views)