NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do get name of next teststep in SeeunceFilePostStep?

Solved!
Go to solution

Hello,

in my testplan i enabled the seeunceFilePostStep.

How can i create there a popup that show the name of the next step?

 

For example if mainsequenc looks like this:

teststep1 -> SeqeunceFilePostStep: popup should show "teststep2"

teststep2 -> SeqeunceFilePostStep: popup should show "teststep3"

teststep3 -> SeqeunceFilePostStep: popup should show "teststep4"

teststep4 -> SeqeunceFilePostStep: popup should show ""

 

How can this be done?

 

Thx

0 Kudos
Message 1 of 4
(2,572 Views)
Solution
Accepted by topic author OnlyOne

Hi OnlyOne

 

A statement like this in the text of your dialog should do the trick.  NameOf(RunState.Caller.RunState.NextStep)

 

Steve

Message 2 of 4
(2,564 Views)

Works great,

but how can i check if a step is the last step?

Currently the last step creates an execption as there is no NextStep.

0 Kudos
Message 3 of 4
(2,554 Views)

Apologies I missed that from your original post.  Something like:

PropertyExists("RunState.Caller.RunState.NextStep") ? NameOf(RunState.Caller.RunState.NextStep) : ""

Message 4 of 4
(2,552 Views)