22#ifndef ROBOTTESTINGFRAMEWORK_PYTHONPLUGINLOADER_IMPL_H
23#define ROBOTTESTINGFRAMEWORK_PYTHONPLUGINLOADER_IMPL_H
82 bool setup(
int argc,
char** argv)
override;
89 static PyObject*
setName(PyObject* self, PyObject* args);
91 static PyObject*
assertFail(PyObject* self, PyObject* args);
92 static PyObject*
testReport(PyObject* self, PyObject* args);
93 static PyObject*
testCheck(PyObject* self, PyObject* args);
The base class to implememnt a test case.
The PythonPluginLoaderImpl loads a Pthyon test case plug-in and gives the direct access to the TestCa...
TestCase * open(const std::string filename)
open Loads a test case plugin
void setTestName(const std::string name)
setTestName set the test case name
std::string getPythonErrorString()
static PyObject * setName(PyObject *self, PyObject *args)
PyObject * pyCapsuleRobotTestingFramework
PyObject * pyModuleRobotTestingFramework
bool setup(int argc, char **argv) override
setup is called before the test run.
void run() override
run is called by the TestCase class if setup is successfull;
void tearDown() override
tearDown is called after the test run
static PyMethodDef testPythonMethods[]
void close()
close Unloads the plugin and deletes any allocated memory.
static PyObject * testCheck(PyObject *self, PyObject *args)
~PythonPluginLoaderImpl() override
PythonPluginLoaderImpl destructor.
PythonPluginLoaderImpl()
PythonPluginLoaderImpl constructor.
static PyObject * testReport(PyObject *self, PyObject *args)
static PyObject * assertError(PyObject *self, PyObject *args)
std::string getFileName()
getFileName returns the loaded script file name
std::string getLastError()
getLastError gets the last error if any.
static PyObject * assertFail(PyObject *self, PyObject *args)