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::VariableLifeCycleTest Class Reference

#include <VariableTests.h>

Inherits ScriptCanvas::Developer::EditorAutomationTest.

Public Member Functions

 VariableLifeCycleTest (AZStd::string name, AZStd::vector< ScriptCanvas::Data::Type > dataTypes, CreateVariableAction::CreationType creationType=CreateVariableAction::CreationType::AutoComplete)
 
void OnTestStarting () override
 
- Public Member Functions inherited from ScriptCanvas::Developer::EditorAutomationTest
 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

int EvaluateTransition (int stateId) override
 
- Protected Member Functions inherited from ScriptCanvas::Developer::EditorAutomationTest
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 ()
 

Additional Inherited Members

- Public Types inherited from ScriptCanvas::Developer::StateModel
typedef AZStd::string DataKey
 
- Protected Attributes inherited from ScriptCanvas::Developer::EditorAutomationTest
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
 

Detailed Description

EditorautomationTest that takes in a set of variable types to create. For each type it will then create the variable, create a get and set node for that variable. Then clean-up the nodes and delete the variable.

Member Function Documentation

◆ EvaluateTransition()

int ScriptCanvas::Developer::VariableLifeCycleTest::EvaluateTransition ( int  stateId)
overrideprotectedvirtual

◆ OnTestStarting()

void ScriptCanvas::Developer::VariableLifeCycleTest::OnTestStarting ( )
overridevirtual

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