Unisoft Corporation logo

Test Assertion 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:

  1. Bold assertion: in the form
  2. The Ford motorcar is black.
  3. Cause/effect behaviour using the form
  4. when, then
    such as
    When cause occurs, then effect results.
  5. Conditional assertion, in the form
  6. If : when, then
    If :
    such as
    If : when cause occurs, then effect results.>