OTX Reference  
OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures Class Reference

Root element of UnitTest extension. More...

Inherits ExtensibleElement.

Classes

class  CallbackProcedure
 To simulate the environment More...
 
class  SetupProcedure
 Specifies the SetupProcedure More...
 
class  TestProcedure
 A test procedure is a single test step. More...
 

Public Attributes

SetupProcedure oneTimeSetupProcedure
 Cardinality [0..1]
One-time setup procedure for initialization. More...
 
SetupProcedure oneTimeTearDownProcedure
 Cardinality [0..1]
One-time Tear down procedure for deinitialization. More...
 
SetupProcedure setupProcedure
 Cardinality [0..1]
Setup procedure for initialization. More...
 
SetupProcedure tearDownProcedure
 Cardinality [0..1]
Tear down procedure for deinitialization. More...
 
TestProcedure[] testProcedure
 Cardinality [0..1]
A test procedure is a single test step. More...
 

Detailed Description

Root element of UnitTest extension.

It extents the core by a new ExtensibleElement.

Note: For each execution of a TestProcedure or a SetupProcedure a new RuntimeContext will be generated.

Note: If a TestProcedure is marked as parallelizable, it can be executed in parallel with other test procedures.

Checker rules
Only one TestProcedures element per document

Member Data Documentation

◆ oneTimeSetupProcedure

SetupProcedure OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.oneTimeSetupProcedure

Cardinality [0..1]
One-time setup procedure for initialization.

Will be executed one-time before the execution of the first test procedure inside the related test project, e.g. to setup the environment.

◆ oneTimeTearDownProcedure

SetupProcedure OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.oneTimeTearDownProcedure

Cardinality [0..1]
One-time Tear down procedure for deinitialization.

Will be executed one-time after the execution of the last test procedure inside this test project, e.g. to protocol the test results or to clean up the environment.

◆ setupProcedure

SetupProcedure OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.setupProcedure

Cardinality [0..1]
Setup procedure for initialization.

Perform a setup procedure prior to running the first test procedure in the related document, for example to initialize the environment.

◆ tearDownProcedure

SetupProcedure OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.tearDownProcedure

Cardinality [0..1]
Tear down procedure for deinitialization.

Perform a tear down procedure after running of the last test procedure in this document, for example to deinitialize the environment.

◆ testProcedure

TestProcedure [] OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.testProcedure

Cardinality [0..1]
A test procedure is a single test step.

A test procedure must be called from the test framework, it cannot be called from inside an OTX sequence. All test procedures will be executed in order of the XML occurrence. If a test procedure throws an exception the test procedure fails. The behavior of the runtime execution after a test procedure fails, depends from the context. The normal behavior is, mark the test procedure as failure and execute the next test procedure.