NDEVR
API Documentation
NewProjectTest

Provides an AutomatedTest for repeatedly creating and destroying Projects. More...

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

Public Member Functions

 NewProjectTest (WindowManager *manager)
 Constructs a test that repeatedly creates and destroys projects.
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 creating and destroying Projects.


Definition at line 70 of file AutomatedTesting.h.

Constructor & Destructor Documentation

◆ NewProjectTest()

NewProjectTest::NewProjectTest ( WindowManager * manager)

Constructs a test that repeatedly creates and destroys projects.

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

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