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

hi gavasker i want how to merg OR's in QTP 8.2 by QTP Plus

1 Answers  


how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

0 Answers  


It seems Interview questions from Ordain Solutions are almost BASIC LEVEL-Easy. I am asking one tough question..(I think.. May be easy for some people) In recorded script the - WebLink("cityinfo") In reality, the WebLink name is "generalinfo" How you can write function to click that changed web link. NOTE: This functin should work with any Dynamic text link. I will post the answer later.

8 Answers  


In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.

3 Answers  


How the exception handling can be done using quicktest professional?

0 Answers  


Hi all, Recently i faced this question in infosys What is QTP architecture?? Is Architecuture and Framework are same?? Can someone please give clear understanding of this.

3 Answers   Infosys,


we have 10 actions in out test how can we convert 9th action is main action ? how ?

5 Answers  


how to run the script If QTP tool not identify object in web page

2 Answers  


can anybody give me the links for vb script material

1 Answers  


write vbscript on veb applications in qtp with exapmles?

1 Answers  


what is verification & validation?

2 Answers   Accenture, TCS,


1) 100 test boxes there in application. how to click 100 test boxes using vb script? 2) 100 objects there in web page,how we will store that 100 objects repostries?

3 Answers   ANZ,


Categories