RobotTestingFramework
2.0.1
Robot Testing Framework
|
The RubyPluginLoaderImpl loads a ruby test case plug-in and gives the direct access to the TestCase. More...
#include <robottestingframework/ruby/impl/RubyPluginLoader_impl.h>
Public Member Functions | |
RubyPluginLoaderImpl () | |
RubyPluginLoaderImpl constructor. More... | |
~RubyPluginLoaderImpl () override | |
RubyPluginLoaderImpl destructor. More... | |
TestCase * | open (const std::string filename) |
open Loads a test case plugin More... | |
void | close () |
close Unloads the plugin and deletes any allocated memory. More... | |
std::string | getLastError () |
getLastError gets the last error if any. More... | |
std::string | getFileName () |
getFileName returns the loaded script file name More... | |
void | setTestName (const std::string name) |
setTestName set the test case name More... | |
bool | setup (int argc, char **argv) override |
setup is called before the test run. More... | |
void | tearDown () override |
tearDown is called after the test run More... | |
void | run () override |
run is called by the TestCase class if setup is successfull; More... | |
Public Member Functions inherited from robottestingframework::TestCase | |
TestCase (std::string name, std::string param="") | |
TestCase constructor. More... | |
virtual | ~TestCase () |
TestCase destructor. More... | |
void | interrupt () override |
interrupt interrupts the current test run More... | |
void | run (TestResult &rsl) override |
the main caller of a TestCase inherited from Test Class. More... | |
bool | succeeded () const override |
succeeded More... | |
void | failed () |
failed Sets the test successful flag to false which indicates that the test was not successful. More... | |
TestResult * | getResult () |
getResult Returns an instance of TestResult if run(TestResult &result) has been already called by a TestRunner More... | |
void | setParam (const std::string param) |
setParam Sets the optional parameters of the test. More... | |
std::string | getParam () |
getParam gets the original paramter string which is set for the test case More... | |
void | setEnvironment (const std::string environment) |
setEnvironment Optioanlly specifies the environment in which the test case is executed. More... | |
std::string | getEnvironment () |
getParam gets the environment string which is set for the test case More... | |
void | setRepetition (unsigned int rep) |
setRepetition sets the run repetition by default the run() method is called only once; The number of test runs (e.g., for stress testing) can be set using this function. More... | |
unsigned int | getRepetition () |
getRepetition gets the tun repetition More... | |
Public Member Functions inherited from robottestingframework::Test | |
Test (std::string name, std::string description="") | |
Test constructor. More... | |
virtual | ~Test () |
Test destructor. More... | |
const std::string | getName () const |
getName Getting test name. More... | |
const std::string | getDescription () const |
getDescription Getting test description More... | |
void | setDescription (const std::string description) |
setDescription Sets an optional string which describes the test. More... | |
Private Member Functions | |
std::string | extractFileName (const std::string &path) |
Static Private Member Functions | |
static RubyPluginLoaderImpl * | getImpFromRuby () |
static std::string | getRubyErrorMessage () |
static std::string | getRubyBackTrace () |
static VALUE | wrapSetup (VALUE args) |
static VALUE | protectedSetup (VALUE testcase, ID id, VALUE param, RubyPluginLoaderImpl *impl) |
static VALUE | wrapRun (VALUE args) |
static VALUE | protectedRun (VALUE testcase, ID id, RubyPluginLoaderImpl *impl) |
static VALUE | wrapTearDown (VALUE args) |
static VALUE | protectedTearDown (VALUE testcase, ID id, RubyPluginLoaderImpl *impl) |
static VALUE | setName (VALUE self, VALUE obj) |
static VALUE | assertError (VALUE self, VALUE obj) |
static VALUE | assertFail (VALUE self, VALUE obj) |
static VALUE | testReport (VALUE self, VALUE obj) |
static VALUE | testCheck (VALUE self, VALUE cond, VALUE message) |
Private Attributes | |
std::string | filename |
std::string | error |
VALUE | testcase |
VALUE | RobotTestingFrameworkModule |
Additional Inherited Members | |
Protected Member Functions inherited from robottestingframework::Test | |
void | setName (std::string name) |
setName setting the test name More... | |
The RubyPluginLoaderImpl loads a ruby test case plug-in and gives the direct access to the TestCase.
Definition at line 37 of file RubyPluginLoader_impl.h.
robottestingframework::plugin::RubyPluginLoaderImpl::RubyPluginLoaderImpl | ( | ) |
RubyPluginLoaderImpl constructor.
|
override |
RubyPluginLoaderImpl destructor.
|
staticprivate |
|
staticprivate |
void robottestingframework::plugin::RubyPluginLoaderImpl::close | ( | ) |
close Unloads the plugin and deletes any allocated memory.
|
private |
std::string robottestingframework::plugin::RubyPluginLoaderImpl::getFileName | ( | ) |
getFileName returns the loaded script file name
|
staticprivate |
std::string robottestingframework::plugin::RubyPluginLoaderImpl::getLastError | ( | ) |
getLastError gets the last error if any.
|
staticprivate |
|
staticprivate |
TestCase* robottestingframework::plugin::RubyPluginLoaderImpl::open | ( | const std::string | filename | ) |
open Loads a test case plugin
filename | the plugin filename |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
overridevirtual |
run is called by the TestCase class if setup is successfull;
Implements robottestingframework::TestCase.
|
staticprivate |
void robottestingframework::plugin::RubyPluginLoaderImpl::setTestName | ( | const std::string | name | ) |
setTestName set the test case name
name | the test case name |
|
overridevirtual |
setup is called before the test run.
argc | The number of the pasred argument from string paramter |
argv | The arguments which is parsed using string paramter |
Reimplemented from robottestingframework::TestCase.
|
overridevirtual |
tearDown is called after the test run
Reimplemented from robottestingframework::TestCase.
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
Definition at line 112 of file RubyPluginLoader_impl.h.
|
private |
Definition at line 111 of file RubyPluginLoader_impl.h.
|
private |
Definition at line 114 of file RubyPluginLoader_impl.h.
|
private |
Definition at line 113 of file RubyPluginLoader_impl.h.