suppose u hav a 10 dialog or window opened on screen with
same name & value. now how to test each window? i.e. how
qtp indetifies these objects separately?

Answers were Sorted based on User's Feedback



suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test e..

Answer / baba fakruddin

Hello mr.Sushil, Understand question clearly. he said
windows or dialog boxes. not browser's and page's, for 10
browsers with same name we should go for ordinal Identifier
(Creation Time).

for windows we should go for Ordinal Identifier(Index).
With index qtp will identify window based on individual
developed code of window or dialog(which window/dialogbox
developed first).

if in same window or dialog we should go for location.

I hope I am correct.

Is This Answer Correct ?    7 Yes 1 No

suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test e..

Answer / sushil

the only correct answer:

we will use ordinal identifier in such situation.
since it is browser so creation time will be used.
we can't use other ordinal identifier like index or location
so code for that.
browser(CreationTime:=1).Dialog( )...give as per your
requirment.

Is This Answer Correct ?    4 Yes 3 No

suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test e..

Answer / toly

You can get the result by 'Insert -> Output Value -> Text
Output Value' when you recording.

Is This Answer Correct ?    0 Yes 0 No

suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test e..

Answer / srinivas374

we can use Regular expressions concept. in qtp.

Is This Answer Correct ?    0 Yes 0 No

suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test e..

Answer / kishore

QTp will ideentifie By using index property which will be
uniqe

Is This Answer Correct ?    1 Yes 1 No

suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test e..

Answer / nanda

Hi shushil,

I think we give Index number in 9.0. please check it
once. and correct if i am wrong.

Is This Answer Correct ?    0 Yes 0 No

suppose u hav a 10 dialog or window opened on screen with same name & value. now how to test e..

Answer / ravikumar

yes we can give indexnumber......

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is accessibility check point?

0 Answers  


WHY U CHOOSE TESTING FIELD?

6 Answers   CybAge, TCS,


IN A WEB PAGE THERE IS TWO WEB BUTTON WITH SAME OBJECT PROPERTY AND VALUE, SO HOW I WILL IDENTIFIE OBJECTS INDIVISUALY.

3 Answers  


How to write business scripts using object repository with different scenarios

0 Answers  


Do you support automated testing? Why?

0 Answers  






how to open Excel sheet & write in it & save it?

1 Answers   InTech,


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,


Have you ever written a compiled module? If yes tell me about some of the functions that you wrote.

1 Answers  


If the object property is changing very frequently, what was your approach?

2 Answers  


How you are maintaining shared object repository in your team or your project?help me plz

1 Answers   CTS,


1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)

0 Answers   HCL,


In qtp, how you can get the last character from a string?

0 Answers  


Categories