Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PASS/FAIL in QTP
#4
Not Solved
Code:
'Valid user name and password
  username = "abc"
  password = "def"

Call Login("Valid",username,password)

'InValid user name and password
  username = "xyz"
  password = "pqr"

Call Login("InValid",username,password)

'Login Function
Function Login(strValidation,UN,PWD)

if strValidation = "Valid" then
   'code to validate successful login
elseif strValidation = "InValid" then
   'code to validate failure login
end if

End Function
Reply


Messages In This Thread
PASS/FAIL in QTP - by badri - 11-29-2014, 09:40 AM
RE: PASS/FAIL in QTP - by supputuri - 12-01-2014, 06:15 PM
RE: PASS/FAIL in QTP - by badri - 12-02-2014, 09:55 AM
RE: PASS/FAIL in QTP - by kiranpol - 12-05-2014, 03:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  To send Fail Results to mail Naresh 1 2,544 04-23-2015, 08:30 PM
Last Post: babu123
  Fail when running multiple actions in QC crissbbbm 0 2,615 08-29-2013, 07:52 PM
Last Post: crissbbbm
  how to pass the data frm datatable silpavinod 3 3,970 10-18-2012, 01:54 PM
Last Post: silpavinod
  how to pass a numeric value into webedit silpavinod 3 3,868 10-15-2012, 01:57 PM
Last Post: silpavinod
  Pass specific design steps in QC through QTP TurtleRock 0 1,745 09-06-2012, 01:23 PM
Last Post: TurtleRock

Forum Jump:


Users browsing this thread: 1 Guest(s)