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



I am using descriptive programming for my project.when QTP deosn't identity or recognize a ob..

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

I am using descriptive programming for my project.when QTP deosn't identity or recognize a ob..

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

I am using descriptive programming for my project.when QTP deosn't identity or recognize a ob..

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

Post New Answer

More QTP Interview Questions

After geting the modules where we generate the script ie in qtp or notpad ?

1 Answers  


How to send QTP scripts to our colleagues?

1 Answers   Virtusa,


What is diff between SDLC AND STLC?

1 Answers   Nokia,


What is the difference between Keyword Driven test and Data Driven test?

0 Answers  


please any one can explain the keyword driven framework. with gmail example.

0 Answers  


4. what is the use of Text output value in Qtp?

1 Answers   Wipro,


What are SetToProperty, SetRoProperty, GetToProperty scripting?

2 Answers  


Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.

0 Answers   Logix,


how to make connection to a remote mysql database in qtp any one can please provid eme deatail steps.

1 Answers  


A webPage has a ComboBox with 10 values in it. Write a script to select 4 vales from it using CTRL key

3 Answers   Virtusa,


· What should test in BANKING DOMAIN application ?

2 Answers   TCS,


If our application contain one image while executing script application failed to show that image but you have to check that image by importing dynamically from other location... Can we use Check Points here on dynamically imported image?

2 Answers   ADP,


Categories