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   SiteMap shows list of All Categories in this site.
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
what is the syntax for regular expression in QTP?
how to create user defined functions in QTP?
 Question Submitted By :: Naz
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the syntax for regular expression in QTP? how to create user defined functions in QTP?
Answer
# 1
Regular expressions enable QuickTest to identify objects 
and text strings with varying values.

You can use regular expressions when defining the 
properties of an object, the methods of an argument, when 
parameterizing a step, and when creating checkpoints with 
varying values.

A regular expression is a string that specifies a complex 
search phrase. By using special characters such as a period 
(.), asterisk (*), caret (^), and brackets ([ ]), you 
define the conditions of the search.

we can write the user defined in a notepad and save the 
file as .vbs and we then associate that to Test-Settings-
Resources-Associate Library Files by clicking plus and 
select the .vbs file.  In the script we can call the 
function with function name ()
 
Is This Answer Correct ?    6 Yes 1 No
Uday
 
  Re: what is the syntax for regular expression in QTP? how to create user defined functions in QTP?
Answer
# 2
Uday is exactly correct.........

I m giving one example 4 regular exp.........
  [1-9]--------->it accepts all 1 to 9 numbers......
 
Is This Answer Correct ?    5 Yes 1 No
Seethas
 
 
 
  Re: what is the syntax for regular expression in QTP? how to create user defined functions in QTP?
Answer
# 3
yes uday u r right
 
Is This Answer Correct ?    3 Yes 2 No
Akshar Jain
 
  Re: what is the syntax for regular expression in QTP? how to create user defined functions in QTP?
Answer
# 4
RE enables us to find objects and Text strings with varying
values
	Dim re As New RegExp
	Dim ma As Match
	re.Pattern = "[A-Z][0-9][0-9][0-9]"    ' uppercase char
followed by 2 digits
	re.IgnoreCase = False                  ' case sensitive search
	re.Global = True                       ' find all the
occurrences
	For Each ma In re.Execute(txtSource.Text)
    	Msgbox "Found '" & ma.Value & "' at index " & ma.FirstIndex
Next
 
Is This Answer Correct ?    2 Yes 1 No
Naren
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
your doing one project testing then how u know itis wheather web based application or windows based application?  2
.qfl extension for which file? where vl use it iFlex3
What are the different scripting languages you could use when working with QTP ?  3
What is the difference between Image Checkpoint and Bitmap Checkpoint?  4
What is .Ini file in QTP?  2
What is keyword view and Expert view in QTP? Ordain-Solutions5
What is the current version of QTP?  11
While writing script using For Next Statement in QTP, I try defining the variable in Lib File I am getting syntax error whereas if I use the variable in script file, the script works fine. Can anyone help me in finding the reason behind this?. E:g Dim intStartRow (Define in Lib File----- say abc.vbs) Dim intRow (If I define this variable in Lib file I am getting Syntax error where as if I define in the script file ---- say xyz.mts the script works fine) IntStartRow=2 For intRow = intStartRow to xlWrksht.UsedRange.Rows.Count ‘Some Code here Next  1
Hi, Plz give best Definition of Software Testing? Why we need Software Testing? and plz send 2+yrs experience Interview qutions (Manual,Qtp).  1
What is the difference between Functions and Action ?  1
what are the limitations of automation testing? TCS1
I installed QTP 9.5 on vista. Can someone please provide me the license key of the same. Thanks, Avi  2
How can we do Data driven testing Using For loop in QTP?  2
Hi, I have 50 test cases for automation, Based on which criteria we can decide for these test cases we have to use Descriptive programming and remaining for general coding? Thanks In Advance..Kavitha  2
In smart identification, explain about 1. Base filter properties 2. optional filter properties with examples? TCS1
Hi Guys, here I am posting one question. Wen u r working with Notepad. If it is not responding in the middle of TEst...what u will do.  7
How do you change Logical Name of the object in test script? TCS1
Test Life cycle starts IS it Requirments stage or Test Initiation?  1
what is Action conversion tool? what the Action conversion tool will do? Satyam1
w is output value MBT2
 
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