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

Explain in brief about the QTP Automation Object Model.

1 Answers   Crea,


What are Child Objects?

1 Answers  


write a script for allinterview-submit Question first we've to select Choose Category,second select Sub- Category(Which is comes in to runtime)third select Question Type.for that give some descriptive and vb script

0 Answers  


a title of first page is "LKO- microsoft internet explorer", of the second page is "PPM- microsoft internet explorer" , of Third page is "TTS- microsoft internet explorer" and same changing title on the fourth page. How can we use regular expression for this feature what should we do on script part on and Object repository part so that we can get successful run result. Kindly explain the steps script.

2 Answers  


What is the Dynamic Scenario in QTP? And also anybody give the example for this?

3 Answers  






How to handle the errors without using recovery scenery?

3 Answers  


1. How can we use same object repository and Testscript which is in English flavor to check the application in different languages thru QTP?(Chinese,Dutch,French) - I generated script in english and want to use the same script with different languages? - for windows i used regular expressions - I need for edit box,button and combobox, (English,French,Dutch,Chinese) These are the properties of a button in different languages Properties English Dutuch Chinese French x 400 758 631 601 y 673 603 592 676 windowstyle 1342242816 1342242816 1342242816 1.34E+09 windowid 2 2 2 2 windowextended style 4 4 4 4 width 120 120 120 120 visible TRUE TRUE TRUE TRUE righttoleft reading FALSE FALSE FALSE FALSE righttoleftlayout FALSE FALSE FALSE FALSE rightaligned FALSE FALSE FALSE FALSE regexpwndtitle cancel Loschen Chinese language Annuler regexpwndclass button button button button objectclass button button button button hwnd 132872 657228 656932 656782 height 33 33 33 33 focused FALSE FALSE FALSE FALSE enabled TRUE TRUE TRUE TRUE attached text abs_y 669 599 627 597 abs_x 396 754 588 672 text cancel Loschen Chinese language Annuler nativeclass button Button ordinal Identifier type,Value none none none none smartidentification FALSE FALSE FALSE FALSE comment

1 Answers   TCS,


Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

0 Answers  


A web page title might be xxxx@xyz.com or xxxy@xxx.co or xyz@abc.in.Using what mandatory properties can be the page identified.Give the regular expression for that.

3 Answers   Virtusa,


How do u insert an object during runtime in qtp?

2 Answers  


How we can test a Frame in a web page?

1 Answers   eMids,


how you will do cookie testing using QTP?

2 Answers  


Categories