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,can anyone tell me How to found the number of 1's and 2's in the given format 1,1,2,2,3,3,4,2 using vbscript Thanks in advance

3 Answers  


what is check point?

2 Answers  


What is keyword view in qtp?

0 Answers  


If 2 gmail browsers are opened in our system, how to enter the mail id and password into second browser by using discriptive program?

7 Answers   Mphasis,


What is the differnce between action & script

2 Answers   Lehman Brothers,






Hi, how can we retrieve a specific value from Excel Sheet (Not datatable. for externel file).i mean to say from .xls file. and also tell me from xml file and .doc file. and how can u parameterize ur script from .xls file.(Not data table).

2 Answers   Cap Gemini,


why you have standardized functions? plzzz guys with real time exp. do answer

0 Answers  


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

0 Answers   iFocus,


hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

0 Answers  


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

0 Answers  


difference between multiple parameterization and data driven wizard in QTP?

1 Answers  


Can any body help me to write descriptive program to find a cell value (say 2 row, 3rd column) in a datatable which is creating dynamically and statically

0 Answers  


Categories