NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand fail step

Hi,

 

i have some steps and i need to test them all, which means even some steps failed, i had to go on all steps test.

Teststand has some function to know which is the first failed step?

i want to use this information to popup the message for operator.

 

Teststand: 2017 or later

0 Kudos
Message 1 of 4
(497 Views)

Hello Sir i am teststand developer how can i help you?

CLA
0 Kudos
Message 2 of 4
(478 Views)

@MADMAD27 wrote:

Hi,

 

i have some steps and i need to test them all, which means even some steps failed, i had to go on all steps test.

Teststand has some function to know which is the first failed step?

i want to use this information to popup the message for operator.

 

Teststand: 2017 or later


  1. Add a FileGlobals variable Boolean called FirstStepFailed
  2. Add a FileGlobals variable String called FirstStepFailedStepName
  3. Put a SequenceFilePostStepFailure callback in your sequence
  4. In the SequenceFilePostStepFailure sequence, add a condition if FileGlobals.FirstStepFailed is false then set FileGlobals.FirstStepFailed to true and set  FileGlobals.FirstStepFailedStepName to Parameters.Step.Name
  5. In Cleanup group, add a Message Popup with a Message Expression "The First Failed Step was: " + FileGlobals.FirstStepFailedStepName

 

0 Kudos
Message 3 of 4
(464 Views)

hello ee-jallen,

 

appreciate for your feedback, i still don't know how you locate the first fail step, can you show me a simple sequence for this?

 

best regards!

0 Kudos
Message 4 of 4
(450 Views)