what is the syntax for regular expression in QTP?
how to create user defined functions in QTP?
Answers were Sorted based on User's Feedback
Answer / seethas
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 ? | 10 Yes | 1 No |
Answer / uday
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 ? | 10 Yes | 7 No |
Answer / ram
By using regular expression we can handle dynamic objects
in object repositiry.
When an object property will changing freaquently based on
input values that time we use regular expression.
we have nuber of regular expressions , But we are using 4
types of regular expressions * . ( )
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / naren
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 ? | 3 Yes | 3 No |
Answer / saravanaraja
Regular Expression is used only for the dynamically
changeable element like Time.
This is the Regular Expression for Time ("1[012]|[1-9]):[0-
5][0-9](am|pm")
Is This Answer Correct ? | 2 Yes | 4 No |
what is the default ordinal identifier.what are the send keys in qTP.
What is data driver in qtp?
write a qtp script to see time in windows command prompt? its urgent....
Interviwer asked, How many years exper.. on QTP? I said, total 2 yrs exp in manual and QTP. QTP only current project arround 3 months. then interviewer ask , HOW BOLD YOU QTP? What you say?
In what occasion we can specify global sheet and action sheet?
Do you know how to connect database? Can you tell me the procedures?
Is there any MS Access addin in QTP?
can i login a page by giving username and password and click on ok button through database parameterization.and if its yes then please write the code of that
pls guys understand this is question CAREFULLY,,, interviwer asks can u write test case for ATM m/c..i told, insert card enter pw...like this,,but interviwer not happy with that...ur not going to atm center? in ur office system ur testing ATM M/c...why ..how to test? what is the process?
dar Sir I am Facing th eProblem in QTP thet ,when I start thrcording inthe QTP for the ASP front end and C# the Coding Language I fing that recording is Done well for the Login screen but at the Time Running the script the QTP is Unable to Identify the Objects On the Objec Onht eLigin screen .Please answer the Question in Description and the Propables reason I might be facing alsp the Popable solution I have to Take thanks and ragards
how do close the task manager through QTP?
Inserting a Call to Action is not importing all columns in Datatable of globalsheet. Why?