NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

RunState Step values

I'm looking at the ThisContext->RunState->Step and I'm wondering how to actually use the step information to know which step I'm running?

0 Kudos
Message 1 of 3
(3,013 Views)

What is the information you are looking for?

The step's name? The type?

 

Please elaborate your question a bit (what is the reason for your question? what do you try to achieve?) in order get useful answers...

 

thanks,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(3,010 Views)

Hi mrbean,

 

I'm not sure what you'd like to use this for, but you can use ThisContext.RunState.Step.Name and ThisContext.RunState.Step.UniqueStepId to identify the step, eg.

 

Step

.Result.ReportText = "Step Name: "+ThisContext.RunState.Step.Name+" ["+ ThisContext.RunState.Step.UniqueStepId+"]"

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 3 of 3
(2,973 Views)