API Documentation
Loading...
Searching...
No Matches
LoopedAutomatedTest Class Reference

A type of AutomatedTest that repeatedly loops until stopped by the user. More...

#include <AutomatedTesting.h>

Inheritance diagram for LoopedAutomatedTest:
[legend]
Collaboration diagram for LoopedAutomatedTest:
[legend]

Public Member Functions

 LoopedAutomatedTest (const std::function< void(uint04 step_index, AutomatedTestingDialog *dialog)> &test_step)
 
bool performTest (AutomatedTestingDialog *dialog)
 
void stopTest ()
 
uint04 testStepIndex () const
 
- Public Member Functions inherited from AutomatedTest

Protected Attributes

AutomatedTestingDialogm_dialog = nullptr
 
std::function< void(uint04 step_index, AutomatedTestingDialog *dialog)> m_on_test
 
uint04 m_step_index = 0
 
QTimer * m_test_timer
 

Additional Inherited Members

- Public Attributes inherited from AutomatedTest
String icon
 
bool is_looped_test = false
 
TranslatedString name
 
std::function< void()> on_test_completed
 

Detailed Description

A type of AutomatedTest that repeatedly loops until stopped by the user.


Constructor & Destructor Documentation

◆ LoopedAutomatedTest()

LoopedAutomatedTest ( const std::function< void(uint04 step_index, AutomatedTestingDialog *dialog)> & test_step)

Member Function Documentation

◆ performTest()

bool performTest ( AutomatedTestingDialog * dialog)
virtual

Implements AutomatedTest.

◆ stopTest()

void stopTest ( )
virtual

Implements AutomatedTest.

◆ testStepIndex()

uint04 testStepIndex ( ) const
inline

Member Data Documentation

◆ m_dialog

AutomatedTestingDialog* m_dialog = nullptr
protected

◆ m_on_test

std::function<void(uint04 step_index, AutomatedTestingDialog* dialog)> m_on_test
protected

◆ m_step_index

uint04 m_step_index = 0
protected

◆ m_test_timer

QTimer* m_test_timer
protected

The documentation for this class was generated from the following file: