05-03-2013 03:22 PM
Hi all,
I am looking for a way that when a step get error, Sequence will not be terminated but continue to run other steps.
I found no error handle option to fit my need as the below. Value 1 seems to be good but it terminated the sequence. Value 2 sumary test result validate as good which is not useful. is there any way I can change the error handle structure?
Solved! Go to Solution.
05-04-2013
06:58 AM
- last edited on
11-05-2024
01:54 PM
by
Content Cleaner
You could use the SequenceFilePostStepRuntimeError callback and handle errors if you need to do something custom.
An example ships with Teststand which will give you some pointers.
https://www.ni.com/docs/en-US/bundle/teststand/page/override-sfps-runtime-error.html
05-05-2013 01:41 PM
Do you have example in teststand 2010?I don't see the same in 2010
05-05-2013 05:31 PM
Hello,
I check out the SequenceFilePoststepRuntimeError, It may allow to do some change to the Error Structure but not the RTE handle.
I might be able to discard the errror and change it to failed. Nut that is not my intention. May be I am not asking correctly.
Let me ask again.
Is there anyway to insesrt another setting option to the RTE setting in the "Station Option" to accept the error and continue to run the nextstep without terminated?
Tphan
05-06-2013 09:37 AM
So you want the status for the execution to be error, but you want to keep running all of the steps in the sequence? Please explain this use case in more detail if possible.
Thanks,
-Doug
05-06-2013 09:46 AM
Hello,
I come down to a simpler requirement that tight to the test report
I need to implement process as follow:
-If a step failed, it will skip the remaining steps if sellect to but will report them as skip for each remaining step and sumary test result as failed. Failed step will be logging al the the failed data. If "skip" is not allow, it will run each remaining step as normal
-If a step get error, it will skip the remaining step, it will skip the remaining steps if sellect to but will report them as skip for each remaining step and sumary test result as Error. Error step will be logging al the the failed data. If "skip" is not allow, it will run each remaining step as normal
Thanks
Tphan
05-06-2013
06:28 PM
- last edited on
11-05-2024
01:54 PM
by
Content Cleaner
You may be able to find the error handler example at this location instead: <TestStand Public>\Examples\Callbacks\PostStepRuntimeErrorCallback\ErrorHandlerExample.seq. This example goes into detail on how to manage Run Time errors using different cases. You should be able to modify individual cases to meet your requirements.
Regards,
-Travis E
05-06-2013 07:27 PM
Hello
I did found the example. But these are POST (error) callback. So by the time is come to the Post. It has already either terminated or ignored. Which is no help at all
Thanks for answer
Tphan
05-07-2013 10:26 AM
Hello Tphan,
The function is Post Step, not Post error. When an error occurs from a step the callback is immediately executed and gives you an option to run code. In the example the callback code is a case statement, did you encounter a situation running the example that calls this functionality into question?
Regards,
-Travis E
05-07-2013 10:57 AM
Take a look at the example:
<TestStandPublic>\Examples\Callbacks\PostStepRuntimeErrorCallback\ErrorHandlerExample.seq
Look at the sequence SequenceFilePostStepRuntimeError for various things you can do inside this callback.
Hope this helps,
-Doug