Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pass Fail on an If-Statement
#1
Solved: 10 Years, 9 Months, 3 Weeks ago
Is there a way in QTP to use an if-statement and if the if-statement is true have a command to tell the script to pass if it is false have a command to tell the script to fail. The closest I could come up with was to use a message box? Thanks for the Help

Code:
If (QT = RXDaysSupply) THEN

MSGBOX "The Days Supply is Correctly Calculated at  " & RXDaysSupply

Else

MSGBOX "The Days Supply is Wrong at "  & RXDaysSupply

End If
Reply


Messages In This Thread
Pass Fail on an If-Statement - by AGrant - 08-27-2008, 05:56 PM
RE: Pass Fail on an If-Statement - by somisays - 08-27-2008, 06:29 PM
RE: Pass Fail on an If-Statement - by AGrant - 08-27-2008, 07:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  To send Fail Results to mail Naresh 1 2,414 04-23-2015, 08:30 PM
Last Post: babu123
  PASS/FAIL in QTP badri 3 5,918 12-05-2014, 03:26 AM
Last Post: kiranpol
  Fail when running multiple actions in QC crissbbbm 0 2,511 08-29-2013, 07:52 PM
Last Post: crissbbbm
  how to pass the data frm datatable silpavinod 3 3,723 10-18-2012, 01:54 PM
Last Post: silpavinod
  how to pass a numeric value into webedit silpavinod 3 3,680 10-15-2012, 01:57 PM
Last Post: silpavinod

Forum Jump:


Users browsing this thread: 1 Guest(s)