12-18-2014 02:55 AM
Hello,
I a question regarding running a sequence and use the function set next step.
When I do skip the test like above the test result must not be pass.
I can scan every step for result but I think that there must be a simple sollution.
gr,
Bart
12-18-2014 06:39 AM
In your logic for whether or not to skip the test, you could all a Step.Result.Status = "Failed".
12-18-2014 06:47 AM
Hi crossrulz,
When a product needs to be repaired, sometimes the end of the test has to be tested.
The engineer will break the test and then set the next step to a step later in the test.
This way the test will be skipped partially but if all passed and partially is skipped the test must be not passed.
I thought that teststand had an option that it will need all the steps must be executed and PASS to get a Pass in the report.
I do not want to add code in een sequence for handling this.
12-18-2014 07:42 AM
TestStand looks for a specific step result status "Failed" to fail the UUT.
If the whole sequences has step status as "Passed" or "Skip" or "Done" or "error" the UUT status will always show as passed only.
If you want to do this you probably at the end of the testing (main sequence -- end) you can iterate through the locals.resultlist and check if there are steps with "skipped" status and fail the UUT.
FYI locals.resultlist contains the status of all the steps executed.
Generally what i have seen is when a product undergoes maintainence (repairs) it is retested completely again (all the steps are run again).
Hope this helps.
Ravi
12-18-2014 08:30 AM
Hi SunRS,
I still think there should be an option that teststand should only give a pass when all results are pass or done.
Error/skip and fail should result in a fail.
It would be frustrating and expensive to change all excisting sequences by adding the the routine to check the step.resultlist and modify the result flag.
Now we first have to repair the board and then a operator must test the product to create a report.
gr,
Bart
12-18-2014 09:13 AM
12-20-2014 04:54 AM
Hi,
I agree with the problem in updating multiple sequences.
However it is possible that you can update (customize) the process model sequence to fail the UUT if there are any steps with status as skipped.
You will need to customize the process model and also copy this customized process model into all your test systems.
http://www.ni.com/white-paper/7958/en/ gives a basic understanding to start customizing the process model.
Hope this helps.
Ravi