![]() |
NDEVR
API Documentation
|
A type of AutomatedTest that repeatedly loops until stopped by the user. More...
Public Member Functions | |
| LoopedAutomatedTest (const std::function< void(uint04 step_index, AutomatedTestingDialog *dialog)> &test_step) | |
| Constructs a LoopedAutomatedTest with the given step function. | |
| bool | performTest (AutomatedTestingDialog *dialog) |
| Starts the looped test, calling the step function repeatedly on a timer. | |
| void | stopTest () |
| Stops the looped test timer. | |
| uint04 | testStepIndex () const |
| Returns the current step index within the loop. | |
Protected Attributes | |
| AutomatedTestingDialog * | m_dialog = nullptr |
| The testing dialog reference. | |
| std::function< void(uint04 step_index, AutomatedTestingDialog *dialog)> | m_on_test |
| The function executed on each loop step. | |
| uint04 | m_step_index = 0 |
| The current loop iteration index. | |
| QTimer * | m_test_timer |
| The timer driving the loop iterations. | |
Additional Inherited Members | |
| Public Attributes inherited from AutomatedTest | |
| String | icon |
| The icon resource name displayed for this test. | |
| bool | is_looped_test = false |
| Whether this test repeats in a loop until stopped. | |
| TranslatedString | name |
| The user-facing translated name of the test. | |
| std::function< void()> | on_test_completed |
| Callback invoked when the test finishes. | |
A type of AutomatedTest that repeatedly loops until stopped by the user.
Definition at line 37 of file AutomatedTesting.h.
| LoopedAutomatedTest::LoopedAutomatedTest | ( | const std::function< void(uint04 step_index, AutomatedTestingDialog *dialog)> & | test_step | ) |
Constructs a LoopedAutomatedTest with the given step function.
| [in] | test_step | The function called on each loop iteration with the step index and dialog. |
|
virtual |
Starts the looped test, calling the step function repeatedly on a timer.
| [in] | dialog | The testing dialog providing UI feedback and controls. |
Implements AutomatedTest.
|
inline |
Returns the current step index within the loop.
Definition at line 59 of file AutomatedTesting.h.
References m_step_index.