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
What is the pros and cons between QTP and Rational Robot
I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .
What is an expert view and keyword view?
How to open a new test using quicktest professional (qtp)?
How to associate shared object repository to test in qtp?
When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.
Is it possible to call from one action to another action in qtp?
How to define array in qtp?
There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
What is the difference between rational rose and QTP?
how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??
What is the difference in the global and action sheet in qtp?
how did u use automating testing tools in ur job?
How to remove associated function library?