Parameters
Objectives
After completing this chapter, you will be able to:
•
Enhance your test to become data-driven.
•
Describe and use multiple parameter types.
•
Drive data in multiple iterations.
•
Describe global vs. local data sheets.
•
Analyze errors during test execution.
•
Parameterize a checkpoint.
QuickTest Professional Workflow
Prepare
1
Create
2
Verify & Enhance
3
Integrate
4
Setup for
test automation
Create basic test
•
Document manual
test steps
•
Check applications/
environment stability
•
Check that data is
valid
•
Record user
actions
•
Confirm successful
playback
•
Use Object
Repository
Enhance basic test
•
Add synchronization
•
Insert checkpoints
•
Data drive the test
•
Pass data
•
Build integrated
test sets
Integrate tests
Figure 1 Parameters and Data Driving in the Workflow
Enhance a test with parameterization to run
multiple sets of data.
Parameters allow for extensive reusability
of an action or a test. Do the work once and
use it many times.
Note: A parameter is a placeholder for a
value that will be passed to the test during
the test run.
QuickTest Professional Workflow
Parameter Types
Input parameter – allows you to run a test using different
sets of data input values.
Output parameter – allows you to use output to capture
values from the application at runtime.
Other parameter types:
- Random Number – a system-generated number
inserted into the parameter field during a test run.
- Environment – a variable describing a software or
hardware object in the AUT environment. For example:
the OS version or local host name.
评论1