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.
Answer Posted / 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 |
Post New Answer View All Answers
Explain the concept of how quicktest professional identifies object?
What is the expert view?
regular expression in qtp standar check point for months from accepting months from january to december only
Explain the concept of object repository & how qtp recognizes objects?
In qtp, how you can get the last character from a string?
Is it possible to call from one action to another action in qtp?
Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris
How you know that a test case is a regression test case
How many types of recording modes in qtp?
how to know no.of mails in our g mail by using vb-script
How to import a test case present in ".xls" file to TD under a Test set?
Explain how you can find the absolute value of the number in qtp?
hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com
Explain advantages and disadvantages of ddf?
when will you do debug your script? and explain that process?