Académique Documents
Professionnel Documents
Culture Documents
CIBC - Testing 1
QTP – Check Point Types
CIBC - Testing 2
QTP – Check Point Types
Text Checking - Enables you to check
that the text is displayed in a screen,
window, or Web page, according to
specified criteria. It is supported for all
environments.
Text Area Checking - Enables you to
check that a text string appears within a
defined area in a Windows application,
according to specified criteria. It is
supported for Standard Windows, Visual
Basic, and ActiveX environments.
CIBC - Testing 3
QTP – Check Point Types
You can use database checkpoints in your
test to check databases accessed by your
Web site or application and to detect
defects. You define a query on your
database, and then you create a database
checkpoint that checks the results of the
query.
Two ways to define database query are
Microsoft query and SQL query.
CIBC - Testing 4
QTP – Analyzing Check Points in
Test Results
CIBC - Testing 5
QTP - Parameterization
Constant—A value that is defined directly within
the test or component and remains set for the
duration of the test or component.
Parameter - A value that is defined or generated
outside the test or component and is retrieved
when the specific step runs.
A parameter is a variable which replaces a recorded
value in the script.
At run time, QuickTest substitutes a value from a data
source for the parameter.
CIBC - Testing 6
QTP – Data Driven Test
A Test/Script that runs one set of user actions
with multiple input values.
Data Driving allows one script to test AUT
functionality with many sets of data.
Data Source
The location of data that QuickTest will use
to supply the parameter.
In QuickTest, the data source is called the
Data table.
The Data table is a spreadsheet file that
contains input values for a data driven test.
CIBC - Testing 7
QTP – Benefits of Data Driven Test
CIBC - Testing 8
QTP- How Data Driven Test Works
Parameter(s) replace recorded input data.
Data table references tell QuickTest where
to get data for the parameter(s)
CIBC - Testing 9
QTP – Regular Expression
Regular expressions enable QuickTest to
identify objects and text strings with varying
values.
Examples for Regular Expressions are,
- Creating checkpoints with varying values.
- For example, you can use a regular
expression if you want to create a text
checkpoint on a Number text string, but the
displayed Number changes according to the
current updations.
CIBC - Testing 10
QTP – Regular Expression
If you define the number as a regular
expression, the checkpoint checks that
the captured text string matches the
expected numbers format, rather than
checking the exact number value.
You can use Regular Expressions only for
values of type string.
CIBC - Testing 11