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
Should have experience in framework means?
Describe function procedure in vbscript.
What is action? How many types of actions are there in qtp?
How QTP support all types of applications (platforms)?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
Why bpt?
How to record application running on the Virtual machine?
Whether qtp 9.0 supports Test director8.0
I hav installed QTP8.2, im working on webapplication, while running the script giving error msg like "QTPro.exe generated errors and will be closed by windows. You will restart the program. An error log is being created". Pls anybody what is the problem, what i have to do for this? Thanks...
Explain the parameter in qtp?
What are the different attribute used with regular expression?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
What is difference between design time and run time data table?
How can you identify the browser and its information using the qtp script?