NDEVR
API Documentation
OpenCloseTest

Provides an AutomatedTest for repeatedly opening and closing a Project. More...

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

Public Member Functions

 OpenCloseTest (WindowManager *manager)
 Constructs a test that repeatedly opens and closes a project.
Public Member Functions inherited from LoopedAutomatedTest
 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.

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.
Protected Attributes inherited from LoopedAutomatedTest
AutomatedTestingDialogm_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.

Detailed Description

Provides an AutomatedTest for repeatedly opening and closing a Project.


Definition at line 83 of file AutomatedTesting.h.

Constructor & Destructor Documentation

◆ OpenCloseTest()

OpenCloseTest::OpenCloseTest ( WindowManager * manager)

Constructs a test that repeatedly opens and closes a project.

Parameters
[in]managerThe window manager providing access to project operations.

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