OTX Reference  
OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.TestProcedureRealisation.TestCases.TestCase Class Reference

TestCase providing data to be used when invoking the test procedure. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.TestProcedureRealisation.TestCases.TestCase:
Inheritance graph

Classes

class  ExpectedResults
 Defines a list expected result More...
 
class  TestCaseArguments
 In arguments of a test case, behavior see ISO 13209-2 InArguments. More...
 

Public Attributes

TestCaseArguments arguments
 In arguments of a test case, behavior see ISO 13209-2 InArguments. More...
 
System.Boolean disabled
 The test case is disabled and will not be executed. If the errorMessage contains a text, this text will be written into the report. More...
 
System.String errorMessage
 An message which may be included in the report to the runtime system if the test case fails. More...
 
Exception exception
 The exception which shall be thrown inside the test procedure. Exception inheritance shall take into the account. For example if the base exception Exception is given all exceptions will pass the test. More...
 
ExpectedResults expectedResults
 A test procedure can have one ore more out parameters. More...
 
System.Boolean ignored
 The test case will ignored. It means, it will be executed, but if it fails, the result will set to IGNORED and not to FAILED. If the errorMessage contains a text, this text will be written into the report. If the test case is disabled, the ignored flag has no meaning. More...
 
System.Boolean sequential
 The default behavior of the testing framework. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.UniversalTypes.NamedAndSpecified
ExtensibleData[] extendedData
 Declares general data for NamedAndSpecified which can be extented by new general data defined in new OTX extensions using the standardised extension mechanism. For example it can be used to specify specification relevant content in a better structured way. More...
 
OtxId id
 Unique identifier of an element More...
 
MetaData metaData
 Additional tool-specific data More...
 
OtxName name
 Name of an element More...
 
NamedAndSpecifiedSpecification[] specification
 Descriptive specification More...
 

Detailed Description

TestCase providing data to be used when invoking the test procedure.

Per test procedure multiple test cases can be defined. For each test case the test procedure will be executed.

Checker rules
CheckerRule.UnitTest_Chk002 - correct test case arguments

Member Data Documentation

◆ arguments

TestCaseArguments OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.TestProcedureRealisation.TestCases.TestCase.arguments

In arguments of a test case, behavior see ISO 13209-2 InArguments.

◆ disabled

System.Boolean OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.TestProcedureRealisation.TestCases.TestCase.disabled

The test case is disabled and will not be executed. If the errorMessage contains a text, this text will be written into the report.

◆ errorMessage

System.String OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.TestProcedureRealisation.TestCases.TestCase.errorMessage

An message which may be included in the report to the runtime system if the test case fails.

◆ exception

Exception OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.TestProcedureRealisation.TestCases.TestCase.exception

The exception which shall be thrown inside the test procedure. Exception inheritance shall take into the account. For example if the base exception Exception is given all exceptions will pass the test.

◆ expectedResults

ExpectedResults OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.TestProcedureRealisation.TestCases.TestCase.expectedResults

A test procedure can have one ore more out parameters.

◆ ignored

System.Boolean OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.TestProcedureRealisation.TestCases.TestCase.ignored

The test case will ignored. It means, it will be executed, but if it fails, the result will set to IGNORED and not to FAILED. If the errorMessage contains a text, this text will be written into the report. If the test case is disabled, the ignored flag has no meaning.

◆ sequential

System.Boolean OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.TestProcedureRealisation.TestCases.TestCase.sequential

The default behavior of the testing framework.

It using to generate test cases for all possible combinations of the individual data items provided for the parameters of a test. This can be result in an huge number of tests. To reduce the number of generated tests the sequential attribute can be used. Sequential is used to specify that the testing framework should generate test cases by selecting individual data items provided for the parameters of the test, without generating additional combinations.