Broganab/white box test conversion (#7600)

* LYN-8773 WhiteBox refactor python automation

Signed-off-by: Broganab <broganab@amazon.com>
This commit is contained in:
Andrea
2022-02-18 15:21:55 -06:00
committed by GitHub
parent 445385e146
commit 1f4b62dc72
12 changed files with 17 additions and 563 deletions
@@ -18,21 +18,17 @@ class Tests():
def C28798177_WhiteBox_AddComponentToEntity():
import os
import sys
import WhiteBoxInit as init
import editor_python_test_tools.hydra_editor_utils as hydra
import azlmbr.bus as bus
import azlmbr.editor as editor
import azlmbr.legacy.general as general
from editor_python_test_tools.utils import Report
import WhiteBoxInit as init
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import Report
# open level
helper.init_idle()
helper.open_level("WhiteBox", "EmptyLevel", no_prompt=False)
hydra.open_base_level()
# create white box entity and attach component
white_box_entity = init.create_white_box_entity()
@@ -46,10 +42,6 @@ def C28798177_WhiteBox_AddComponentToEntity():
component_enabled = editor.EditorComponentAPIBus(bus.Broadcast, 'IsComponentEnabled', white_box_mesh_component)
Report.result(Tests.white_box_component_enabled, component_enabled)
# close editor
helper.close_editor()
if __name__ == "__main__":
from editor_python_test_tools.utils import Report
Report.start_test(C28798177_WhiteBox_AddComponentToEntity)