Skip to content

Diagram UPact

Design_UserDoc_Testing TestCase TestCase TestDefinitionSetUp TestDefinitionSetUp TestCase->TestDefinitionSetUp setUp 0..N TestDefinitionTearDown TestDefinitionTearDown TestCase->TestDefinitionTearDown tearDown 0..N TestDefinition TestDefinition TestCase->TestDefinition test 0..N TestCaseVariable TestCaseVariable TestCase->TestCaseVariable localVariable 0..N ATestController ATestController TestCase->ATestController controller 0..N ATestDefinition ATestDefinition ATestDefinition->TestDefinitionSetUp ATestDefinition->TestDefinitionTearDown ATestDefinition->TestDefinition AAction AAction ATestDefinition->AAction action 0..N TestCaseInstance TestCaseInstance TestCaseInstance->TestCase testCase 1..1 TestCaseInstance->TestCaseInstance followingTest 0..1 TestCaseInstance->TestCaseInstance testFailed 0..1 ActionWithArgumentParameter ActionWithArgumentParameter TestCaseInstance->ActionWithArgumentParameter parameterArgument[AAction] 1..1 ActionWithCommonParameter ActionWithCommonParameter TestCaseInstance->ActionWithCommonParameter parameterCommon[AAction] 1..1 ActionWithTestValueParameter ActionWithTestValueParameter TestCaseInstance->ActionWithTestValueParameter parameterTest[AAction] 1..1 TestSuite TestSuite TestSuite->TestCaseInstance startCase 1..1 TestSuite->TestCaseInstance testCaseInstance 1..N UPact UPact ATestSuite ATestSuite UPact->ATestSuite testSuite 0..N SuiteInstance SuiteInstance UPact->SuiteInstance testSuiteInstance 0..N TestTargetConfig TestTargetConfig UPact->TestTargetConfig testTargetConfig 0..1 Config Config Config->UPact upact 0..1 ASetAction ASetAction AAction->ASetAction ATestAction ATestAction AAction->ATestAction TimeAction TimeAction AAction->TimeAction SetActionSpecific SetActionSpecific ASetAction->SetActionSpecific SetActionCommon_deprecated SetActionCommon_deprecated ASetAction->SetActionCommon_deprecated SetActionManual SetActionManual ASetAction->SetActionManual ASetActionMethod ASetActionMethod ASetAction->ASetActionMethod SetActionIO SetActionIO ASetAction->SetActionIO SetActionLocalVariable SetActionLocalVariable ASetAction->SetActionLocalVariable TestAction TestAction ATestAction->TestAction TestAwaitAction TestAwaitAction ATestAction->TestAwaitAction AComperator AComperator ATestAction->AComperator orExpression 1..N SetActionCommon_deprecated->ATestController targetController > controller 1..1 TestController TestController SetActionCommonControllerContext SetActionCommonControllerContext ASetActionMethod->SetActionCommonControllerContext SetActionCommonModelContext SetActionCommonModelContext ASetActionMethod->SetActionCommonModelContext SetActionCommonControllerContext->ATestController targetController > controller 1..1 SetActionLocalVariable->TestCaseVariable target 1..1 ATestSuite->TestSuite SuiteSelect SuiteSelect SuiteSelect->ATestSuite suite 1..1 SuiteSelect->SuiteSelect followingTestSuite 0..1 SuiteSelect->SuiteSelect suiteFailed 0..1 SuiteInstance->SuiteSelect suiteSelect 0..N CompEQU CompEQU CompGEQ CompGEQ CompGRT CompGRT CompNEQ CompNEQ UPconnectTestTargetDriver UPconnectTestTargetDriver TestTargetConfig->UPconnectTestTargetDriver testTargetPlatformConfig[] 0..1 AComperator->CompEQU AComperator->CompGEQ AComperator->CompGRT AComperator->CompNEQ AArgument AArgument AComperator->AArgument leftArgument > argument 1..1 AComperator->AArgument rightArgument > argument 1..1 ATestController->TestController TestControllerInterface TestControllerInterface ATestController->TestControllerInterface

TestCase

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.

class TestCase extends NamedResource, AnnotableComment, DatatypeLibraryOwner

TestDefinitionSetUp

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.

class TestDefinitionSetUp extends ATestDefinition

TestDefinitionTearDown

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.

class TestDefinitionTearDown extends ATestDefinition

TestDefinition

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

class TestDefinition extends ATestDefinition

ATestDefinition

abstract class ATestDefinition extends NamedResource, AnnotableComment

TestCaseInstance

A test case instance is an instance of a test case type. When instantiating, the controller instances to be tested must be specified.

class TestCaseInstance extends NamedResource

TestSuite

A test suite is an organised collection of multiple test cases that are executed together to comprehensively test different aspects of a software application. It is used to ensure greater test coverage by grouping different test cases that relate to related functions, modules or application areas. A test suite allows tests to be executed in a structured and repeatable way, increasing the efficiency of the testing process and ensuring that changes in the code do not have an unintended impact on other parts of the application. By running a test suite, developers can ensure that the software as a whole is stable, reliable and bug-free.

class TestSuite extends ATestSuite

UPact

UPact is a comprehensive framework for testing elements of an application as well as the entire software.

In general, all elements of a controller's interface can be tested using UPact.

class UPact extends Resource, AnnotableComment

Config

Configuration class for UP project

class Config extends NamedResource, AnnotableComment

AAction

An action within a test case is a specific step or operation that is performed to test a specific functionality of the software. Examples of actions in a TestCase are:

  • Entering data
  • Triggering an event
  • Executing a method
  • Changing the system state

These actions are crucial for checking the conditions and behaviour of the application under different scenarios. By precisely defining and executing actions within a test case, testers can ensure that the application reacts and functions as expected.

abstract class AAction extends Resource, AnnotableComment

ASetAction

abstract class ASetAction extends AAction

ATestAction

abstract class ATestAction extends AAction

TimeAction

This action can be used to interrupt the test run for a defined time

class TimeAction extends AAction

TestAction

The TestAction checks variables or return values of functions for a specific value.

class TestAction extends ATestAction

TestAwaitAction

An expression defines the test of a variable for a specific value. The timeout parameter can be used to define a maximum time after which the test is declared as failed if the defined value is not reached.

class TestAwaitAction extends ATestAction

SetActionSpecific

Set a value in a variable of the specific interface of a controller.

class SetActionSpecific extends ASetAction, AValue

SetActionCommon_deprecated

Set a value in the Common Interface of a controller.

class SetActionCommon_deprecated extends ASetAction, ACommonControllerArgument, ADeprecated

TestController

class TestController extends NamedResource, ATestController

SetActionManual

class SetActionManual extends ASetAction, AValue

ASetActionMethod

abstract class ASetActionMethod extends ASetAction

SetActionCommonControllerContext

Using common methods that affect a controller.

For example:

setCommand(), setMode(), setSimulation, ...

class SetActionCommonControllerContext extends ASetActionMethod, ACommonMethodArgument, ACommonControllerArgument

SetActionCommonModelContext

Using common methods that affect the entire application.

For example:

cluster.ack(), cluster.msgTest_setLevel() ...

class SetActionCommonModelContext extends ASetActionMethod, ACommonModelArgument, ACommonMethodArgument

SetActionIO

Set a value to a input or output.

class SetActionIO extends ASetAction, AValue

SetActionLocalVariable

Saving a value in a local test variable. The test variable must be defined in the corresponding test case.

class SetActionLocalVariable extends ASetAction, AValue

ATestSuite

abstract class ATestSuite extends NamedResource, AnnotableComment

SuiteSelect

class SuiteSelect extends Resource

SuiteInstance

Previously defined test suites can be instantiated with this class. This makes it possible to execute the same test suite in different constellations.

class SuiteInstance extends NamedResource, AnnotableComment

CompEQU

== comparison: equal

class CompEQU extends AComperator

CompGEQ

= comparison: greatar or equal

class CompGEQ extends AComperator

CompGRT

comparison: greatar than

class CompGRT extends AComperator

CompNEQ

!= comparison: not equal

class CompNEQ extends AComperator

TestCaseVariable

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

class TestCaseVariable extends NamedResource, BaseArrayVariable

TestTargetConfig

Declaration of test target platform configurations

class TestTargetConfig extends Resource

UPconnectTestTargetDriver

specific settings for test target driver

class UPconnectTestTargetDriver extends Decorator

ActionWithArgumentParameter

class ActionWithArgumentParameter extends AActionWithParameter

ActionWithCommonParameter

class ActionWithCommonParameter extends AActionWithParameter

ActionWithTestValueParameter

class ActionWithTestValueParameter extends AActionWithParameter

AComperator

abstract class AComperator extends Resource, AComperatorArgument

AArgument

abstract class AArgument extends Resource

ATestController

abstract class ATestController extends Resource

TestControllerInterface

class TestControllerInterface extends NamedResource, ATestController