|
SObjectizer
5.5
|
Namespaces | |
| details | |
| impl | |
Classes | |
| class | scenario_proxy_t |
| A special wrapper around scenario object. More... | |
| class | scenario_result_t |
| The result of run of testing scenario. More... | |
| class | step_definition_proxy_t |
| A special object that should be used for definition of a step of a testing scenario. More... | |
| class | testing_env_t |
| A special testing environment that should be used for testing of agents. More... | |
Enumerations | |
| enum | scenario_status_t { scenario_status_t::not_started, scenario_status_t::in_progress, scenario_status_t::completed, scenario_status_t::timed_out } |
| Status of testing scenario. More... | |
Functions | |
| SO_5_NODISCARD scenario_result_t | completed () |
| Create a value that means that scenario completed successfuly. More... | |
| template<typename Msg_Type > | |
| details::trigger_source_t< details::incident_status_t::handled > | reacts_to () |
| Define a trigger that activates when an agent receives and handles a message from the direct mbox. More... | |
| template<typename Msg_Type > | |
| details::trigger_source_t< details::incident_status_t::handled > | reacts_to (const so_5::mbox_t &mbox) |
| Define a trigger that activates when an agent receives and handles a message from the specific mbox. More... | |
| details::store_agent_state_name_t | store_state_name (std::string tag) |
| Create a special marker for a trigger for storing agent's state name inside scenario. More... | |
| template<typename Msg_Type > | |
| details::trigger_source_t< details::incident_status_t::ignored > | ignores () |
| Define a trigger that activates when an agent rejects a message from the direct mbox. More... | |
| template<typename Msg_Type > | |
| details::trigger_source_t< details::incident_status_t::ignored > | ignores (const so_5::mbox_t &mbox) |
| Define a trigger that activates when an agent rejects a message from the direct mbox. More... | |
| details::constraint_unique_ptr_t | not_before (std::chrono::steady_clock::duration pause) |
| Create a constraint not-before. More... | |
| details::constraint_unique_ptr_t | not_after (std::chrono::steady_clock::duration pause) |
| Create a constraint not-after. More... | |
Status of testing scenario.
This enumeration is used by testing scenario itself and by scenario_result_t type.
|
inline |
Create a value that means that scenario completed successfuly.
Usage example:
| details::trigger_source_t< details::incident_status_t::ignored > so_5::experimental::testing::v1::ignores | ( | ) |
Define a trigger that activates when an agent rejects a message from the direct mbox.
Usage example:
| details::trigger_source_t< details::incident_status_t::ignored > so_5::experimental::testing::v1::ignores | ( | const so_5::mbox_t & | mbox | ) |
Define a trigger that activates when an agent rejects a message from the direct mbox.
Usage example:
|
inline |
Create a constraint not-after.
That constraint is fulfilled if an event is happened before a specified pause. Time is calculated from moment of preactivation of a scenario's step.
Usage example:
In that case step won't be activated if agent receives a message after, for example, 55ms.
|
inline |
Create a constraint not-before.
That constraint is fulfilled if an event is happened after a specified pause. Time is calculated from moment of preactivation of a scenario's step.
Usage example:
In that case step won't be activated if agent receives a message after, for example, 15ms.
| details::trigger_source_t< details::incident_status_t::handled > so_5::experimental::testing::v1::reacts_to | ( | ) |
Define a trigger that activates when an agent receives and handles a message from the direct mbox.
Usage example:
| details::trigger_source_t< details::incident_status_t::handled > so_5::experimental::testing::v1::reacts_to | ( | const so_5::mbox_t & | mbox | ) |
Define a trigger that activates when an agent receives and handles a message from the specific mbox.
Usage example:
|
inline |
Create a special marker for a trigger for storing agent's state name inside scenario.
Usage example:
1.8.14