give one example where you have used regular expression?

Answers were Sorted based on User's Feedback



give one example where you have used regular expression?..

Answer / purni

Regular expression are used for the dynamic values. Dynamic
values change there value during the run time.
for ex. date, When we record the application it take the
default date and when we run the test on different day it
will select that day date. For this conditions it's better
to use the regulat expressions.

Is This Answer Correct ?    3 Yes 0 No

give one example where you have used regular expression?..

Answer / pooja

In flight application, fax order window number changes
according to the Order number created.....
in this case u can use regular expression for that number..
so that the test will not fail and it continues whatever be
the number in that window..

Is This Answer Correct ?    2 Yes 0 No

give one example where you have used regular expression?..

Answer / sreelaxmi

Regular Expressions can be used for Dynamically chanaging
objects in the run time.

In QTP we use regular expressions in

1. Physical description
2. Check points
3. Recovery Scenarios
4. In Scripting

Is This Answer Correct ?    1 Yes 0 No

give one example where you have used regular expression?..

Answer / ramakrishna

hwen ever change in regular in test objects that tine use
resgular expression

Is This Answer Correct ?    0 Yes 0 No

give one example where you have used regular expression?..

Answer / diksha kakkar

Regular exprresion is used where varying window lables are
there at run time

for ex. while recording script on MS document , it was doc-2

but when u run the script the window lable changes to doc-3
then QTp doesnt identify this ...
for this REgular expression is needed

Is This Answer Correct ?    1 Yes 1 No

give one example where you have used regular expression?..

Answer / satya

Another gud ex for using the regular expression is to
checking your eMail.
as the no of unread messages will never be constant so -for
clicking on "Inbox(n # of unread mails)" w/o fail u must
use R/E.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Hello friends can anybody tell me about the architecture of QTP with diagram of it.this architecture is same for any domain like ERP/Banking/CRM/Healthcare or it's different then please tell me.thanks

4 Answers   Fidelity,


Could anyone please tell me one situation where you have used recovery scenarion in real time with an example?

4 Answers  


Can anybody help me for vb script in qtp? give me examples for practice plz.

0 Answers  


What is descriptive.create () in QTP?

3 Answers  


Does QTP support flat files? If yes what are those?

2 Answers  






What are different types of frame works ?

3 Answers  


3. How to handle the exceptions using recovery secnario manager in Qtp?

2 Answers   Wipro,


how can i pass parameters into function?

4 Answers   Livetek,


in QTP, we have options like (record and play,recording modes(normal,analog,low level),object identification,smart identification,object repository,synchronizing test,transactions,checkpoints(std,bitmap,text,text area,DB,XML,accessibility),regular expression,actions,data driving,parameter,parameterization,data tables,recovery scenario(pop up,object state,test run error,application crash). real time users of QTP, pls say and when and at what point u have used all these options ,in ur concerned project.pls give me explanation in accordance with ur real time project handled. real users pls send some time in the aboue case. if u can send the the reply through allinterview or at ref_it_ref@yahoo.co.in

1 Answers  


write a script to verify the image path(src property) of the images which are in web pages.(do it by Descriptive method by creating a description object)

1 Answers  


When it be decided to go for either Per - Action or Shared?

2 Answers  


what are the disadvantages of qtp? can linux support qtp9.2? how could get web address throu vbscript?

6 Answers   Quintegra,


Categories