If an application name is changing frequently i.e while
recording it has name “Window1” and then while running
its “Windows2” in this case how does QTP handle?

Answers were Sorted based on User's Feedback



If an application name is changing frequently i.e while recording it has name “Window1” and th..

Answer / jaya

Yes..We can handle such situation using the regular
expressions.Select "window1" in the script.Goto tools and
open the object repository.Select Window1 in the tree that
gets displayed.In the configure value click the constant
value option button and change the value from "window1"
to "window.*" and click the Regular expression
checkbox.click OK.

Is This Answer Correct ?    10 Yes 0 No

If an application name is changing frequently i.e while recording it has name “Window1” and th..

Answer / prasad

QTP handle this type situation using "Regular
expressions",like :"Windows.*"("*" indicates 0 to meny
no.s/characters ... in this case 1 2 3 4 5 ........)

Is This Answer Correct ?    5 Yes 1 No

If an application name is changing frequently i.e while recording it has name “Window1” and th..

Answer / xyz

Check their property which is not changing dynamically. Set
that property to identify object.

Is This Answer Correct ?    2 Yes 0 No

If an application name is changing frequently i.e while recording it has name “Window1” and th..

Answer / siva

Best one is regular expression.Regular expression can
easily identifies the objects with dynamic values during
run-time.
1. Go to Object Repository.
2. Select the particular object in the left side and
double click on the property value("Name of the window")
3.Click on regular Expression check box and set as 'window
[0-9]*

Is This Answer Correct ?    2 Yes 1 No

If an application name is changing frequently i.e while recording it has name “Window1” and th..

Answer / xyz

Use Object Spy.

Is This Answer Correct ?    1 Yes 0 No

If an application name is changing frequently i.e while recording it has name “Window1” and th..

Answer / reddy prasad

e that paricular field as a regular expression

Is This Answer Correct ?    0 Yes 0 No

If an application name is changing frequently i.e while recording it has name “Window1” and th..

Answer / aparna

the same thing can be handled using smart
identification..in base filter properties list select some
of the unique properties for the window except the text
property which is changing dynamically..and u can use
GETROPROPERTY and SETTOPROPERTY for the same

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More QTP Interview Questions

Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).

10 Answers  


can u write one user defined function for webedit class.

6 Answers   Cap Gemini,


In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain

5 Answers   Polaris,


I want to see all the properties of agent name in login window. I will use the script Set a=Window("FR").WinEdit("Agent Name:").Gettoproperties( ) msgbox but my question is how to use the msgbox if i use a it will display only a, so anyone pls let me know how to get the display of all the properties using GetToProperties () or GetRoProperties (). Thanks a lot

5 Answers  


I am automating a Java application. This application is developed using SWT. I am not able to get the GUI object. Even i tried with Java add-in. In tutorial it states SWT is not supported any idea. Anybody worked in such appln. My question is whether it is possible to record the GUI object of SWT appln. how it is possible.

1 Answers  






what is delay in QTP?

2 Answers  


How to check the value for variables during run time. Pls anybody can give the answer.. Thanks in advance...

4 Answers   Navis,


i have an array CAPGEMINI .....Here i need to check whether G is there or not ..how to do that and friends i have one big doubt that is whether it is array or string ,how we come to know that and where we consider that it's array ,where we consider that it's an string because when i want to find the length i have big doubt whether we need to use len function or ubound ... ans me for this TWO Questions any one please

7 Answers   Cap Gemini,


Waht is Test Report , What it consists?

2 Answers  


plz explain QTP real time work( Means where you store scripts and how u access scripts next day? where those activities we are maintaining, If By usig VSS how the process in going on , plz explain briefly?

2 Answers   CTS, Tech Mahindra,


Please explain the role of Regular expression in QTP

0 Answers  


How will you test a stapler?

0 Answers  


Categories