Scenario object of a test case.
More...
#include <scenariocase.h>
Scenario object of a test case.
Definition at line 34 of file scenariocase.h.
◆ ScenarioCase() [1/3]
Ctor.
- Parameters
-
name_ | Name of the test case |
tags_ | Tags assigned to the object |
repeater_factory | A factory of repeater objects of the test case |
Definition at line 121 of file scenariocase.cpp.
◆ ScenarioCase() [2/3]
OTest2::ScenarioCase::ScenarioCase |
( |
const std::string & |
name_, |
|
|
const std::string & |
section_path_, |
|
|
const Tags & |
tags_, |
|
|
ObjectRepeaterFactoryPtr |
repeater_factory_ |
|
) |
| |
|
explicit |
Ctor - instance with active test section.
- Parameters
-
name_ | Name of the test case |
section_path_ | Path of the active section (relative to the case) |
tags_ | Tags assigned to the object |
repeater_factory | A factory of repeater objects of the test case |
Definition at line 129 of file scenariocase.cpp.
◆ ~ScenarioCase()
OTest2::ScenarioCase::~ScenarioCase |
( |
| ) |
|
|
virtual |
◆ ScenarioCase() [3/3]
◆ createBuilder()
◆ createRepeater()
Create repeater object for testing object represented by this scenario object.
- Parameters
-
[in] | context_ | The OTest2 context |
[out] | object_name_ | Name of the testing object |
- Returns
- The name of the testing object and its repeater
Implements OTest2::Scenario.
Definition at line 177 of file scenariocase.cpp.
◆ enterObject()
void OTest2::ScenarioCase::enterObject |
( |
const Context & |
context_ | ) |
const |
|
overridevirtualnoexcept |
Enter the testing object.
This method is responsible for report of entering of the testing object. It may modify object's parameters and it must report the object into the reporter.
As constructor methods may throw an exception causing failure of the test, we report the entering into the object before actual creation of the object.
- Parameters
-
context_ | The OTest2 context. Current object path is ready. |
Implements OTest2::Scenario.
Definition at line 182 of file scenariocase.cpp.
◆ filterScenario()
Filter the scenario.
This method filters the scenario object. Objects which don't match the filters are removed.
- Parameters
-
tags_ | Stack of object names and tags |
parent_ | Parent container |
filter_ | Used filter |
- Returns
- The parent_ object if it's not null. Otherwise the new container object.
Implements OTest2::Scenario.
Definition at line 149 of file scenariocase.cpp.
◆ getChildren()
◆ leaveObject()
void OTest2::ScenarioCase::leaveObject |
( |
const Context & |
context_ | ) |
const |
|
overridevirtualnoexcept |
◆ operator=()
◆ ScenarioCaseBuilder
The documentation for this class was generated from the following files: