02-08-2011 06:42 AM
Hi guys,
I want to check the status at the end of the main sequence in the form of UUT_STATUS. Can I check UUT pass/fail in the cleanup of the main sequence?
02-08-2011 08:49 AM
Hi
Use a NONE Adaptor for your Pass/Fail step.
02-09-2011 12:56 AM
Ray, can u explain more. What result I check then?
02-09-2011 01:59 AM
I am assuming UUT_RESULT is a container and that UUT_STATUS is a boolean element of that container.
Using a <None> Adaptor, insert a Step of type Pass/Fail Test into your sequence.
Set the DataSource of this step from Step.Result.PassFail to UUT_RESULT.UUT_STATUS.
Now when you run your sequence you will get a result based on UUT_RESULT.UUT_STATUS.
02-09-2011 02:24 AM
What is the type of UUT_STATUS? There is more then Pass or Fail. There is also error and terminated. Or is it true for Pass and false for Fail?
02-09-2011 02:59 AM
Hi,
Ok I am confused with what you are asking, maybe you can supply a simple example highlight what you want to do.
02-09-2011 04:15 AM - edited 02-09-2011 04:15 AM
I read out a serial number from a device. But I only want to do this when the test of the device passed. So depending on the pass/fail of the total test I want to read/not read this serial number.
02-09-2011 10:28 AM
Hi JoVMo
Just an idea:
Override PreUutCallback:
Inside the CallBack: Call the PreUutCallback from your model with a simple sequencecall steptype
Check the result from sequencecall steptype and store it in a boolean FileGlobal.
Now you may consume this varibale where you like it in your MainSequence
Hope this helps
Regards
Juergen
02-09-2011 10:35 AM
If I understand you correctly, the logic may go like this...
IF { All Tests Pass }
Read Out Serial Number of Device
Else
{ Do something else }
The trick is to determine the condition { All Tests Pass }, the way I would do it, is that if all your tests are in Subsequences you could create a condition builder that only evaluates the step only if ALL the sequences ( called from the MainSequence ) are PASSED. To do this, create an IF statement in your MainSequence cleanup. Click on the IF step and click on the 'Condition Builder..' button. Modify the condition to have it only evalulate if all Sequences pass.
Let me know if this an option as I could give more details if necessary...
Option 2) Use a callback, such as Process Cleanup. Modify this to pass in the result of the MainSequence in the parameters of the callback. This requires a bit more knowledge of your process model and the environment but it is a a bit cleaner and could be used for any sequence you run with a given process model.
Thanks,
PH
02-09-2011 11:56 AM
I like the idea of the callback. Can u explain more. Coz PreUUT handles the steps before testing the main sequence. How can I get the UUT_result out of Pre_UUT? And can I use this too to print a serial number if the test 'pass'?