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 : stringThe description of what functional area of the Unit Test this Test Case tests.enabled : booleanTrue if the test case is not skipped.language : languageTypeThe scripting language for this element. Defaults to the model scripting language. See Metadata.language Valid values based on“string”.schemescheme scripting languagejsJavaScript scripting languagename : stringThe name of the Test Case. It must be unique.
Parents
-
UnitTest - A set of test cases to test Model functionality.
Parent topic: UnitTest