Common implementation of generated states.
More...
#include <stategenerated.h>
Common implementation of generated states.
Definition at line 35 of file stategenerated.h.
◆ StateGenerated() [1/2]
◆ StateGenerated() [2/2]
OTest2::StateGenerated::StateGenerated |
( |
const Context & |
context_, |
|
|
const std::string & |
name_, |
|
|
const std::string & |
section_path_ |
|
) |
| |
|
explicit |
Ctor.
- Parameters
-
context_ | OTest2 context |
name_ | Name of the state |
section_path_ | Path of active section. Empty string means all sections are active. |
Definition at line 76 of file stategenerated.cpp.
◆ ~StateGenerated()
OTest2::StateGenerated::~StateGenerated |
( |
| ) |
|
|
virtual |
◆ executeState()
◆ getName()
std::string OTest2::StateGenerated::getName |
( |
| ) |
const |
|
virtual |
◆ isTestSectionActive()
bool OTest2::StateGenerated::isTestSectionActive |
( |
const Context & |
context_, |
|
|
const std::string & |
section_path_ |
|
) |
| |
|
protected |
Check whether a test section is active.
- Parameters
-
context_ | The OTest2 context |
section_path_ | Absolute section path based on the test case |
- Returns
- True if the section is active
Definition at line 120 of file stategenerated.cpp.
◆ operator=()
◆ otest2Context()
const Context & OTest2::StateGenerated::otest2Context |
( |
| ) |
const |
|
virtual |
◆ switchState()
void OTest2::StateGenerated::switchState |
( |
const Context & |
context_, |
|
|
const std::string & |
name_, |
|
|
int |
delay_ |
|
) |
| |
|
protected |
Switch test states.
The method sets specified state to be run after leaving of current state.
- Parameters
-
context_ | The OTest2 context |
name_ | Name of the next state |
delay_ | Delay of running of the next state in milliseconds |
Definition at line 109 of file stategenerated.cpp.
The documentation for this class was generated from the following files: