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