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

what are the 5 types of objects in qtp

6 Answers   ABC, TCS, Wipro,


How to display the first 3 letters in these "ABCDEFGH" using qtp script?

6 Answers   Oracle,


What is a Run-Time Data Table? Where can I find and view this table?

4 Answers  


What are all the common questions asked for the candidates having more than 1 yrs exp in QTP?

1 Answers  


give me descriptive programing code sample flight application in qtp?

8 Answers   CA, IBM,






How to convert QTP's ObjectRepository.mdb file to xml file

1 Answers  


How do we do DOM programming in QTP.Could you explain with an example. If possible please provide some material or link related to DOM Programming.

0 Answers  


what properties do use to identify a browser and page while using descriptive programming?

3 Answers   TCS,


Can we do Load Teting with QTP?

12 Answers  


Pls answer this: What is the difference between a subroutine and a function? A. A subroutine can call itself; a function cannot B. A function returns a value; a subroutine cannot C. A function can accept arguments; a subroutine cannot. D. A subroutine can call other procedures; a function cannot.

1 Answers  


Will QTP gets installed on virtual PC.What is the maintenance number to be given

1 Answers  


in Qtp,how to display user name and pwd (script)in data table(global sheet).

2 Answers  


Categories