ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How to use Regular Expressions in QTP? give an example.
 Question Submitted By :: Sanjeev
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to use Regular Expressions in QTP? give an example.
Answer
# 1
In QTP, delaing of Regualar Expressions and varing object 
descriptions can be handled by using Description 
Programming.
Ex. of using Regular expression is:
u just record yahoo login operaion and click on Inbox link. 
Assume u got 10 new mails, then it shows like Inbox(10). 
Read one mail, now it shows like Inbox(9). Now try to play 
the recorded script. It wont work. Now use Regular 
expression in Inbox link like:
"Inbox.*". At that time it wil work.
 
Is This Answer Correct ?    23 Yes 7 No
Uday Kumar. A
 
  Re: How to use Regular Expressions in QTP? give an example.
Answer
# 2
Thax uday to give valuable information about regular 
expression.
 
Is This Answer Correct ?    7 Yes 3 No
Mahesh
 
 
 
  Re: How to use Regular Expressions in QTP? give an example.
Answer
# 3
Regular expressions enable QuickTest to identify objects 
and text strings with varying values.You can use regular 
expressions only for values of type string.

You can use regular expressions when: 

1) Defining the property values of an object in dialog 
boxes or in programmatic descriptions.

2) Parameterizing a step.

3) Creating checkpoints with varying values.

Example:

your site may include a form in which the user inputs data 
and clicks the Send button to submit the form. When a 
required field is not completed, the form is displayed 
again for the user to complete. When resubmitting the form, 
the user clicks the Resend button. You can define the value 
of the button's name property as a regular expression, so 
that QuickTest ignores variations in the button name when 
clicking the button.
 
Is This Answer Correct ?    9 Yes 2 No
Umasankar
 
  Re: How to use Regular Expressions in QTP? give an example.
Answer
# 4
ex
if we take flight reservation table (coz its easy to
understand the concept)
just record the script like this 
go to file open order give no 5
and go to fax order type any fax no click send
and stop recording
then go to qtp script just change the script (the order no
to 6 )
Window("Flight Reservation").Dialog("Open
Order").WinEdit("Edit").Set "6"
and run the script we get the error as qtp could not
identify the fax order no 5
then go to repository select fax order no change the value
to  "fax order no. *"
run it u get  it
 
Is This Answer Correct ?    13 Yes 4 No
Uday
 
  Re: How to use Regular Expressions in QTP? give an example.
Answer
# 5
Thanks Mr.Uday u explained beautyfully with an example. Can 
u give another two more real time secnarios where we use RE.
 
Is This Answer Correct ?    3 Yes 1 No
Anil
 
  Re: How to use Regular Expressions in QTP? give an example.
Answer
# 6
Thanks for u r giving information..
 
Is This Answer Correct ?    0 Yes 3 No
Rt
 
  Re: How to use Regular Expressions in QTP? give an example.
Answer
# 7
After doing till this point error will generate on fax no. 
statement. And again on last statement.
 
Is This Answer Correct ?    0 Yes 3 No
Less Than You
 
  Re: How to use Regular Expressions in QTP? give an example.
Answer
# 8
We can use regular expression where we have continous 
change in value at run time (for e.g in dial up 
connection,it takes 60 sec to get connected....)

Thanks
 
Is This Answer Correct ?    4 Yes 1 No
Kavita
 
  Re: How to use Regular Expressions in QTP? give an example.
Answer
# 9
Hi kavitha ,

Can u tell briefly how to handle dial up connection using
the REGULAR EXPRESSION code.

Thanks & Regards
chandu
 
Is This Answer Correct ?    0 Yes 1 No
Chandu
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
when qtp recognizes a web link like (hyper link)wich properties it is going to take to identify the objects unquely? what is Ini file in QTP? Symantic-Space1
How good are you in writing VBscript code for your application? Can you completely write VBscrit for your project with out using recording mode in QTP? CTS3
In 1st screen,if v enter a/c no. in one field, the information of the subscriber will be displayed. The details should be displayed only in screen 3(NOTE:details should not display in screen 2).How can v do using QTP. BirlaSoft2
Will QTP gets installed on virtual PC.What is the maintenance number to be given  1
Hi, Any one have the crack for QTP 10.0,if so could you please send it to phanijuly10@gmail.com  1
What are Add-ins availble in licensed version QTP8.2 TCS1
what are SetToProperty, SetROProperty,GetToproperty scripting?  2
How can I deploye a 'QTP Runtime environment only' Indexis1
pls tell me different type of automation frame works in QTP and which one need to select in client server application Syntel6
How many actions we can create with in a test?  4
What is User defined function in QTP Bank-Of-America4
anyone can explain about "Smart Identification" in QTP I mean what is the use of "Smart Identification" Give an example  2
How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..  1
Tell me few important difference Between QTP and WinRunner? TCS8
How the QTP recognize, handle n reports that a error has been handled by it(QTP) when we perform a recovery scenario in our application n in what manner it will display it in resulting window? Plz help me out.  1
from where we will retrieve data for data driven tests in qtp?  3
1) after inserting the check point how to change the expected value that was captured while inserting the check point TCS2
the build is develeped in Java. is possible to write scripting in vb using QTP ?  3
How to handle exception when data table is not available in local host system or path is not correct(explain statement with example)  1
please send detail navigation for merging of object ripositories in QTP 8.2 Ordain-Solutions3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com