Skip to content

class TestCase

Package: swiss.avm.up.core.generic.testing.javamodel.TestCase

Direct Known Subclasses:


class TestCase extends NamedResource, AnnotableComment, DatatypeLibraryOwner

A test case in a test framework serves as the smallest, atomic unit for testing a specific functionality or aspect of an application. It contains one or more test actions that define specific conditions, actions and expected results. The TestCase is used to ensure that individual parts of the application function as intended. It isolates the code to be tested from other parts of the application in order to achieve accurate and consistent results. By executing TestCases, developers can recognise and correct errors at an early stage, which contributes to the stability and quality of the software.

Properties

comment

Describes the intent of this Resource.

TextLiteral[0..1]

A Literal that accepts multiple lines of text.

controller

Controller type for this test case

ATestController[0..N]

datatypeLibrary

DatatypeLibrary[0..N]

datatypeLibrary

DatatypeLibrary[0..1]

id

unique testCase id

IntegerLiteral[1..1]

A literal which accepts 32-bit integral number values.

localVariable

TestCaseVariable[0..N]

A case variable is used for the local storage of values during a test run.

name

The name of this Resource.

StringLiteral[1..1]

setUp

set up test environment

TestDefinitionSetUp[0..N]

Definition of the preliminary actions to bring the software or hardware into the state to be tested.
The test set up definition consists of an unlimited number of actions.

tearDown

clean up test environment

TestDefinitionTearDown[0..N]

Definition of the teardown actions to bring the software or hardware into a defined state for the following test or completion of a test series.
The teardown definition consists of an unlimited number of actions.

test

execute test

TestDefinition[0..N]

Definition of the actual test section.
The test definition consists of an unlimited number of actions.

Method Summary

getActionsWithParameters

@TestingFunctionSpace

Return:

List<AAction>

getAllAbstractTestDefinition

@TestingFunctionSpace

Return:

List<ATestDefinition>

getAllActions

@TestingFunctionSpace

Return:

List<AAction>

getAllArguments

@TestingFunctionSpace

Return:

List<AArgument>

getAllSetActionCommon

@TestingFunctionSpace

Return:

List<SetActionCommon_deprecated>

getAllTestCases

@TestingFunctionSpace

Return:

List<TestCase>

getAllTestValueData

@FJUnitTesting

returns all TestVAlueData in selected testcase
for validation omitted from feeldbus

Return:

List<TestValueData>

getMaxId

@TestingFunctionSpace

Return:

IntegerLiteral

getName

@FName

getVariableStoreActions

Return:

VariableStoreAction