This class contains configuration for calling script functions from testIDEA. More...
#include <CTestEnvironmentConfig.h>
Public Types | |
| enum | ETestScriptConfigSectionIds |
| Ids of test specification sections. | |
Public Member Functions | |
| virtual void | assign (const CTestObjectSPtr &base) |
| Assigns members of base to this. | |
| bool | containsSection (int section) const |
| Returns true, if the specified section exists for this object. | |
| virtual CTestObjectSPtr | copy () const |
| Creates a deep copy of this object. | |
| CTestBaseSPtr | createInstance (const CTestBaseSPtr &parent) const |
| Creates a new empty instance of this class. | |
| CScriptConfig (const CTestBaseSPtr &parent) | |
| std::string | getClassName () const |
| virtual CTestTreeNodeSPtr | getContainerTestNode () |
| virtual CTestSpecificationSPtr getContainerTestSpec(); | |
| int | getEnumTagValue (int section) |
| Returns value of enum type. | |
| std::string | getExtensionClass () |
| Returns class to use as a extension object during tests. | |
| void | getModules (iconnect::StrVector &modules) |
| Returns vector of modules/libraries to import/load by script interpreter before execution of tests. | |
| CTestBaseSPtr | getParent () const |
| Returns parent. | |
| int | getSectionId (const std::string §ionName) |
| Returns section ID for the given section name. | |
| void | getSysPaths (iconnect::StrVector &paths) |
| Returns the module/library search path for script interpreter. | |
| CTestBaseSPtr | getTestBase (int section, bool isConst) |
| CTestBaseListSPtr | getTestBaseList (int section, bool isConst) |
| CTestObject::ETestObjType | getTestObjType () const |
| Returns type of this object, which is CTestObject::ETestBase. | |
| int | getTimeout () |
| Returns how long in seconds caller should wait for script calls to return. | |
| std::string | getWorkingDir () |
| Returns script working directory. | |
| virtual bool | isEmpty () const |
| This method returns true, if the object contains no data. | |
| bool | isSectionEmpty (int sectionId) |
| Returns true, if the given section is empty. | |
| virtual bool | isSerializedAsList (bool isParsing) |
| Returns true if object should be serialized as list, for example CTestFunction. | |
| virtual void | serialize (const isys::IEmitterSPtr &emitter) |
| Sends contents of this class to emitter. | |
| virtual void | setComment (int section, int idx, const std::string &nlComment, const std::string &eolComment) |
| void | setEnumTagValue (int section, int enumValue) |
| Sets value of enum type. | |
| void | setExtensionClass (const std::string &extensionClass) |
| Sets class to use as a callback object during tests. | |
| virtual void | setMainMapStyle (isys::IEmitter::EYamlStyle mappingStyle) |
| Sets style of the mapping for complete object. | |
| void | setModules (const iconnect::StrVector &modules) |
| Setss vector of modules/libraries to import/load by script interpreter before execution of tests. | |
| void | setParent (CTestBaseSPtr parent) |
| Sets parent. | |
| void | setSysPaths (const iconnect::StrVector &sysPaths) |
| Sets modules/libraries to import/load by script interpreter before execution of tests. | |
| void | setTimeout (int timeout) |
| Sets how long in seconds caller should wait for script calls to return. | |
| void | setWorkingDir (const std::string &workingDir) |
| Sets script working directory. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
Static Public Member Functions | |
| static CScriptConfigSPtr | cast (const CTestBaseSPtr &testBase) |
| Casts the given object to this class. | |
Protected Member Functions | |
| void | setStaticTagsAsConst () |
| This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ... | |
This class contains configuration for calling script functions from testIDEA.
Default operator =() can be used.
| isys::CScriptConfig::CScriptConfig | ( | const CTestBaseSPtr & | parent | ) |
|
virtualinherited |
|
static |
Casts the given object to this class.
Returns NULL if input is NULL.
| IllegalArgumentException | if input object is not instance of this class. |
|
inherited |
Returns true, if the specified section exists for this object.
|
virtualinherited |
Creates a deep copy of this object.
Parent is set.
|
virtual |
|
inherited |
|
virtualinherited |
virtual CTestSpecificationSPtr getContainerTestSpec();
|
inherited |
Returns value of enum type.
| std::string isys::CScriptConfig::getExtensionClass | ( | ) |
Returns class to use as a extension object during tests.
| void isys::CScriptConfig::getModules | ( | iconnect::StrVector & | modules | ) |
Returns vector of modules/libraries to import/load by script interpreter before execution of tests.
|
inherited |
Returns parent.
|
inherited |
Returns section ID for the given section name.
| void isys::CScriptConfig::getSysPaths | ( | iconnect::StrVector & | paths | ) |
Returns the module/library search path for script interpreter.
|
inherited |
|
inherited |
|
inherited |
Returns type of this object, which is CTestObject::ETestBase.
| int isys::CScriptConfig::getTimeout | ( | ) |
Returns how long in seconds caller should wait for script calls to return.
If it does not return in this time, the test is considered as failed!
| std::string isys::CScriptConfig::getWorkingDir | ( | ) |
Returns script working directory.
|
virtualinherited |
This method returns true, if the object contains no data.
|
inherited |
Returns true, if the given section is empty.
|
virtualinherited |
Returns true if object should be serialized as list, for example CTestFunction.
Reimplemented in isys::CTestFunction.
|
virtualinherited |
Sends contents of this class to emitter.
Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.
|
virtualinherited |
|
inherited |
Sets value of enum type.
| void isys::CScriptConfig::setExtensionClass | ( | const std::string & | extensionClass | ) |
Sets class to use as a callback object during tests.
|
virtualinherited |
Sets style of the mapping for complete object.
| void isys::CScriptConfig::setModules | ( | const iconnect::StrVector & | modules | ) |
Setss vector of modules/libraries to import/load by script interpreter before execution of tests.
|
inherited |
Sets parent.
| void isys::CScriptConfig::setSysPaths | ( | const iconnect::StrVector & | sysPaths | ) |
Sets modules/libraries to import/load by script interpreter before execution of tests.
| void isys::CScriptConfig::setTimeout | ( | int | timeout | ) |
Sets how long in seconds caller should wait for script calls to return.
If it does not return in this time, the test is considered as failed!
| void isys::CScriptConfig::setWorkingDir | ( | const std::string & | workingDir | ) |
Sets script working directory.
|
virtualinherited |
Returns object data as YAML string.