Anda di halaman 1dari 11

QTP – Check Points

 A checkpoint is a verification point that


compares a current value for a specified
property with the expected value for that
property.
 This enables you to identify whether your Web
site or application is functioning correctly.
 When you run the test, Quick Test compares
the expected results of the checkpoint to the
current results. If the results do not match, the
checkpoint fails.

CIBC - Testing 1
QTP – Check Point Types

 Bitmap Checking - You can check an area of a


Web page or application as a bitmap. While
creating a test, you specify the area you want to
check by selecting an object. You can check an
entire object or any area within an object.
 Standard Checking - You can check use
standard checkpoint to check the text property
of an object. This is the preferred way of
checking text in many Windows applications.

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

 Check points Pass/Fail Criteria can be


clearly viewed in the Test Results.
 Test Results Tree Structure will clearly
display the Expected and Actual Check
points or Objects.

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

 Increased Test Coverage.


 Test Boundary Conditions.
 Test Valid and Invalid data.
 Test different tables in the database.

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

Anda mungkin juga menyukai