OTX-Runtime for DotNet  
OpenTestSystem.Otx.Runtime.Api.Custom.ContextVariableImplementation Class Reference

Default ContextVariable implementation More...

Inheritance diagram for OpenTestSystem.Otx.Runtime.Api.Custom.ContextVariableImplementation:
Inheritance graph

Public Member Functions

object GetValue (IRuntimeContext runtimeContext, IContextVariable variable, object initMappingValue)
 Invoked when a ContextVariable gets its value in OTX-Runtime. More...
 
void ResetAllValues ()
 Reset all values, which were set by SetValue method. More...
 
void SetValue (string contextValueName, object value)
 Set the value for a context variable. More...
 

Properties

ContextVariableReadHandler ContextVariableRead [get, set]
 Context variable read event More...
 

Detailed Description

Default ContextVariable implementation

Member Function Documentation

◆ GetValue()

object OpenTestSystem.Otx.Runtime.Api.Custom.ContextVariableImplementation.GetValue ( IRuntimeContext  runtimeContext,
IContextVariable  variable,
object  initMappingValue 
)
inline

Invoked when a ContextVariable gets its value in OTX-Runtime.

Parameters
runtimeContextThe related runtime context.
variableContextVariable which gets its value.
initMappingValueInit value in mapping file.
Returns
Value which will be returned for OTX-Runtime.< / returns>

Implements OpenTestSystem.Otx.Runtime.Api.Custom.IContextVariableImplementation.

◆ ResetAllValues()

void OpenTestSystem.Otx.Runtime.Api.Custom.ContextVariableImplementation.ResetAllValues ( )
inline

Reset all values, which were set by SetValue method.

◆ SetValue()

void OpenTestSystem.Otx.Runtime.Api.Custom.ContextVariableImplementation.SetValue ( string  contextValueName,
object  value 
)
inline

Set the value for a context variable.

Parameters
contextValueNameA path to Context variable, eg: Package.otxDoc.ContextName.
valueThe value to set for the context variable.

Property Documentation

◆ ContextVariableRead

ContextVariableReadHandler OpenTestSystem.Otx.Runtime.Api.Custom.ContextVariableImplementation.ContextVariableRead
getset

Context variable read event

The ContextVariableRead event is fired every time the value of the context variable is read.


The documentation for this class was generated from the following file: