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 the exception handling can be done using quicktest professional (qtp)?
i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer
For which type of project the iterative model is suitable?
unique properties of button,edit box, radio button,check box?
Explain the checkpoint in qtp?
Diff b/w test scenario's and test Procedures?
Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar
what type of run time errors you get while you ar edoing rpg program?
What is the default add-ins in qtp?
What is keyword view in qtp?
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
How to run a test using quicktest professional (qtp)?
what is defenetion of kiran can u tell me plz CVS, SVN