Open 3D Engine ScriptCanvasDeveloper Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ScriptCanvas::Developer::EditorAutomationTest Class Reference

#include <EditorAutomationTest.h>

Inherits AZ::SystemTickBus::Handler, and ScriptCanvas::Developer::StateModel.

Inherited by ScriptCanvas::Developer::AltClickDeleteTest, ScriptCanvas::Developer::CreateCategoryTest, ScriptCanvas::Developer::CreateDragDropExecutionSpliceNodeTest, ScriptCanvas::Developer::CreateExecutionSplicedNodeTest, ScriptCanvas::Developer::CreateFunctionTest, ScriptCanvas::Developer::CreateGraphTest, ScriptCanvas::Developer::CreateGroupTest, ScriptCanvas::Developer::CreateHelloWorldFromContextMenu, ScriptCanvas::Developer::CreateHelloWorldFromPalette, ScriptCanvas::Developer::CreateNodeFromContextMenuTest, ScriptCanvas::Developer::CreateNodeFromPaletteTest, ScriptCanvas::Developer::CutCopyPasteDuplicateTest, ScriptCanvas::Developer::DuplicateVariableNameTest, ScriptCanvas::Developer::GroupManipulationTest, ScriptCanvas::Developer::ManuallyCreateVariableTest, ScriptCanvas::Developer::ModifyNumericInputTest, ScriptCanvas::Developer::ModifyStringInputTest, ScriptCanvas::Developer::OpenMenuTest, ScriptCanvas::Developer::RapidVariableCreationDeletionTest, ScriptCanvas::Developer::ToggleBoolInputTest, ScriptCanvas::Developer::VariableLifeCycleTest, and ScriptCanvas::Developer::WriteTextToInput.

Public Member Functions

 AZ_CLASS_ALLOCATOR (EditorAutomationTest, AZ::SystemAllocator)
 
 AZ_RTTI (EditorAutomationTest, "{C46081C5-E7E9-47C7-96D4-29E7D1C4D403}")
 
void StartTest ()
 
void OnSystemTick ()
 
void AddState (EditorAutomationState *newState)
 
void SetHasCustomTransitions (bool hasCustomTransition)
 
template<typename IdClass >
void SetInitialStateId ()
 
virtual void OnTestStarting ()
 
virtual void OnStateComplete (int)
 
virtual void OnTestComplete ()
 
bool HasRun () const
 
bool IsRunning () const
 
void SetTestName (QString testName)
 
QString GetTestName ()
 
bool HasErrors () const
 
AZStd::vector< AZStd::string > GetErrors () const
 
- Public Member Functions inherited from ScriptCanvas::Developer::StateModel
const AZStd::any * FindStateData (const DataKey &dataId) const
 
template<typename T >
const T * GetStateDataAs (const DataKey &dataId) const
 
template<typename T >
void SetStateData (const DataKey &dataId, const T &data)
 

Protected Member Functions

bool SetupState (int stateId)
 
int FindNextState (int stateId)
 
virtual int EvaluateTransition (int)
 
 EditorAutomationTest (QString testName)
 
void AddError (AZStd::string error)
 
- Protected Member Functions inherited from ScriptCanvas::Developer::StateModel
void ClearModelData ()
 

Protected Attributes

EditorAutomationActionRunner m_actionRunner
 
AZStd::vector< AZStd::string > m_testErrors
 
bool m_hasCustomTransitions = false
 
AZStd::vector< int > m_registrationOrder
 
AZStd::unordered_map< int, EditorAutomationState * > m_states
 

Additional Inherited Members

- Public Types inherited from ScriptCanvas::Developer::StateModel
typedef AZStd::string DataKey
 

Detailed Description

Generic test base class that will handle incrementing test steps, running the action runner, and interface with the test dialog to report back errors.


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