QTP Online Training
QTP Online Training
QTP Online Training
1 Confidential
Overview of Automation
What is Automation?
Automation is a process of executing a task with very less/no manual
interaction with the help of tools/software
Automation takes less interactive time and effort to execute tasks that
require repeatability.
Test Automation facilitates executing a test cycle for an application
with less/no manual interaction.
Why to Automate?
Executing tests repeatedly for each test cycle is tedious and
cumbersome.
Writing script/program that can automate the testing tasks reduces
time and effort to execute a test cycle drastically.
2 Confidential
Automation Advantages
3 Confidential
Limitations of Automation
4 Confidential
Test Automation types
Complete Scripting
Automating scripts for large applications is complex
With the record-playback mechanism, there is no flexibility
By scripting, more meaningful tests can be automated
Scripts maintenance is easier
5 Confidential
The Five Concepts in Automation
6 Confidential
Test Automation Tools
7 Confidential
Introduction To QuickTest Professional
8 Confidential
What is QuickTest Professional?
9 Confidential
Supported Environments and Programs
Application Technologies
Virtualization Technologies
.Net Siebel
VMware workstation 5.5
Activex Standard Windows
Citrix MetaFrame Presentation
Delphi Stingray
Server 4.5
Flex Terminal Emulator
VMWARE ESX 3.0.1
Java Visual Basic
Microsoft Virtual PC 2004
Oracle Visual Age
Microsoft Virtual PC 2007
PeopleSoft Web
Microsoft Office
Power Builder Web Services
Microsoft Excel
SAP WPF
Microsoft Query
Web Browsers
Internet Explorer 8.0
FireFox 3.5
NetScape 9.0
10 Confidential
Testing Process in QTP
Planning:-
Before beginning to create a test, you should plan it and prepare the
required infrastructure. For example, determine the functionality you
Planning want to test, and decide which information you want to check during the
test run.
Creating Tests:-
Creating Tests You create a test either by building an object repository and adding steps
manually or by recording a session on your application. You can create
steps using the table-like, graphical Keyword View using keyword-driven
Running Tests functionality—or you can use the Expert View, if you prefer programming
steps directly in VBScript.
Running Tests:-
Analyzing Results Run your test to check your site or application. Run your test to debug it.
You can control your run session to help you identify and eliminate defects
in your test.
Analyzing Results:-
After you run your test, you can view the results. You can view a summary
of your results as well as a detailed report. You can also capture still
images or movies of your application as it is being tested.
11 Confidential
QuickTest Professional – Glance
12 Confidential
Add-in Manager
13 Confidential
Keyword View
The Keyword View enables you to create and view the steps of your test in a
keyword-driven, modular, table format.
Each step is automatically documented as you complete it, enabling you to view a
description of your test in understandable sentences.
Working in the Keyword View does not require any programming knowledge.
This view is useful for Manual Testers to understand the script easily.
14 Confidential
Expert View
QuickTest displays each operation performed on your application in the form of a
script, comprised of VBScript statements.
For each object and method in an Expert View statement, a corresponding row
exists in the Keyword View.
In the same manner the steps which are added in Keyword View will automatically
generates script statements in Expert View.
To work with Expert View the tester should have familiarity with VBScript
The objects hierarchy is separated by a “.”, and the hierarchy structure is from
Parent to child.
15 Confidential
Object Hierarchy in Expert View and Keyword View
16 Confidential
Active Screen
Active Screen captures the application screenshot in recording time
Based on the selected step in the expert view or keyword view, the active screen
highlights the selected step object
It gives a facility to add Check Points / Objects
It also gives the source code for web applications
17 Confidential
Datatable
Datatable is used to store the data that can be used by the parameterized scripts
By default two sheets (Global and Action1) are available for a new test
For each Action added in a Test, a corresponding sheet will get added with same
Action name
The Global Sheet is to manage Test iterations and the Action Sheets are to manage
corresponding Action Iterations
18 Confidential
Debug Viewer
Debug viewer provides assistance when debugging the Tests
The assistance is in the form of giving a facility to evaluate statements, Display and
modify the variable values in Script runtime
There are three tabs in Debug Viewer
Watch - Displays the current value of the added variable
Variable - Displays current value of all available variables till the executed step
Command - Provides facility run lines of script to set or modify the current value
of a variable
19 Confidential
Information
It checks and displays a list of syntax errors in your test or function library scripts.
Ctrl+F7 is the key to check for the syntax errors
It automatically check for the syntax errors when the user navigates from expert
view to keyword view
It automatically locates the error by double click on the syntax error displayed in the
information pane
It displays the error generated statement in the tool tip for every syntax error in the
Information pane
20 Confidential
Missing Resources
It displays the list of resources that are specified when designing the test and missed
out / cannot be found by QTP when the Test is opened again for any purpose.
Missing resources can include calls to missing actions, missing function libraries,
missing recovery scenarios, missing environment variable XML files, unmapped
shared object repositories, and parameters that are connected to shared object
repositories.
21 Confidential
Available Keywords
This displays all available keywords in the test or associated to the test.
A key word is an object name / function name
It gets the all object names from object repository window and all function names
from script and libraries
It provides a facility to generate the script automatically by dragging the keywords.
22 Confidential
Resources
23 Confidential
Test Flow
The Test Flow pane displays all the calls to actions in the current test and the
order in which they are run.
It gives a facility to modify the Action Run Order
From the Test Flow pane, you can display test, action, and action call properties,
manage actions and change their order in the test, work with the object
repository, and run specific actions.
24 Confidential
ToDo
The ToDo pane is to create, view, and manage TODO tasks.
A TODO task is anything that needs to be done in a test, such as providing
information relevant for handing over a testing document, or adding a reminder to
yourself to add steps that test a new page in your application.
This is more useful when reviewing the Test
25 Confidential
Record & Playback
26 Confidential
Recording
Recording is a process of capturing operations that are performed by user on the
application.
QTP captures every operation and generates a vbscript step in expert view.
A step is anything a user does that changes the content of a page or object in the
application
There are three recording types in QTP
1. Normal Recording
This recording mode is the default recording mode. Normal recording mode
records the objects in your application and the operations performed on them.
2. Analog Recording
Enables you to record the exact mouse movements and keyboard operations you
perform in relation to either the screen or the application window.
3. Low Level Recording
This recording mode is enables you to record on any object in your application,
whether or not QuickTest recognizes the specific object or the specific operation.
This mode records at the object level and records all run-time objects as Window
or WinObject test objects.
27 Confidential
Differentiate Recordings Modes
Normal Recording Analog Recording Low Level Recording
Records Object information based on test Records Mouse Movements respect to Records all objects as window or win
object model. window or screen. objects.
Records Keyboard i/p’s. Records Keyboard i/p’s Records Keyboard i/p’s Records mouse clicks
with co-ordinates.
Records Mouse Clicks. Records Mouse clicks.
Records object information in the form of
Object Information will store in object It can’t record object information. window or winobjects.
repository.
Not possible to edit the script after recording Possible to edit the scripts after recording
Possible to edit the scripts after recording with in QTP. with in QTP.
with in QTP.
Alternative mode for recording signatures. Recorded steps may not run correctly on all
Recording a signature is not possible objects.
When we are recording with respect to
Recorded steps will run correctly on all window, the window object information will supports the following methods for each test
objects. stores in object repository. object:
Support all methods for every object. Analog recording and lowlevel recording WinObject test objects:
This is Default Recording method. require more disk space than normal Click, DblClick, Drag, Drop, Type
recording mode.
Window test objects: Click, DblClick, Drag,
Drop, Type, Activate, Minimize, Restore,
Maximize
28 Confidential
Choosing a Recording Type
Note:-
You cannot edit Analog Recording steps from within QuickTest.
Steps recorded using Low Level Recording mode may not run correctly on all
objects.
29 Confidential
Understanding Recorded Script
Data
Object Operation
30 Confidential
Understanding Result Window
Filter Result
Done
Fail
Pass
Warning
Summary of step
status
31 Confidential
Object Identification
32 Confidential
Object Identification Introduction
QTP captures the user actions when recording. But It also captures the object
information on which the user is performing the actions.
The object information is further used to identify the objects when running the
scripts
QTP follows specific principles to record and use the object information.
QTP records the object information based on its Test Object Model (TOM)
The Test Object Model is a large set of object types or classes configured with a
list of identification properties that QuickTest can learn about the object, a sub-
set of these properties that can uniquely identify objects of that class
QTP stores the object information in a place called Object Repository
The object information will be stored with a logical name (Tag Name)
This logical name will be used in the script to do operations on the object
33 Confidential
Object Identification in RunTime and Recording Time
34 Confidential
Object Repository (OR)
Using OR we can
1. Add objects
2. Delete objects
3. Modify Properties
4. Export objects to a shared file
35 Confidential
Object Repository Window
Test
Objects List
Checkpoint and
Output Objects
Object
Properties
36 Confidential
Object Spy
Object Spy enables you to view the native properties and operations of any
object in an open application, as well as the test object hierarchy, identification
properties, and operations of the test object that QuickTest uses to represent
that object.
The native properties are assigned by application provider
QuickTest does not show all the properties of an object
If shows the properties which are defined in Test Object Model
Object Spy uses pointing hand mechanism. To display properties of any object
you just need to point the object
After clicking on point hand symbol, hold CTRL key to navigate using normal
mouse pointer
Use Right click to stop spying
37 Confidential
Object Spy Window
38 Confidential
Test Object Model
The Test Object Model is a large set of object types or classes configured with a list of
identification properties that QuickTest can learn about the object, a sub-set of these
properties that can uniquely identify objects of that class
A test object is an object that QuickTest creates in the object repository to represent
the actual object in the application. This will be created by using the configured
identification properties in TOM.
A run-time object is the actual object in your application on which methods are
performed during the run session.
QuickTest has a predefined set of properties that divided in to two types
Mandatory Properties
Assistive Properties
If these properties have not created an unique description QuickTest uses an ordinal
identifier to create a unique description.
An ordinal identifier is a number that will be assigned for an object based its ordered
sequence / located place in the application.
39 Confidential
So how QTP creates unique description for an object?
QuickTest Identifies object class and maps to any appropriate test object class
available in TOM.
For every test object class in TOM have configured with specific Mandatory ,
Assistive properties and Ordinal Identifiers.
Records all available mandatory properties and checks for unique description
If recorded description is unique then this description will be moved to OR
If it is not unique, then QTP will record assistive properties to create unique
description
QuickTest learns one assistive property at a time and stops as soon as it creates a
unique description for the object
If the combination of all defined mandatory and assistive properties is not
sufficient to create a unique test object description, QuickTest also records the
value for the selected ordinal identifier.
40 Confidential
Object Identification Configuration
Add-in
Environments Preconfigured
mandatory and
assistive properties
41 Confidential
Object Repository Types
Local objects are saved locally with the action, and can be accessed only from that
action.
A shared object repository stores test objects in a file that can be accessed by
multiple tests (in read-only mode).
A Local Object Repository can be exported to a Shared Object Repository to use it
for multiple tests.
42 Confidential
Local and Shared Object Repository
Local
As you record operations on objects in your application, QuickTest automatically
stores those objects in the corresponding local object repository.
QuickTest adds all new objects to the local object repository even if one or more
shared object repositories are already associated with the action.
For every new action added in a test, a new corresponding local object repository
will be created in the test.
The extension for local object repository is .bdb
Shared
Shared object repositories can be created in two ways
From Object Repository Manager
By exporting objects from local object repository
QTP can use multiple shared object repositories for one action/test in readable
format.
Editing of a shared object repository only by using object repository manager
The extension for shared object repository is .tsr
43 Confidential
When to use Shared / Local Object Repository types?
Shared
You have several tests that test elements of the same application, interface, or set
of objects.
You expect the object properties in your application to change from time to time
and/or you regularly need to update or modify test object properties.
You often work with multi-action tests and regularly use the Insert Copy of Action
and Insert Call to Action options.
You are creating tests using keyword-driven methodologies (not using record).
Local
You have only one, or very few, tests that correspond to a given application
interface, or set of objects.
You do not expect to frequently modify test object properties.
You generally create single-action tests.
44 Confidential
Object Repository Manager
Object Repository Manager is used to create and modify Shared Object
Repositories.
Multiple instances of Object Repositories can be created and managed.
It has the capability to Compare & Merge of OR’s using Compare & Merge Tools.
Multiple instances of
Object Repositories
45 Confidential
Object Repository Comparison Tool
The Object Repository Comparison Tool compares two OR’s and displays the
differences in their objects, such as different object names, different object
descriptions, and so on.
It can compare only two OR’s at a time.
46 Confidential
Object Repository MergeTool
The Object Repository Merge Tool merges two OR’s and gives the merged
repository.
It can merge only two OR’s at a time.
47 Confidential
Virtual Objects
A virtual object is defined by user in QuickTest to recognize any area of the
application as an object. Virtual objects enable you to record and run tests on
objects that are not normally recognized by QuickTest.
QuickTest does not support virtual objects for analog or low-level recording.
For example, you want to record a test on a Web page containing a bitmap that the
user clicks. The bitmap contains several different hyperlink areas, and each area
opens a different destination page. When you record a test, the Web site matches
the coordinates of the click on the bitmap and opens the destination page.
The Virtual Objects are useful to differentiate the objects by creating virtual
objects for every link.
48 Confidential
Verification / Check Points
49 Confidential
CheckPoint and Types
A check point is a step that compares an expected value specified in the script to
an actual value in the application
When you run the test, QuickTest compares the expected results of the checkpoint
to the actual results. If the results do not match, the checkpoint fails.
Types
• Standard Check Point :- Checks properties of an object
• Page Check point :- Checks properties of a page
• Image Check point :- Checks properties of an image
• Table Check point :- Checks cell data of a webtable
• Text / Text Area Check point :- Checks text on an specified object / area
• Bitmap Check point :- Checks Bitmap of the specific object / area
• Database Check point :- Checks Database
• Accessibility Check point :- Checks web site developed under w3c guidelines
• Xml Checkpoint :- Checks the Data content in xml files
50 Confidential
checkpoints support for each Add-in Environment
Standard S S S S
Image S NS NS NS
Table S S (WinListView) S (VbListView) S
Text Area NS S S S
Bitmap S S S S
Accessibility S NS NS NS
XML (From S NA NA NA
Application)
XML (From S S S S
Resource)
Page S NA NA NA
Database S S S S
S: Supported
NS: Not Supported
NA: Not Applicable
51 Confidential
O
n Standard CheckPoint Configuration
Note: If you apply a Standard Check
A Point on Page, Image and Table
n automatically that check point
y O will convert into Page Checkpoint,
n Image Checkpoint, Table
O Checkpoint
b P
j a
e g
c O
e n
t
O T
O b
n a
j b
e l
I c
m e
t
a
g O
e b
j
O e
b c
j t
e
c
t
52 Confidential
Text, Bitmap and Accessibility CheckPoint Configuration
A Text Check point is Accessibility checks for web We can check the
similar to Text Area standards complete bitmap or a part
checkpoint. It can be applied only on of the bitmap.
It checks for the text Web Page It may not give the same
existence in the To modify the verifications result when you execute
application we have to go Options the script in different
Web Advaned screen resolutions.
B
T i
e t
x Accessibility
CheckPoint
M
t a
p
C
C
h h
e e
c c
k k
P Current P
o Verifications o
i i
n
n t
t
53 Confidential
Database CheckPoint Configuration
Select
How you
want to Select which cells need
Specify to be Checked
SQL
Statement
Specify
DSN
Specify
SQL
Statement
54 Confidential
XML CheckPoint Configuration
An output value is a step in which one or more values are captured at a specific
point in your test and stored in QTP storage locations. The values can later be used
as input at a different point in the run session.
The storage locations for QTP is Datatable, Environment and Action Parameters
56 Confidential
Output values support for each Add-in Environment
S: Supported
NS: Not Supported
NA: Not Applicable
57 Confidential
Synchronization
58 Confidential
How Synchronization Works?
t
ri p
t
T
rip
U
T
Sc
U
A
Sc
Run script
A
Run script
Continues and
Continues completed in
same time.
59 Confidential
Parameterization / Data Driving
60 Confidential
Parameters and Types
61 Confidential
Iterations
62 Confidential
Datatable Parameterization
Browser("MakeMyTrip").Page("MakeMyTrip").WebList("from").Select "Hyderabad"
Browser("MakeMyTrip ").Page("MakeMyTrip").WebList("to").Select "Delhi"
This code is to select Origin and Destination of a travel trip. To make a reuse of this code for other travel
trips selection then the datatable parameters should be replaced in place of values.
63 Confidential
Actions
Action is a part of the test. It helps to divide a test into logical units, such as
the main sections of a Web site, or specific activities that you perform in
your application.
An action consists of its own test script, including all of the steps recorded in
that action, and any objects in its local object repository.
If a test is handling more functionalities / modules its better to use multiple
actions. Splitting functionality into actions avails reusability of actions in
other tests.
64 Confidential
Actions Reusability
65 Confidential
Action Parameterization
Action Parameters are useful to pass values from one action to another action
while calling an Action
Two types of parameters available for every action
Input Parameters
66 Confidential
Action Parameters Configuration
67 Confidential
Environment Parameters
- Variables that are defined by an user. These variables are saved with the test
and are accessible only within the test in which they were defined.
User Defined External
68 Confidential
Environment Parameters Configuration
Built-In Variables
Note:-
The variables which are in blue external environment file
color are defined in external file
69 Confidential
Random Number Parameters
Random number parameter is to generate
random numbers
The range can be specified in Parameter Options
dialog
70 Confidential
Action vs Function
Action Function
Action is Specific to QTP Function is specific to VBScript
Action will have own local repository, Datatable Functional will not have anything to it.
and any other resources
Action run only in QTP. Functions can run out side of QTP
Action will not return any value Function returns the value
Action doesn’t supports arrays and objects in Function support arrays, objects as inputs.
action parameters.
Can call a function from an action Not possible to call an action in the function
Action have input and output parameters Function have byval and byref parameters
If you call an action from another action you’ll find If you call a function from another function or an
script, Datatable, Object repository in that called action you don’t find anything for that function
action
QTP is mandatory to modify an action No need to have QTP to modify function
71 Confidential
Recovery Scenario Manager / Exception Handling
72 Confidential
Recovery Scenario Manager Introduction
We may get some unexpected events, errors, and application crashes during a run
session which will disrupt run session
QTP provides a facility called Recovery Scenario Manager to make recovery scenarios
to recover from these type of errors
The Recovery Scenario Manager provides a wizard to define Recovery Scenarios
which includes a definition of an unexpected event and the operations necessary to
recover the run session
Recovery scenarios are saved in recovery scenario files with extension of .QRS. A
recovery scenario file is a logical collection of recovery scenarios, grouped according
to your own specific requirements.
A Recovery Scenario Consists
Trigger Event - The event that interrupts your run session.
Recovery Operations - The operations to perform to recover from the error and
continue the running
Post-Recovery Test Run Option - From which point to run the test after the
recovery operations have been performed
73 Confidential
Trigger Event Types
Popup Window
- This is useful when an application is giving unwanted popup dialogs which
interrupts the test run. QuickTest can detect this window and activate a defined
recovery scenario to continue the run session.
Object State
- An object is at specific state that generates the error. For example, a specific
button in a dialog box may be disabled when a specific process is open.
QuickTest can detect the object property state of the button that occurs when
this problematic process is open and activate a defined recovery scenario to
close the process and continue the run session.
Test Run Error
- A step is failed in a test. Test Run Error Recovery Scenario gives a facility to create
recoveries based on the error which we got in QTP during test run.
Application Crash
- The Application is crashed during the test run which interrupts the test run.
QuickTest can detect this application crash and activate a defined recovery
scenario to continue the run session.
74 Confidential
Recovery Operations
The Recovery Operations are will be specified based on the trigger event.
These will be performed after QTP detects an error and trigger event
4 Types of recovery operations available for every trigger event
1. Keyboard / Mouse Operations
QuickTest simulates the keyboard and mouse operations for clicking / typing keys.
This is useful when there is a single step to be performed.
2. Close Application Process
QuickTest closes the specified process. This is useful to close an unwanted process
which blocks the script execution.
3. Function Call
A function call which is stored in a function library. This is useful when there are
multiple operations to be performed.
4. Restart Microsoft Windows
Restarts the OS. This is useful when you get the errors because of any pending
restart.
You must configure the computer on which the test or component is run to
automatically log in on restart.
75 Confidential
Post Recovery Operations
Post-recovery test run options specify how to continue the run session after QuickTest has identified
the event and performed all of the specified recovery operations.
6 Types of Post recovery operations available
1. Repeat current step and continue
The current step is the step that QuickTest was running when the recovery scenario was triggered. This
is useful when your recovery operation is clearing the disturbance to run the step.
2. Proceed to next step
Skips the step that QuickTest was running when the recovery scenario was triggered. This is useful
when your recovery operation is providing some alternative for that step.
3. Proceed to next action or component iteration
Stops the current action and begins the next iteration. This is useful when there is no facility to
continue the run for that particular action. Usually it follows with close application process.
4. Proceed to next test iteration
Stops the current test iteration and begins the next iteration. This is useful when there is no facility to
continue the run for that particular test. Usually it follows with close application process.
5. Restart current test run
Stops and re-runs the current test. This is useful when there is no facility to continue the run for that
particular test. This follows with Restart Microsoft windows.
6. Stop the test run
Stops running the test or component. This is useful when there is no facility to continue the run for that
particular test. This follows with Restart Microsoft windows.
76 Confidential
Creating a Recovery Scenario
Open Recovery
Scenario File
77 Confidential
Configuring Recovery Scenario by Trigger Event
O
b
j
P e
o c
p t
S
u t
Specify p a
Window Title Specify
t
Object State
e
A
T p
e p
l
s
i
t c
R a
u t
n i
o
E n
Specify Error C Specify
r Process Name
Type r r
a
o s
r h
78 Confidential
Configuring Recovery Scenario
R
e
c P
o o
v s
e t
r
y R
e
O c
p o
e v
r e
a r
t y
i
o
n
S
c
e A
n d
a d
r
i t
o o
N T
a e
m s
e t
79 Confidential
Functions & Libraries
An user define function is a group of statements that encapsulates an activate into a
keyword (Function name)
User-defined functions enables you to create shorter tests, easy design, read, and
maintain.
QTP is giving a facility to register the functions for any test object
A registered function can either override the functionality of an existing test object
method or be registered as a new method for a test object class
We can define and store functions in function libraries or in QTP Actions
QTP is giving a facility to develop function libraries with the extension .QFL
A function library is a Visual Basic script containing VBscript functions, subroutines,
modules, and so forth.
We can use .VBS, .TXT, .QFL files as function libraries
We can associate the function libraries to a QTP Test and can use the functions in
across the test
The functions which are defined in a QTP Action can be called only in the same Action
The function which are defined as private in function libraries can be called only with
in that function library
80 Confidential
Creating Functions & Libraries
In VBScript Functions are usually called as Procedures.
There are Two types of procedures
1. Function Procedures
2. Sub Procedures (Sub Routines)
Function and Sub procedures will have a series of VBScript statements.
Functions can return value where as Sub doesn’t return a value. This is the main
difference between.
81 Confidential
Regular Expressions
82 Confidential
What is a Regular Expression?
A Regular Expression is a string that provides a complex search phrase.
Phrase is an expression consisting of one or more words.
Regular expressions enable QuickTest to identify objects and text strings with varying
values.
By using special characters, such as a period (.), asterisk (*), caret (^), and brackets
([ ]), we can define the Regular Expression conditions of a search.
We can specify Regular Expressions in Object Repositories, Checkpoints,
Programmatic Descriptions and for VBScript Logics.
VBScript provides an object REGEXP to define and use regular expressions in script
Notes:
You can use regular expressions only for values of type string.
When any special character in a regular expression is preceded by a backslash (\),
QuickTest searches for the literal character.
83 Confidential
Creating Regular Expressions
A backslash (\) can serve two purposes. It can be used in conjunction with a special character to
indicate that the next character be treated as a literal character. For example, “\z” matches z.
A period (.) instructs QuickTest to search for any single character (except for \n). For example
“welcome.” matches welcomes, welcomed, or welcome followed by a space or any other single
character. A series of periods indicates the same number of unspecified characters.
Square brackets instruct QuickTest to search for any single character within a list of characters. For
example, to search for the date 1967, 1968, or 1969, enter: “196[789]”
When a caret (^) is the first character inside square brackets, it instructs QuickTest to match any
character in the list except for the ones specified in the string. For example: “[^ab]” matches any
character except a or b.
To match a single character within a range, you can use square brackets ([ ]) with the hyphen (-)
character. For instance, to match any year in the 1960s, enter: “196[0-9]”
An asterisk (*) instructs QuickTest to match zero or more occurrences of the preceding character.
For example: “ca*r” matches car, caaaaaar, and cr.
Parentheses (()) used to group the set of regular expression conditions. Using groups is especially
useful for delimiting the argument(s) to an alternation operator ( | ) or a repetition operator ( * , +
, ? , { } ).
A vertical line (|) instructs QuickTest to match one of a choice of expressions. For example: “foo|
bar” match either foo or bar.
84 Confidential
Regular Expression Examples
Mins: ([0-5][0-9]) DD: (0[1-9]|1[0-9]|2[0-9]|3[0-1])
YYYY: ([0-9][0-9][0-9][1-9]|[1-9]000|[1-9][1-9]00|[1-9][1-9][1-9]0)
Secs: ([0-5][0-9])
| -- OR
() -- Used to group multiple regular expressions
[-] -- To specify a range
85 Confidential
86 Confidential