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

To simulate the environment More...

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

Classes

class  CallbackProcedureRealisation
 Specifies the CallbackProcedure implementation. More...
 

Public Attributes

System.Boolean disabled
 To turn on/off a callback procedure. More...
 
CallbackProcedureRealisation realisation
 Specifies the CallbackProcedure implementation. 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

To simulate the environment

To simulate the environment, a callback function is called for the corresponding actions instead of the real implementation. The user can then simulate the behavior in OTX in the callback function. The callback function has fixed parameters depending on the type. The parameters give the user everything they need for the simulation. If values are to be returned, this is also done via the parameters of the callback function, so-called expected values. If an exception is thrown inside the callback function, the callback function terminates and the exception will be mapped to a related exception of the caller. For example if the author throws an UserException inside OpenScreen callback, it will be mapped to a ScreenException.

Member Data Documentation

◆ disabled

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

To turn on/off a callback procedure.

◆ realisation

CallbackProcedureRealisation OpenTestSystem.Otx.Extensions.UnitTest.TestProcedures.CallbackProcedure.realisation

Specifies the CallbackProcedure implementation.