where do you define the objects as regular expression when
u are using regular expressions.
Answers were Sorted based on User's Feedback
Answer / mintu
There are situations when the Objects in the applications
are dynamic(having dynamic properties) and QTP fails to
recognize them. Such objects should be handles using
regular expressions.
We can define the objects using regular expression either
in the Object repository or in the code itself.
Example: the login page says" Welcome Mintu" in one login
and "Welcome guest" in another login. here we see that
Mintu and guest are two dynamic values. this needs to be
handled using regular expressions. say "Welcome .*"
here .* refers to any text appearing in the application.
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / rahul
You can use regular expressions when :
Defining the property values of an object.
Prameterize a step.
creating checkpoints with varying values.
For example,if a window titlebar's name change according to
file name,you can use a regular expression to identify a
window whose titlebar has the specific product
name,followed by HYPHEN,and then any other text.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / devi
Regular Expressions: -
When ever the QTP is unable to identify the objects due
to the regular changes in the objects properties values
dynamically during the execution then to overcome this
problem one need to replace the corresponding property value
in the object repository with a suitable regular expression
Navigation:
• Open the object repository
• Select the desired object in the object hierarchy
• Select the desired property in the properties list
• Click on the constant value options button
• Replace the constant value with suitable regular expression
• Select the check box regular expression
• Click on ok
• Click on ok
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ram polavarapu
if the object properties are changing dynamically then will
go for regular expressions
ex->inbox(19)
mails are not static so we have to use the regular expression
inbox\s\(\d*\)
Is This Answer Correct ? | 0 Yes | 0 No |
Hi ,Can any one pleas explain how to test splash objects using QTP?
What is test object?
Can anybody send me the code to get the RO property of the active screen in QTP while running?
i don't have any experience in qtp? Can u please tell me What work i have to do?
Could some one explain me how to create folder on the desktop from QTP?? This is an interview question
how can we merge the object repositories?is ther any option in qtp to merge the object repositories if we have two or three object repositories?
How can i initiate the objects to find uniquely in OR
Hi anyone having QTP 10.0 licence or crack version pls send me in this mail id mdilipkumar04@gmail.com Regards Dilip
w is fragmentation and paging
What are the 3 main stages involved in testing with qtp?
How to invoke Mozilla from QTP thru VB Script
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.