22#ifndef ROBOTTESTINGFRAMEWORK_WEBPROGRESSLISTENER_IMPL_H
23#define ROBOTTESTINGFRAMEWORK_WEBPROGRESSLISTENER_IMPL_H
139 std::string
encode(
const std::string& data);
141 static int handler(
struct mg_connection* conn,
A formated message with details.
The simplest form of a test unit.
Singleton class WebProgressListenerImpl listens to any messages reported by the tests during the test...
static int handler(struct mg_connection *conn, enum mg_event ev)
virtual void endTestSuite(const Test *test)
This is called when a TestSuite is finished.
std::string encode(const std::string &data)
virtual void addError(const Test *test, TestMessage msg)
This is called when an error occurred during test run.
virtual void startTestSuite(const Test *test)
This is called when a TestSuite is started.
struct mg_server * server
void operator=(WebProgressListenerImpl const &)=delete
WebProgressListenerImpl(unsigned int port, bool verbose)
virtual void addFailure(const Test *test, TestMessage msg)
This is called when a failure occurred during test run.
virtual void endTest(const Test *test)
This is called when a Test is finished.
static WebProgressListenerImpl & create(unsigned int port=8080, bool verbose=false)
create Creates an instance of WebProgressListenerImpl class
virtual void addReport(const Test *test, TestMessage msg)
This is called to report any arbitrary message from tests.
WebProgressListenerImpl(WebProgressListenerImpl const &)=delete
virtual void endTestRunner()
This is called when the TestRunner is finished.
virtual ~WebProgressListenerImpl()
WebProgressListenerImpl destructor.
std::vector< TestStatus > testStatus
virtual void startTest(const Test *test)
This is called when a Test is started.
virtual void startTestRunner()
This is called when the TestRunner is started.
static void update(void *param)