Type to start searching...

TestCase

Script used to test a unit of functionality in a unit test

Description
Test cases are scripts evaluated during unit tests. These scripts have access to special assert statements to compare actual to expected results. Some special script functions used in test cases include:


* assert-equal
* assert-eq
* assert=
* assert-null
* assert-raises
* assert-invariant
* assert-true
* assert-error-code
* reset-context

Properties
description : string

The description of what functional area of the Unit Test this Test Case tests.

enabled : boolean

True if the test case is not skipped.

language : languageType

The scripting language for this element.

Defaults to the model scripting language.
See
Metadata.language
Valid values based on“string”.
scheme

scheme scripting language

js

JavaScript scripting language

name : string

The name of the Test Case. It must be unique.

Parents
  • UnitTest - A set of test cases to test Model functionality.