NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

ProcessModelPostStep - How to get Name and result of Step?

Solved!
Go to solution

Hello,

 

in the model is a callback sequence "ProcessModelPostStep" that executes after each step.

If i insert in there a MessagePopup -> How can i show the Name and result of the calling step?

 

Thanks

0 Kudos
Message 1 of 6
(397 Views)

Can be access via Step.Name and Step.Result.Status

 

but beware: Step.Result.Status will always be running since at the point of PostStep, the Status condition has not been evaluated yet

Edit: was wrong on this one. Evaluation has taken place here

 

in the PostResultListEntry CB is what you are looking for, if you need the status exression to be evaluated

Message 2 of 6
(393 Views)

Step.Name only returns the Name of the MessageBox-Step.

I want to show the name of the step the executes teh callback "ProcessModelPostStep"

 

testplan: mysequence.tpa

contains numericlilmit-test: ThisIsmyTest [Limit 0..10] result 5, Status Passed

 

Model:

callback: ProcessModelPostStep

contains teststep "MessageBox"

Should display: ThisIsmyTest, 5, Passed

0 Kudos
Message 3 of 6
(389 Views)
Solution
Accepted by OnlyOne

Sorry....

 

Parameters.Step.Name

Message 4 of 6
(386 Views)

One more thing:

Where can i find the parameters that i set here:

 

1. StepSettings -> Properties -> RunOptions -> Result Recording Option -> Disabled / Enabled

 

2. And how can i find the type of step if it is a numeric, string, or boolean test?

0 Kudos
Message 5 of 6
(374 Views)

Parameters.Step.StepType.AsPropertyObject.Name

 

Parameters.Step.TS.Resultoption --> 0 ResultRecording disabled, 1 Enabled , 2 Enabled override Sequence Settings

Message 6 of 6
(361 Views)