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
How you can find length of array in qtp?
How is a Step generator used in UFT?
What is the quicktest professional (qtp) testing process?
Hi,All How to create a link in excel sheet using qtp
hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]
What is RTM (require ment tracebulity marix) fromate?
How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))
Can anybody post some real time scenario in qtp? please its very urgent.
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
could any help me please, how to work on visual foxpro application using UFT
How we can import data from database?
Tell me about your project? please help me how to tell about insurance project
How does QTP identify an object?
Hi All, How to Compare two strings character by character in QTP
What is object repository in qtp?