22 #ifndef ROBOTTESTINGFRAMEWORK_LUAPLUGINLOADER_IMPL_H
23 #define ROBOTTESTINGFRAMEWORK_LUAPLUGINLOADER_IMPL_H
83 bool setup(
int argc,
char** argv)
override;
108 #if LUA_VERSION_NUM > 501
The base class to implememnt a test case.
The LuaPluginLoaderImpl loads an test case plug-in and gives the direct access to the TestCase.
void close()
close Unloads the plugin and deletes any allocated memory.
std::string extractFileName(const std::string &path)
static int assertFail(lua_State *L)
bool getLocalFunction(const char *name)
static int testReport(lua_State *L)
bool registerExtraFunctions(void)
static int setName(lua_State *L)
std::string getLastError()
getLastError gets the last error if any.
static int testCheck(lua_State *L)
void tearDown() override
tearDown is called after the test run
static int assertError(lua_State *L)
static const struct luaL_reg luaPluginLib[]
std::string getFileName()
getFileName returns the loaded script file name
void setTestName(const std::string name)
setTestName set the test case name
static int getTestEnvironment(lua_State *L)
static int testFail(lua_State *L)
TestCase * open(const std::string filename)
open Loads a test case plugin
~LuaPluginLoaderImpl() override
LuaPluginLoaderImpl destructor.
LuaPluginLoaderImpl()
LuaPluginLoaderImpl constructor.
void run() override
run is called by the TestCase class if setup is successfull;
bool setup(int argc, char **argv) override
setup is called before the test run.