Answer Posted / imran sheikh
Above posted answer is correct but I believe in going with
self created checkpoint because, che3ckpoint depend upon
previous and after value of particular test (Text
checkpoint). eg. My name is Imran. here, if you want to put
checkpoint on 'name'. So, it depend upon 'My' as Text
before and 'is Imran' as Text after. If next day line
changes to 'My name is Raj', then this checkpoint will fail
because 'Raj' is wrong test as Text after.
I faced this scenario so used self-made checkpoint. I ll
tell you if you find it useful.
1. Add the requied text 'name' in OR as webelement or any
object.
2. It has description property as innertext and html tag.
Remove innertext property and add any unique property by
clicking on + button, may be 'class' or so.
3. write code in expert view:
chkpt = Browser("myBrow").Page("myPage").WebElement
("name").GetROProperty("innertext")
If InStr(1,chkpt,"name")>0 Then
Reporter.ReportEvent micPass,"Check Name","CheckName Pass"
Else
Reporter.ReportEvent micPass,"Check Name","CheckName Fail"
End If
Thanks
Imran
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Limitations in QTP?
Where you get the run time data table?
What will be happen if i load object repository at run time, but it has already associated.
how to test use the quality control .how to verify the image verification
How to handle the exceptions using recovery secnario manager in quicktest professional?
What is use of object spy?
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
When you open QTP, how many sheets you can see?
what are the utilities and drivers
This is a question thats generally asked in every QTP interview. What were the problems that you faced during automation and how did you resolve them?
How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
Tell me about your project? please help me how to tell about insurance project
hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me
Explain advantages and disadvantages of ddf?