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

A test procedure is a single test step. More...

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

Classes

class  TestProcedureRealisation
 Specifies the TestProcedure implementation. More...
 

Public Attributes

System.Boolean disabled
 Cardinality [0..1]
To turn on/off a node. A deactivated node is not executed at run time. More...
 
System.Boolean parallelizable
 Cardinality [1]
Parallelizable is used to indicate that a test procedure may be run in parallel with other test procedures. More...
 
TestProcedureRealisation realisation
 Cardinality [0..1]
Specifies the TestProcedure realisation. More...
 
System.Int32 repeat
 Cardinality [1]
Specify executed multiple times or not for a test procedure. More...
 
System.Int32 retry
 Cardinality [1]
Specify rerun or not for a test procedure. More...
 
System.Int32 timeout
 Cardinality [1]
Specify a timeout value in milliseconds for a test procedure. 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

A test procedure is a single test step.

The TestProcedure is the base class for all test procedures.

Member Data Documentation

◆ disabled

System.Boolean OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.disabled

Cardinality [0..1]
To turn on/off a node. A deactivated node is not executed at run time.

◆ parallelizable

System.Boolean OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.parallelizable

Cardinality [1]
Parallelizable is used to indicate that a test procedure may be run in parallel with other test procedures.

By default, no parallel execution takes place. If the value is true, it causes the test procedure on which it is placed to be queued for execution in parallel with other parallelizable test procedures.

Note
IMPORTANT - When test procedures are run in parallel, the author is responsible for the thread safety of the test procedures. Test procedures that run at the same time and modify common elements like global variables without mutex locks may cause in unexpected behavior.

◆ realisation

TestProcedureRealisation OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.realisation

Cardinality [0..1]
Specifies the TestProcedure realisation.

◆ repeat

System.Int32 OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.repeat

Cardinality [1]
Specify executed multiple times or not for a test procedure.

Repeat is used on a test procedure to specify that it should be executed multiple times. If any repetition fails, the remaining ones are not run and a failure is reported. A value of zero means no repeat.

◆ retry

System.Int32 OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.retry

Cardinality [1]
Specify rerun or not for a test procedure.

Retry is used on a test procedure to specify that it should be rerun if it fails, up to a maximum number of times. A value of zero means no retry.

◆ timeout

System.Int32 OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.TestProcedure.timeout

Cardinality [1]
Specify a timeout value in milliseconds for a test procedure.

Normally, the testing framework simply runs tests and waits for them to terminate - the test may is allowed to run indefinitely. For certain kinds of tests, however, it may be desired to specify a timeout value. The timeout is used to specify a timeout value in milliseconds for a test procedure. If the test procedure runs longer than the time specified it is immediately canceled and a TimoutException shall be thrown. A value of zero mean no timeout.