NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Seq File Post Step Runtime Error and Failure

Hi,

 

I am using  SequenceFilePostStepRuntimeError   &    SequenceFilePostStepFailure 

 

in my seq file to handle  both. 

 

the issue at hand is that,  once there is error the  execution runs to  runtime-error (SequenceFilePostStepRuntimeError) thats fine  then again i run my  Test-Step & error is generated  & it  again jumps to   runtime-error { Test-Step is a Pass/Failtest}

 

but after that it jumps to SequenceFilePostStepFailure. I want to avoid this.    can I reset the flag which says that no PostStepFailure ?.

 

    In my Runtime-error step I also change the "Parameters.Step.Result.Status"  to display my custom  status .

 

 

0 Kudos
Message 1 of 3
(5,344 Views)

@aparab wrote:

[..]

    In my Runtime-error step I also change the "Parameters.Step.Result.Status"  to display my custom  status .

 


Do i understand this sentence correctly if a state:

In your SequenceFilePostStepError callback, you change the status of the step calling into that callback because of a Runtime Error (Status: "Error") to the status "Failed"?

 

If so, it is expected behavior, no, it even is "works as intended".

 

You can use the TS API to disable the PostStepFailure callback, but you cannot enable this callback in the same step. So it would require an additional step for enabling the Failure-callback again which seems to makes things more complicated compared to NOT setting the step' result to "Failed"....

 

Norbert

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

Thanks Norbert,

 

You got it right.

I change the status  as "Error 5506  Motor Fault"  & not as   "Failed"

 

I know if the Status  is "failed"  it will call  the SequenceFilePostStepFailure  callback.

 

0 Kudos
Message 3 of 3
(5,337 Views)