07-24-2019 10:28 PM
Hi,
Looking for some help. I have a 3 hours test. Since it is a long test time, I have a pretest in my test sequence. If any UUT fails, I want the test operator to replace the UUT and restart the test. This is a batch model with multiple UUTs. For the UUTs that fail the pretest, I want the test result status to be "FAIL" but for the rest of the UUTs that didn't fail the pretest, I want their result status to be "TERMINATED". I want it to be "TERMINATED" because it didn't fail the pretest but also did not complete the entire test. Right now as things stand, those UUTS show a "PASS test result status and I want it to by "TERMINATED" instead. How can I programatically change the test result status of each of my UUT to what I want? Thanks.
07-25-2019 01:35 AM
Hi
Perhaps it is an option for you to terminate the affected UUTs with the 'Terminate Execution' method.
Regards,
Chris
07-26-2019 03:33 PM
Hi Chris,
Thanks for the response. I did use the "Terminate Execution" method already. However, it will apply a terminated status to all the duts. I want to specifically pick which DUTs get the Terminated Status and which Duts get the failure status. The Terminate Execution method doesn't seem to have the ability to specify which dut to apply it to. It just applies terminated status to all the duts. Not what I want.
07-28-2019 05:52 PM
If I understand your post, what you need is that if any DUT fails pretest, failing DUTs end with a failed status and all others end with a terminated status.
In the attached example, there's a FileGlobal called anyfail. Note that my Sequence File Properties for Sequence File Globals is set for "All Executions Share the Same File Globals". In my pretest sequence, the anyfail global is OR'd every single time so if any DUT fails, anyfail will be true.
Then, in mainsequence, after pretest executes, there's a terminate step RunState.Execution.Terminate() with a precondition. If the previous step (the pretest sequence) doesn't have a status of failed AND anyfail is true, then there will be a terminate.
Does that make sense?
08-01-2019 06:19 PM
Thanks PulidoTech and Chris. You answer helped me solve my problem. Thanks.