Singleton class WebProgressListenerImpl listens to any messages reported by the tests during the test run, formates them sends them to the web clients.
More...
#include <robottestingframework/impl/WebProgressListener_impl.h>
|
| static void | update (void *param) |
| |
| static int | handler (struct mg_connection *conn, enum mg_event ev) |
| |
Singleton class WebProgressListenerImpl listens to any messages reported by the tests during the test run, formates them sends them to the web clients.
Definition at line 41 of file WebProgressListener_impl.h.
◆ TestStatus
◆ ~WebProgressListenerImpl()
| virtual robottestingframework::WebProgressListenerImpl::~WebProgressListenerImpl |
( |
| ) |
|
|
virtual |
◆ WebProgressListenerImpl() [1/2]
◆ WebProgressListenerImpl() [2/2]
| robottestingframework::WebProgressListenerImpl::WebProgressListenerImpl |
( |
unsigned int |
port, |
|
|
bool |
verbose |
|
) |
| |
|
private |
◆ addError()
| virtual void robottestingframework::WebProgressListenerImpl::addError |
( |
const Test * |
test, |
|
|
TestMessage |
msg |
|
) |
| |
|
virtual |
This is called when an error occurred during test run.
- Parameters
-
| test | pointer to the corresponding test |
| msg | correspoinding error message |
◆ addFailure()
| virtual void robottestingframework::WebProgressListenerImpl::addFailure |
( |
const Test * |
test, |
|
|
TestMessage |
msg |
|
) |
| |
|
virtual |
This is called when a failure occurred during test run.
- Parameters
-
| test | pointer to the corresponding test |
| msg | correspoinding failure message |
◆ addReport()
| virtual void robottestingframework::WebProgressListenerImpl::addReport |
( |
const Test * |
test, |
|
|
TestMessage |
msg |
|
) |
| |
|
virtual |
This is called to report any arbitrary message from tests.
- Parameters
-
| test | pointer to the corresponding test |
| msg | correspoinding error message |
◆ create()
| static WebProgressListenerImpl& robottestingframework::WebProgressListenerImpl::create |
( |
unsigned int |
port = 8080, |
|
|
bool |
verbose = false |
|
) |
| |
|
static |
create Creates an instance of WebProgressListenerImpl class
- Parameters
-
| port | the server port number. default is 8080 |
| verbose | enables the verbose mode. If true, the source file and the line number where the messages are issued by the tests will be written to the standard output. The verbose mode is disabled by default. |
◆ encode()
| std::string robottestingframework::WebProgressListenerImpl::encode |
( |
const std::string & |
data | ) |
|
|
private |
◆ endTest()
| virtual void robottestingframework::WebProgressListenerImpl::endTest |
( |
const Test * |
test | ) |
|
|
virtual |
This is called when a Test is finished.
- Parameters
-
| test | pointer to the corresponding test |
◆ endTestRunner()
| virtual void robottestingframework::WebProgressListenerImpl::endTestRunner |
( |
| ) |
|
|
virtual |
◆ endTestSuite()
| virtual void robottestingframework::WebProgressListenerImpl::endTestSuite |
( |
const Test * |
test | ) |
|
|
virtual |
This is called when a TestSuite is finished.
- Parameters
-
| test | pointer to the corresponding test |
◆ handler()
| static int robottestingframework::WebProgressListenerImpl::handler |
( |
struct mg_connection * |
conn, |
|
|
enum mg_event |
ev |
|
) |
| |
|
staticprivate |
◆ operator=()
◆ startTest()
| virtual void robottestingframework::WebProgressListenerImpl::startTest |
( |
const Test * |
test | ) |
|
|
virtual |
This is called when a Test is started.
- Parameters
-
| test | pointer to the corresponding test |
◆ startTestRunner()
| virtual void robottestingframework::WebProgressListenerImpl::startTestRunner |
( |
| ) |
|
|
virtual |
◆ startTestSuite()
| virtual void robottestingframework::WebProgressListenerImpl::startTestSuite |
( |
const Test * |
test | ) |
|
|
virtual |
This is called when a TestSuite is started.
- Parameters
-
| test | pointer to the corresponding test |
◆ update()
| static void robottestingframework::WebProgressListenerImpl::update |
( |
void * |
param | ) |
|
|
staticprivate |
◆ critical
| std::mutex robottestingframework::WebProgressListenerImpl::critical |
◆ port
| unsigned int robottestingframework::WebProgressListenerImpl::port |
|
private |
◆ result
| std::string robottestingframework::WebProgressListenerImpl::result |
◆ server
| struct mg_server* robottestingframework::WebProgressListenerImpl::server |
◆ shouldStop
| bool robottestingframework::WebProgressListenerImpl::shouldStop |
◆ suite_name
| std::string robottestingframework::WebProgressListenerImpl::suite_name |
◆ suite_size
| std::size_t robottestingframework::WebProgressListenerImpl::suite_size |
◆ testStatus
| std::vector<TestStatus> robottestingframework::WebProgressListenerImpl::testStatus |
◆ updater
| std::thread* robottestingframework::WebProgressListenerImpl::updater |
|
private |
◆ verbose
| bool robottestingframework::WebProgressListenerImpl::verbose |
|
private |
The documentation for this class was generated from the following file: