where do you define the objects as regular expression when
u are using regular expressions.

Answers were Sorted based on User's Feedback



where do you define the objects as regular expression when u are using regular expressions...

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

where do you define the objects as regular expression when u are using regular expressions...

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

where do you define the objects as regular expression when u are using regular expressions...

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

where do you define the objects as regular expression when u are using regular expressions...

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

Post New Answer

More QTP Interview Questions

my assignment is,how can i differentiate between readed & unreaded mails in my inbox ?, since for both readed & unreaded having same properties for both test objects &run time objects

2 Answers  


How will you handle java tree in qtp?

0 Answers  


What are the five challenges you faced in QTP?

0 Answers   CTS,


vb script for calling one function to the another function

2 Answers  


what is the smart identification techniqu?what r the different mechanisums used in it?

0 Answers   Accenture,






WHICH functionalities of QTP used in Banking project?

2 Answers   Tarang, Wipro,


Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

0 Answers  


what version of test director supports the QTP? does testdirector supports the QTP9.0?

1 Answers  


Plz explain about Virtual object? What is the situation u r using , explain with example?

1 Answers  


What is the limitation to XML Checkpoints?

0 Answers  


Analyzing the checpoint results?

0 Answers  


What is the use of Debug Viewer?

0 Answers  


Categories