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 118 #endif // ROBOTTESTINGFRAMEWORK_LUAPLUGINLOADER_IMPL_H void close()
close Unloads the plugin and deletes any allocated memory.
void run() override
run is called by the TestCase class if setup is successfull;
LuaPluginLoaderImpl()
LuaPluginLoaderImpl constructor.
static int testCheck(lua_State *L)
static const struct luaL_reg luaPluginLib[]
std::string getFileName()
getFileName returns the loaded script file name
TestCase * open(const std::string filename)
open Loads a test case plugin
static int assertError(lua_State *L)
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 tearDown() override
tearDown is called after the test run
bool registerExtraFunctions(void)
std::string extractFileName(const std::string &path)
std::string getLastError()
getLastError gets the last error if any.
static int testFail(lua_State *L)
static int testReport(lua_State *L)
~LuaPluginLoaderImpl() override
LuaPluginLoaderImpl destructor.
static int getTestEnvironment(lua_State *L)
static int assertFail(lua_State *L)
void setTestName(const std::string name)
setTestName set the test case name
bool getLocalFunction(const char *name)
static int setName(lua_State *L)
bool setup(int argc, char **argv) override
setup is called before the test run.