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
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 |
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 |
Answer / xyz
Check their property which is not changing dynamically. Set
that property to identify object.
Is This Answer Correct ? | 2 Yes | 0 No |
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 |
Answer / reddy prasad
e that paricular field as a regular expression
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
what are the 5 types of objects in qtp
How to display the first 3 letters in these "ABCDEFGH" using qtp script?
What is a Run-Time Data Table? Where can I find and view this table?
What are all the common questions asked for the candidates having more than 1 yrs exp in QTP?
give me descriptive programing code sample flight application in qtp?
How to convert QTP's ObjectRepository.mdb file to xml file
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.
what properties do use to identify a browser and page while using descriptive programming?
Can we do Load Teting with QTP?
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.
Will QTP gets installed on virtual PC.What is the maintenance number to be given
in Qtp,how to display user name and pwd (script)in data table(global sheet).