Extensions.Assertion

From emotive
Jump to navigation Jump to search

Classification

Name Assertion
Short Description Uses to ensure the correct implementation of OTX test sequences
Class OTX Extension
Base Extension -
Pre-Conditions -
Specified by ISO 13209-4

Introduction

Assertions are used to ensure the correct implementation of OTX test sequences. An assertion claims that a certain condition holds during OTX execution. It does not contribute to the test logic that is implemented in OTX.

Assertions are usually evaluated during testing of the OTX test sequence itself. A failing assertion always indicates that the OTX test sequence contains a programming error and needs to be changed.

During production of an OTX test sequence, assertions need not be evaluated because it can be assumed that the sequence does not contain any programming errors. Runtime systems should, therefore, offer a configuration to enable or disable the evaluation of assertions. By default, the evaluation of assertions should be disabled. If the runtime system is configured not to evaluate assertion statements, it will suppress any impact of assertions: it will not evaluate their boolean conditions.

Actions

Assert

Exceptions

AssertionException