22 #ifndef ROBOTTESTINGFRAMEWORK_RUBYPLUGINLOADER_IMPL_H 23 #define ROBOTTESTINGFRAMEWORK_RUBYPLUGINLOADER_IMPL_H 83 bool setup(
int argc,
char** argv)
override;
99 static VALUE
wrapRun(VALUE args);
104 static VALUE
setName(VALUE
self, VALUE obj);
106 static VALUE
assertFail(VALUE
self, VALUE obj);
107 static VALUE
testReport(VALUE
self, VALUE obj);
108 static VALUE
testCheck(VALUE
self, VALUE cond, VALUE message);
120 #endif // ROBOTTESTINGFRAMEWORK_RUBYPLUGINLOADER_IMPL_H
std::string getLastError()
getLastError gets the last error if any.
static VALUE protectedRun(VALUE testcase, ID id, RubyPluginLoaderImpl *impl)
bool setup(int argc, char **argv) override
setup is called before the test run.
~RubyPluginLoaderImpl() override
RubyPluginLoaderImpl destructor.
static VALUE testReport(VALUE self, VALUE obj)
void run() override
run is called by the TestCase class if setup is successfull;
TestCase * open(const std::string filename)
open Loads a test case plugin
The base class to implememnt a test case.
std::string extractFileName(const std::string &path)
void tearDown() override
tearDown is called after the test run
void setTestName(const std::string name)
setTestName set the test case name
static VALUE protectedTearDown(VALUE testcase, ID id, RubyPluginLoaderImpl *impl)
static VALUE wrapSetup(VALUE args)
void close()
close Unloads the plugin and deletes any allocated memory.
static VALUE setName(VALUE self, VALUE obj)
static VALUE assertError(VALUE self, VALUE obj)
static VALUE testCheck(VALUE self, VALUE cond, VALUE message)
The RubyPluginLoaderImpl loads a ruby test case plug-in and gives the direct access to the TestCase...
static std::string getRubyErrorMessage()
static VALUE protectedSetup(VALUE testcase, ID id, VALUE param, RubyPluginLoaderImpl *impl)
static VALUE wrapTearDown(VALUE args)
std::string getFileName()
getFileName returns the loaded script file name
static VALUE assertFail(VALUE self, VALUE obj)
static std::string getRubyBackTrace()
static VALUE wrapRun(VALUE args)
VALUE RobotTestingFrameworkModule
static RubyPluginLoaderImpl * getImpFromRuby()
RubyPluginLoaderImpl()
RubyPluginLoaderImpl constructor.