Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having problem with Verification
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
I probably will be able to modify the code to suit better but wouldnt guarantee that it will validate the functionality you are looking for. I would request you to elaborate more on what you intend to do?

Code:
If str_TestCaseId="TC007_PolicySearch_By_FirstAndLastName"  Then
GetReturnedName=Browser(".").Page(".").WebElement(".").GetROProperty("innerhtml")
ReturnedNameFormat= str_LastName&","&" "&str_FirstName

If StrComp(Trim(GetReturnedName),Trim(ReturnedNameFormat))>0  Then
    Reporter.ReportEvent micPass, "Search returned  proper format of insured name by searching First and last name",""
Else
     Reporter.ReportEvent micFail,"Search did not return  proper format of         insured name by searching First and last name", ""
End If
End If
Please be aware that if you are not keen on Character casing then you may want to use Ucase or Lcase to format both the strings to a particular case and then perform a Comparision. Because, Strcomp function will fail if the character cases are different.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
Having problem with Verification - by qapandit - 07-24-2013, 11:28 PM
RE: Having problem with Verification - by basanth27 - 07-25-2013, 10:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  XML Verification naani12 0 1,925 08-01-2012, 07:38 AM
Last Post: naani12
Shy Email Verification using QTP Brian T. 0 5,611 05-10-2011, 11:42 PM
Last Post: Brian T.

Forum Jump:


Users browsing this thread: 1 Guest(s)