Definition
A test assertion (also known as a test description),
details an individual unit of functionality or behavior
derived from statements contained in the API specification to be tested.
Test descriptions are produced in native language and describe the state
required prior to the aspect of the API call being tested, the parameters
supplied to the call and the expected return value, error condition and/or
events generated. (Reference: IEEE Std 2003).
Assertions take one of the following forms:
-
Bold assertion: in the form
The Ford motorcar is black.
-
Cause/effect behaviour using the form
when, then
such as
When cause occurs,
then effect results.
-
Conditional assertion, in the form
If <condition>: when, then
or
If <condition>: <bold assertion>
such as
If <optional feature is supported>: when cause occurs,
then effect results.
|