OTX-Runtime for C++  
OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable Class Referenceabstract

Represents an OTX ContextVariable. More...

#include <IContextVariable.h>

Public Member Functions

virtual std::string GetAppId () const =0
 Gets the Id of the mapped external application. More...
 
virtual std::string GetDataType () const =0
 Gets DataType. More...
 
virtual std::shared_ptr< IDocumentGetDocument ()=0
 Gets Document that contains the ContextVariable. More...
 
virtual std::map< std::string, std::string > GetExternalApps () const =0
 Gets all externals applications of current OTX mapping More...
 
virtual std::shared_ptr< OpenTestSystem::Otx::Runtime::Api::DataTypes::ObjectGetInitValue () const =0
 Gets initial value. More...
 
virtual int GetMappingIndex () const =0
 Gets mapping index. More...
 
virtual std::string GetMappingName () const =0
 Gets mapping name. More...
 
virtual std::string GetName () const =0
 Gets variable name. More...
 
virtual std::string GetSpecification () const =0
 Gets specification. More...
 
virtual bool IsEnvironmentValueActive ()=0
 The environment value setting was set for the parameter. More...
 

Detailed Description

Represents an OTX ContextVariable.

Member Function Documentation

◆ GetAppId()

virtual std::string OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::GetAppId ( ) const
pure virtual

Gets the Id of the mapped external application.

Returns
Application Id.

◆ GetDataType()

virtual std::string OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::GetDataType ( ) const
pure virtual

Gets DataType.

Returns
DataType name.

◆ GetDocument()

virtual std::shared_ptr<IDocument> OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::GetDocument ( )
pure virtual

Gets Document that contains the ContextVariable.

Returns
A Document which this Variable belongs to.

◆ GetExternalApps()

virtual std::map<std::string, std::string> OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::GetExternalApps ( ) const
pure virtual

Gets all externals applications of current OTX mapping

All APPs used in the current mapping are returned as a Dictionary. The key is a String and contains the AppId. The value is a String and contains the path of the application. If available, the names of the initialization and deinitialization methods as well as the names of the parameters and the parameter values are also returned.

{
"AppId1" = "Production.Otx.Screens.dll",
"AppId1.Init" = "InitMethod",
"AppId1.Init.Param1" = "1",
"AppId1.Init.Param2" = "Message",
"AppId1.Deinit" = "DeinitMethod",
"AppId2" = "GalaSoft.MvvmLight.dll",
"AppId3" = "GalaSoft.MvvmLight.Platform.dll",
"AppId4" = "System.Windows.Interactivity.dll",
"AppId5" = "BitFactory.Logging.dll"
}
Returns
A Dictionary String of String.

◆ GetInitValue()

virtual std::shared_ptr<OpenTestSystem::Otx::Runtime::Api::DataTypes::Object> OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::GetInitValue ( ) const
pure virtual

Gets initial value.

Returns
Initial value.

◆ GetMappingIndex()

virtual int OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::GetMappingIndex ( ) const
pure virtual

Gets mapping index.

If a mapping is related to a list element, the function will return the relate index.

If no mapping a list element, this function will return -1.

Returns
Mapping index.

◆ GetMappingName()

virtual std::string OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::GetMappingName ( ) const
pure virtual

Gets mapping name.

If a valid mapping exists for this Variable, this function will return the related mapping name. The value can be used to make the application independent from different OTX projects which should be use the same system resource.

If no valid mapping exists, this function will return NULL.

The mapping name is the full qualified name of the element inside the external application which is mapped to this Variable. It contains all namespace elements separated by dots (".").

Returns
Mapping name.

◆ GetName()

virtual std::string OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::GetName ( ) const
pure virtual

Gets variable name.

Returns
Variable name.

◆ GetSpecification()

virtual std::string OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::GetSpecification ( ) const
pure virtual

Gets specification.

Returns
specification.

◆ IsEnvironmentValueActive()

virtual bool OpenTestSystem::Otx::Runtime::Api::Otx::IContextVariable::IsEnvironmentValueActive ( )
pure virtual

The environment value setting was set for the parameter.

Returns
Returns true if the environment value setting was set for the related parameter. Using the environment value setting, unmapped InOut or Out parameters as well as context variables can be set to a fixed value. This means that a non-existent environment can be simulated.

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