How to convert the chekpoint into the type of inline code validation agianst expected result in QTP ?. ‘” Get a reference to the object we want to validate “ Set ObjLink=Browser(“”).page(“”).Link(“Link “) ‘”Read the actual property values we want to validate from that object “ actualHREF=ObjLink.GetROProperty(“href”) ‘”Define the values we expect these properties to contain’ expectedHREF=”http://www.xyz.com” ‘”Validate that the runtime values match the expected values”
Reporter.Reportevent micPass,”Sign out checkpoint”,”checkpoint passed” Reporter.Reportevent micFail,”Sign Out Checkpoint”,StrReport |
We can simulate any QTP checkpoint using this technique , except a bit map checkpoint .
|