I am using descriptive programming for my project.when QTP
deosn't identity or recognize a object by record and
playback method,is it possible to make QTP identify that
object using descriptive programming?
Note: The object doesn't have unique properties and same
properties used in Record and playback are only available,
no extra properties are defined.
Answers were Sorted based on User's Feedback
Answer / guest
As per my knowledge, QTP can recognize all type of objects
through descriptive programming. For that u need to create
object with the help one properties only i.e nothing
but "micClass". then set index property for remaining
object.
Example for Link object
=======================
set linkDesc = Description.Create()
linkDesc ("micClass").Value = "Link"
EditDesc("Index").Value = "0"
Browser("Browser Name").Page("Page Name").Link
(linkDesc ).Click
==========================
If u will change the index value, then it will click
accordingly.
I hope, it will resolve your problem.
Thanks,
-Akshaya-
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / tvsramakrishnachowdary
if properties are not sufficiant to identify an object
uniquely we better to go Ordinal Identifiers
1)Location=0,1,2.....
2)Index=0,1,2,......
3)Creation Time(this is only for browser object)=0,1,2,....
byusing ordinal Ordinal Identifier properties qtp almost
recognize the object roughly.....
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / prasant
Identify objects following below order -
1. Mandatory Properties
2. Assertive Properties
3. Ordinal Identifier
4. Smart Identification.
| Is This Answer Correct ? | 0 Yes | 0 No |
In QTP what is the difference between Step-in, Step-out, Step-over ?
Tell me the difference between QTP9.2, QTP9.5 and QTP10.0
In Developer view it is a high priority defect & in tester view it is a low severity defect what is that how to define with an example
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
how to explain a claims and insurance project?
actually how many hours per one day we will work on automation (qtp) in real time
How to connect to data base?
How to Parameterize Object repository in QTP?
Why we load add-ins in qtp?
How can the name of a checkpoint be changed in Qtp
How to measure transaction time through VBScript without using start and end transaction points?
How we can add actions in the test using QTP?