RobotTestingFramework  2.0.1
Robot Testing Framework
Public Member Functions | Private Attributes | List of all members
robottestingframework::plugin::PythonPluginLoader Class Reference

The PythonPluginLoader loads a Python test case plug-in and gives the direct access to the TestCase. More...

#include <robottestingframework/python/PythonPluginLoader.h>

+ Inheritance diagram for robottestingframework::plugin::PythonPluginLoader:

Public Member Functions

 PythonPluginLoader ()
 PythonPluginLoader constructor. More...
 
virtual ~PythonPluginLoader ()
 PythonPluginLoader destructor. More...
 
TestCaseopen (const std::string filename) override
 open Loads a test case plugin More...
 
void close () override
 close Unloads the plugin and deletes any allocated memory. More...
 
std::string getLastError () override
 getLastError gets the last error if any. More...
 
- Public Member Functions inherited from robottestingframework::plugin::PluginLoader
 PluginLoader ()=default
 PluginLoader constructor. More...
 
virtual ~PluginLoader ()=default
 PluginLoader destructor. More...
 

Private Attributes

void * implementation
 

Detailed Description

The PythonPluginLoader loads a Python test case plug-in and gives the direct access to the TestCase.

Definition at line 37 of file PythonPluginLoader.h.

Constructor & Destructor Documentation

◆ PythonPluginLoader()

robottestingframework::plugin::PythonPluginLoader::PythonPluginLoader ( )

PythonPluginLoader constructor.

◆ ~PythonPluginLoader()

virtual robottestingframework::plugin::PythonPluginLoader::~PythonPluginLoader ( )
virtual

PythonPluginLoader destructor.

Member Function Documentation

◆ close()

void robottestingframework::plugin::PythonPluginLoader::close ( )
overridevirtual

close Unloads the plugin and deletes any allocated memory.

Implements robottestingframework::plugin::PluginLoader.

◆ getLastError()

std::string robottestingframework::plugin::PythonPluginLoader::getLastError ( )
overridevirtual

getLastError gets the last error if any.

Returns
returns the last error string.

Implements robottestingframework::plugin::PluginLoader.

◆ open()

TestCase* robottestingframework::plugin::PythonPluginLoader::open ( const std::string  filename)
overridevirtual

open Loads a test case plugin

Parameters
filenamethe pyhton plugin filename
Returns
A pointer to the test case loaded from the plugin or a null pointer in case of failure.

Implements robottestingframework::plugin::PluginLoader.

Member Data Documentation

◆ implementation

void* robottestingframework::plugin::PythonPluginLoader::implementation
private

Definition at line 72 of file PythonPluginLoader.h.


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