Verification Services |
A verification point operates on two different types of data:
For example, this data might be captured when the component is known to be functioning correctly, or from a source that is known to contain the correct data. Data that is known to be correct is called the expected data.
Expected data can be data that is explicitly specified (for example, a person's name, social security number, or account number), or data that is the result of some calculation (for example, a monthly mortgage payment resulting from inputs of loan amount, interest rate, and number of payments).
This data is always captured at test runtime and is called the actual data. A verification point compares expected data and actual data. If the data matches (or, optionally, satisfies some other condition, such as falling within an accepted range), the verification point passes. Otherwise, the verification point fails. Verification point results are logged automatically.
Note: If the test script sets the VPOPTION_EXPECT_FAILURE
option through the Options
property of the IVerificationPoint
interface, the verification point passes only if the data comparison fails.
In the following figure, the account balance 935.49 is the expected data for a given input (an account number). In three subsequent tests, the stored expected data is compared against the actual data captured during each test. In this example, the verification point passes if the expected data matches the actual data:
Rational Test Script Services for Visual Basic | Rational Software Corporation |
Copyright (c) 2003, Rational Software Corporation | http://www.rational.com support@rational.com info@rational.com |