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