Skip to main content
Skip table of contents

t_UnitTest_TestCase

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.

Parent topic: UnitTest

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.