01-21-2011 03:36 AM
Hi guys, Can I do a pass/fail test in a message pop-up? When I click OK I want a pass and Cancel a fail.
01-24-2011 11:06 PM
Hey JoVMo,
Couple thoughts:
1- Set Button 1 to "Pass" and Button 2 to "Fail". Paste the following in your post expression: Runstate.SequenceFailed = (Step.Result.ButtonHit == 1 ? False : True.
Paste the following in your status expression: Step.Result.ButtonHit == 1 ? "Passed" : "Failed". This should do the trick.
2- Create a codemoduel (LV, CVI, etc..) that acts like a popup. Call it as a pass/fail test step. If the user clicks Fail then return that as the Pass/Fail trigger.
Hope this helps.
07-10-2012 01:11 AM
Jus this would do the work.
Paste the following in your status expression: Step.Result.ButtonHit == 1 ? "Passed" : "Failed"