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

What type of error u will get if u have not installed java add in in java project? what is the error name ?

1 Answers   Verizon,


When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti

0 Answers   HCL,


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

0 Answers  


What is the "Release Notes", what it cosists? Key components in Release Notes ?

2 Answers  


What is qtpro? What is a quick test professional?

0 Answers  






Why do we go for Qtp? What are the advantages of qtp? Diff between winrunner and Qtp?

3 Answers   Symphony,


How many types of recording modes in the qtp?

0 Answers  


Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

0 Answers  


Hi I am from delhi, Now I can surely say that no institution of QTP here in Delhi After reading you people I want to get cry, from last six month I am trying to learn QTP, I have knowledge too but dont know VB Script. Now it appears that without learning QTP no one can learn complete QTP, I want to get a formal learning in QTP. Can you suggest me the best institution. and please let me know the charges and span of the course too. thanks in advance to you alkaa.dugaal@gmail.com

1 Answers  


We have a dynamic webtable where rows keep on adding.I have to click on particular row where the status changes to Update or Save.How do you click on Status(either it can be Update or save)

2 Answers   IBM, Infosys,


How to create scenario selector

0 Answers  


What is the differences between image check point and bit map check point?

0 Answers  






Categories