Diiferent windows have same name and same action has to be done on the window pop up, how to implement a generalised procedure OR how to implement the concept of code reusablity?

Questions by Folksy   answers by Folksy

Showing Answers 1 - 6 of 6 Answers

Srinivasulu.Chittoor

  • Feb 24th, 2006
 

If different window at same name is there, first u will go to physical description. in physical description u can found which window os populating the pop-up,

u r cheking windows that time two window logical name is same but physical description is different.

OK

Thanks

Srinivasulu.chittoor /Sr.Test Eng/

  Was this answer useful?  Yes

pankaja

  • Feb 27th, 2006
 

can two windows in one application have the same name???i dont  think so this is allowed.... but if ur referring to two windows in different application having the same name.. thn it sud be fine.

  Was this answer useful?  Yes

QTP does not provide same logical name for two same type of objects(eg. window, Browser etc.). You can solve the problem in following manner:

1. If you are using Record-Repley and getting error message like "More Than One objects exist" then use Descripting porgramming using index like

Window("attached text := window_name","index:=0") - For First window and index := 1 for secondwindow.

2. If you are using descriptive programming then add the index property with the Window property.

Hope this could solve the problem.

 

ramachndr

  • Jan 10th, 2007
 

make sure you set index also as assistive parameter in identifying windows, no need to go in descripting programming when it can automatically detect...

Its possible to have same window name in same application, but its index is different....

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions