diff --git a/AutomatedTesting/Gem/PythonTests/EditorPythonTestTools/editor_python_test_tools/asset_utils.py b/AutomatedTesting/Gem/PythonTests/EditorPythonTestTools/editor_python_test_tools/asset_utils.py new file mode 100644 index 0000000000..ece7670a9e --- /dev/null +++ b/AutomatedTesting/Gem/PythonTests/EditorPythonTestTools/editor_python_test_tools/asset_utils.py @@ -0,0 +1,47 @@ +""" +Copyright (c) Contributors to the Open 3D Engine Project. +For complete copyright and license terms please see the LICENSE at the root of this distribution. + +SPDX-License-Identifier: Apache-2.0 OR MIT +""" + +# Built-in Imports +from __future__ import annotations + +# Open 3D Engine Imports +import azlmbr.bus as bus +import azlmbr.asset as azasset +import azlmbr.math as math + + +class Asset: + """ + Used to find Asset Id by its path and path of asset by its Id + If a component has any asset property, then this class object can be called as: + asset_id = editor_python_test_tools.editor_entity_utils.EditorComponent.get_component_property_value() + asset = asset_utils.Asset(asset_id) + """ + def __init__(self, id: azasset.AssetId): + self.id: azasset.AssetId = id + + # Creation functions + @classmethod + def find_asset_by_path(cls, path: str, RegisterType: bool = False) -> Asset: + """ + :param path: Absolute file path of the asset + :param RegisterType: Whether to register the asset if it's not in the database, + default to false for the general case + :return: Asset object associated with file path + """ + asset_id = azasset.AssetCatalogRequestBus(bus.Broadcast, "GetAssetIdByPath", path, math.Uuid(), RegisterType) + assert asset_id.is_valid(), f"Couldn't find Asset with path: {path}" + asset = cls(asset_id) + return asset + + # Methods + def get_path(self) -> str: + """ + :return: Absolute file path of Asset + """ + assert self.id.is_valid(), "Invalid Asset Id" + return azasset.AssetCatalogRequestBus(bus.Broadcast, "GetAssetPathById", self.id) diff --git a/AutomatedTesting/Gem/PythonTests/physics/ImportPathHelper.py b/AutomatedTesting/Gem/PythonTests/physics/ImportPathHelper.py deleted file mode 100755 index 0e395664ad..0000000000 --- a/AutomatedTesting/Gem/PythonTests/physics/ImportPathHelper.py +++ /dev/null @@ -1,11 +0,0 @@ -""" -Copyright (c) Contributors to the Open 3D Engine Project. -For complete copyright and license terms please see the LICENSE at the root of this distribution. - -SPDX-License-Identifier: Apache-2.0 OR MIT -""" - -def init(): - import os - import sys - sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../automatedtesting_shared') diff --git a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_InDevelopment.py b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_InDevelopment.py index 2c5cca4f24..dad37297cc 100755 --- a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_InDevelopment.py +++ b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_InDevelopment.py @@ -13,25 +13,25 @@ import pytest import os import sys -from .FileManagement import FileManagement as fm +from .utils.FileManagement import FileManagement as fm sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../automatedtesting_shared') -@pytest.mark.parametrize("spec", ["all"]) +from base import TestAutomationBase + @pytest.mark.parametrize("project", ["AutomatedTesting"]) -@pytest.mark.system class TestAutomation(TestAutomationBase): @fm.file_revert("ragdollbones.physmaterial", r"AutomatedTesting\Levels\Physics\C4925582_Material_AddModifyDeleteOnRagdollBones") def test_C4925582_Material_AddModifyDeleteOnRagdollBones(self, request, workspace, editor): - from . import C4925582_Material_AddModifyDeleteOnRagdollBones as test_module + from .material import C4925582_Material_AddModifyDeleteOnRagdollBones as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C4925580_Material_RagdollBonesMaterial(self, request, workspace, editor): - from . import C4925580_Material_RagdollBonesMaterial as test_module + from .material import C4925580_Material_RagdollBonesMaterial as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -40,7 +40,7 @@ class TestAutomation(TestAutomationBase): @fm.file_revert("c15308221_material_componentsinsyncwithlibrary.physmaterial", r"AutomatedTesting\Levels\Physics\C15308221_Material_ComponentsInSyncWithLibrary") def test_C15308221_Material_ComponentsInSyncWithLibrary(self, request, workspace, editor): - from . import C15308221_Material_ComponentsInSyncWithLibrary as test_module + from .material import C15308221_Material_ComponentsInSyncWithLibrary as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -48,7 +48,7 @@ class TestAutomation(TestAutomationBase): # BUG: LY-107723") def test_C14976308_ScriptCanvas_SetKinematicTargetTransform(self, request, workspace, editor): - from . import C14976308_ScriptCanvas_SetKinematicTargetTransform as test_module + from .script_canvas import C14976308_ScriptCanvas_SetKinematicTargetTransform as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -58,7 +58,7 @@ class TestAutomation(TestAutomationBase): @fm.file_revert("c4925579_material_addmodifydeleteonterrain.physmaterial", r"AutomatedTesting\Levels\Physics\C4925579_Material_AddModifyDeleteOnTerrain") def test_C4925579_Material_AddModifyDeleteOnTerrain(self, request, workspace, editor): - from . import C4925579_Material_AddModifyDeleteOnTerrain as test_module + from .material import C4925579_Material_AddModifyDeleteOnTerrain as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -66,7 +66,7 @@ class TestAutomation(TestAutomationBase): # Failing, PhysXTerrain def test_C13508019_Terrain_TerrainTexturePainterWorks(self, request, workspace, editor): - from . import C13508019_Terrain_TerrainTexturePainterWorks as test_module + from .terrain import C13508019_Terrain_TerrainTexturePainterWorks as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -74,7 +74,7 @@ class TestAutomation(TestAutomationBase): # Failing, PhysXTerrain def test_C4925577_Materials_MaterialAssignedToTerrain(self, request, workspace, editor): - from . import C4925577_Materials_MaterialAssignedToTerrain as test_module + from .material import C4925577_Materials_MaterialAssignedToTerrain as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -82,7 +82,7 @@ class TestAutomation(TestAutomationBase): # Failing, PhysXTerrain def test_C15096735_Materials_DefaultLibraryConsistency(self, request, workspace, editor): - from . import C15096735_Materials_DefaultLibraryConsistency as test_module + from .material import C15096735_Materials_DefaultLibraryConsistency as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -92,13 +92,13 @@ class TestAutomation(TestAutomationBase): @fm.file_revert("all_ones_1.physmaterial", r"AutomatedTesting\Levels\Physics\C15096737_Materials_DefaultMaterialLibraryChanges") @fm.file_override("default.physxconfiguration", "C15096737_Materials_DefaultMaterialLibraryChanges.physxconfiguration", "AutomatedTesting") def test_C15096737_Materials_DefaultMaterialLibraryChanges(self, request, workspace, editor): - from . import C15096737_Materials_DefaultMaterialLibraryChanges as test_module + from .material import C15096737_Materials_DefaultMaterialLibraryChanges as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C4976242_Collision_SameCollisionlayerSameCollisiongroup(self, request, workspace, editor): - from . import C4976242_Collision_SameCollisionlayerSameCollisiongroup as test_module + from .collider import C4976242_Collision_SameCollisionlayerSameCollisiongroup as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -109,7 +109,7 @@ class TestAutomation(TestAutomationBase): "Material_DefaultLibraryUpdatedAcrossLevels_before.physxconfiguration", "AutomatedTesting", search_subdirs=True) def test_levels_before(self, request, workspace, editor): - from . import C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before as test_module_0 + from .material import C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before as test_module_0 expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module_0, expected_lines, unexpected_lines) @@ -119,7 +119,7 @@ class TestAutomation(TestAutomationBase): "Material_DefaultLibraryUpdatedAcrossLevels_after.physxconfiguration", "AutomatedTesting", search_subdirs=True) def test_levels_after(self, request, workspace, editor): - from . import C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after as test_module_1 + from .material import C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after as test_module_1 expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module_1, expected_lines, unexpected_lines) @@ -128,7 +128,7 @@ class TestAutomation(TestAutomationBase): test_levels_after(self, request, workspace, editor) def test_C14654882_Ragdoll_ragdollAPTest(self, request, workspace, editor): - from . import C14654882_Ragdoll_ragdollAPTest as test_module + from .ragdoll import C14654882_Ragdoll_ragdollAPTest as test_module expected_lines = [] unexpected_lines = test_module.UnexpectedLines.lines @@ -136,14 +136,14 @@ class TestAutomation(TestAutomationBase): @fm.file_override("default.physxconfiguration", "C12712454_ScriptCanvas_OverlapNodeVerification.physxconfiguration") def test_C12712454_ScriptCanvas_OverlapNodeVerification(self, request, workspace, editor): - from . import C12712454_ScriptCanvas_OverlapNodeVerification as test_module + from .script_canvas import C12712454_ScriptCanvas_OverlapNodeVerification as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C4044460_Material_StaticFriction(self, request, workspace, editor): - from . import C4044460_Material_StaticFriction as test_module + from .material import C4044460_Material_StaticFriction as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -154,7 +154,7 @@ class TestAutomation(TestAutomationBase): @fm.file_revert("c4888315_material_addmodifydeleteoncollider.physmaterial", r"AutomatedTesting\Levels\Physics\C4888315_Material_AddModifyDeleteOnCollider") def test_C4888315_Material_AddModifyDeleteOnCollider(self, request, workspace, editor): - from . import C4888315_Material_AddModifyDeleteOnCollider as test_module + from .material import C4888315_Material_AddModifyDeleteOnCollider as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -164,7 +164,7 @@ class TestAutomation(TestAutomationBase): @fm.file_revert("c15563573_material_addmodifydeleteoncharactercontroller.physmaterial", r"AutomatedTesting\Levels\Physics\C15563573_Material_AddModifyDeleteOnCharacterController") def test_C15563573_Material_AddModifyDeleteOnCharacterController(self, request, workspace, editor): - from . import C15563573_Material_AddModifyDeleteOnCharacterController as test_module + from .material import C15563573_Material_AddModifyDeleteOnCharacterController as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -173,7 +173,7 @@ class TestAutomation(TestAutomationBase): @fm.file_revert("c4888315_material_addmodifydeleteoncollider.physmaterial", r"AutomatedTesting\Levels\Physics\C4888315_Material_AddModifyDeleteOnCollider") def test_C4888315_Material_AddModifyDeleteOnCollider(self, request, workspace, editor): - from . import C4888315_Material_AddModifyDeleteOnCollider as test_module + from .material import C4888315_Material_AddModifyDeleteOnCollider as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -185,7 +185,7 @@ class TestAutomation(TestAutomationBase): @fm.file_revert("c15563573_material_addmodifydeleteoncharactercontroller.physmaterial", r"AutomatedTesting\Levels\Physics\C15563573_Material_AddModifyDeleteOnCharacterController") def test_C15563573_Material_AddModifyDeleteOnCharacterController(self, request, workspace, editor): - from . import C15563573_Material_AddModifyDeleteOnCharacterController as test_module + from .material import C15563573_Material_AddModifyDeleteOnCharacterController as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -194,7 +194,7 @@ class TestAutomation(TestAutomationBase): @fm.file_revert("c4044455_material_librarychangesinstantly.physmaterial", r"AutomatedTesting\Levels\Physics\C4044455_Material_LibraryChangesInstantly") def test_C4044455_Material_libraryChangesInstantly(self, request, workspace, editor): - from . import C4044455_Material_libraryChangesInstantly as test_module + from .material import C4044455_Material_libraryChangesInstantly as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -204,103 +204,103 @@ class TestAutomation(TestAutomationBase): @fm.file_revert("C15425935_Material_LibraryUpdatedAcrossLevels.physmaterial", r"AutomatedTesting\Levels\Physics\C15425935_Material_LibraryUpdatedAcrossLevels") def test_C15425935_Material_LibraryUpdatedAcrossLevels(self, request, workspace, editor): - from . import C15425935_Material_LibraryUpdatedAcrossLevels as test_module + from .material import C15425935_Material_LibraryUpdatedAcrossLevels as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C4976199_RigidBodies_LinearDampingObjectMotion(self, request, workspace, editor): - from . import C4976199_RigidBodies_LinearDampingObjectMotion as test_module + from .rigid_body import C4976199_RigidBodies_LinearDampingObjectMotion as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C5689518_PhysXTerrain_CollidesWithPhysXTerrain(self, request, workspace, editor): - from . import C5689518_PhysXTerrain_CollidesWithPhysXTerrain as test_module + from .terrain import C5689518_PhysXTerrain_CollidesWithPhysXTerrain as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain(self, request, workspace, editor): - from . import C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain as test_module + from .collider import C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C29032500_EditorComponents_WorldBodyBusWorks(self, request, workspace, editor): - from . import C29032500_EditorComponents_WorldBodyBusWorks as test_module + from .general import C29032500_EditorComponents_WorldBodyBusWorks as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C14861498_ConfirmError_NoPxMesh(self, request, workspace, editor, launcher_platform): - from . import C14861498_ConfirmError_NoPxMesh as test_module + from .collider import C14861498_ConfirmError_NoPxMesh as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C5959763_ForceRegion_ForceRegionImpulsesCube(self, request, workspace, editor, launcher_platform): - from . import C5959763_ForceRegion_ForceRegionImpulsesCube as test_module + from .force_region import C5959763_ForceRegion_ForceRegionImpulsesCube as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C5689531_Warning_TerrainSliceTerrainComponent(self, request, workspace, editor, launcher_platform): - from . import C5689531_Warning_TerrainSliceTerrainComponent as test_module + from .terrain import C5689531_Warning_TerrainSliceTerrainComponent as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C5689522_Physxterrain_AddPhysxterrainNoEditorCrash(self, request, workspace, editor, launcher_platform): - from . import C5689522_Physxterrain_AddPhysxterrainNoEditorCrash as test_module + from .terrain import C5689522_Physxterrain_AddPhysxterrainNoEditorCrash as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C5689524_MultipleTerrains_CheckWarningInConsole(self, request, workspace, editor, launcher_platform): - from . import C5689524_MultipleTerrains_CheckWarningInConsole as test_module + from .terrain import C5689524_MultipleTerrains_CheckWarningInConsole as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C5689528_Terrain_MultipleTerrainComponents(self, request, workspace, editor, launcher_platform): - from . import C5689528_Terrain_MultipleTerrainComponents as test_module + from .terrain import C5689528_Terrain_MultipleTerrainComponents as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C5689528_Terrain_MultipleTerrainComponents(self, request, workspace, editor, launcher_platform): - from . import C5689528_Terrain_MultipleTerrainComponents as test_module + from .terrain import C5689528_Terrain_MultipleTerrainComponents as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C6321601_Force_HighValuesDirectionAxes(self, request, workspace, editor, launcher_platform): - from . import C6321601_Force_HighValuesDirectionAxes as test_module + from .force_region import C6321601_Force_HighValuesDirectionAxes as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C6032082_Terrain_MultipleResolutionsValid(self, request, workspace, editor, launcher_platform): - from . import C6032082_Terrain_MultipleResolutionsValid as test_module + from .terrain import C6032082_Terrain_MultipleResolutionsValid as test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, test_module, expected_lines, unexpected_lines) def test_C12905527_ForceRegion_MagnitudeDeviation(self, request, workspace, editor, launcher_platform): - from . import C12905527_ForceRegion_MagnitudeDeviation as test_module + from .force_region import C12905527_ForceRegion_MagnitudeDeviation as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -308,7 +308,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243580_Joints_Fixed2BodiesConstrained(self, request, workspace, editor, launcher_platform): - from . import C18243580_Joints_Fixed2BodiesConstrained as test_module + from .joints import C18243580_Joints_Fixed2BodiesConstrained as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -316,7 +316,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243583_Joints_Hinge2BodiesConstrained(self, request, workspace, editor, launcher_platform): - from . import C18243583_Joints_Hinge2BodiesConstrained as test_module + from .joints import C18243583_Joints_Hinge2BodiesConstrained as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -324,7 +324,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243588_Joints_Ball2BodiesConstrained(self, request, workspace, editor, launcher_platform): - from . import C18243588_Joints_Ball2BodiesConstrained as test_module + from .joints import C18243588_Joints_Ball2BodiesConstrained as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -332,7 +332,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243581_Joints_FixedBreakable(self, request, workspace, editor, launcher_platform): - from . import C18243581_Joints_FixedBreakable as test_module + from .joints import C18243581_Joints_FixedBreakable as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -340,7 +340,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243587_Joints_HingeBreakable(self, request, workspace, editor, launcher_platform): - from . import C18243587_Joints_HingeBreakable as test_module + from .joints import C18243587_Joints_HingeBreakable as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -348,7 +348,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243592_Joints_BallBreakable(self, request, workspace, editor, launcher_platform): - from . import C18243592_Joints_BallBreakable as test_module + from .joints import C18243592_Joints_BallBreakable as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -356,7 +356,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243585_Joints_HingeNoLimitsConstrained(self, request, workspace, editor, launcher_platform): - from . import C18243585_Joints_HingeNoLimitsConstrained as test_module + from .joints import C18243585_Joints_HingeNoLimitsConstrained as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -364,7 +364,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243590_Joints_BallNoLimitsConstrained(self, request, workspace, editor, launcher_platform): - from . import C18243590_Joints_BallNoLimitsConstrained as test_module + from .joints import C18243590_Joints_BallNoLimitsConstrained as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -372,7 +372,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243582_Joints_FixedLeadFollowerCollide(self, request, workspace, editor, launcher_platform): - from . import C18243582_Joints_FixedLeadFollowerCollide as test_module + from .joints import C18243582_Joints_FixedLeadFollowerCollide as test_module expected_lines = [] unexpected_lines = ["Assert"] @@ -380,7 +380,7 @@ class TestAutomation(TestAutomationBase): # Removed from active suite to meet 60 minutes limit in AR job def test_C18243593_Joints_GlobalFrameConstrained(self, request, workspace, editor, launcher_platform): - from . import C18243593_Joints_GlobalFrameConstrained as test_module + from .joints import C18243593_Joints_GlobalFrameConstrained as test_module expected_lines = [] unexpected_lines = ["Assert"] diff --git a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Main.py b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Main.py index bda4dae82b..de4828e36a 100644 --- a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Main.py +++ b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Main.py @@ -12,7 +12,7 @@ import pytest import os import sys -from .FileManagement import FileManagement as fm +from .utils.FileManagement import FileManagement as fm from ly_test_tools import LAUNCHERS sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../automatedtesting_shared') @@ -29,58 +29,58 @@ revert_physics_config = fm.file_revert_list(['physxdebugconfiguration.setreg', ' class TestAutomation(TestAutomationBase): def test_C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC(self, request, workspace, editor, launcher_platform): - from . import C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC as test_module + from .collider import C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies(self, request, workspace, editor, launcher_platform): - from . import C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies as test_module + from .force_region import C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C4044459_Material_DynamicFriction.setreg_override', 'AutomatedTesting/Registry') def test_C4044459_Material_DynamicFriction(self, request, workspace, editor, launcher_platform): - from . import C4044459_Material_DynamicFriction as test_module + from .material import C4044459_Material_DynamicFriction as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976243_Collision_SameCollisionGroupDiffCollisionLayers(self, request, workspace, editor, launcher_platform): - from . import C4976243_Collision_SameCollisionGroupDiffCollisionLayers as test_module + from .collider import C4976243_Collision_SameCollisionGroupDiffCollisionLayers as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C14654881_CharacterController_SwitchLevels(self, request, workspace, editor, launcher_platform): - from . import C14654881_CharacterController_SwitchLevels as test_module + from .character_controller import C14654881_CharacterController_SwitchLevels as test_module self._run_test(request, workspace, editor, test_module) def test_C17411467_AddPhysxRagdollComponent(self, request, workspace, editor, launcher_platform): - from . import C17411467_AddPhysxRagdollComponent as test_module + from .ragdoll import C17411467_AddPhysxRagdollComponent as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C12712453_ScriptCanvas_MultipleRaycastNode(self, request, workspace, editor, launcher_platform): - from . import C12712453_ScriptCanvas_MultipleRaycastNode as test_module + from .script_canvas import C12712453_ScriptCanvas_MultipleRaycastNode as test_module # Fixme: unexpected_lines = ["Assert"] + test_module.Lines.unexpected self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C4982593_PhysXCollider_CollisionLayer.setreg_override', 'AutomatedTesting/Registry') def test_C4982593_PhysXCollider_CollisionLayerTest(self, request, workspace, editor, launcher_platform): - from . import C4982593_PhysXCollider_CollisionLayerTest as test_module + from .collider import C4982593_PhysXCollider_CollisionLayerTest as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C18243586_Joints_HingeLeadFollowerCollide(self, request, workspace, editor, launcher_platform): - from . import C18243586_Joints_HingeLeadFollowerCollide as test_module + from .joints import C18243586_Joints_HingeLeadFollowerCollide as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4982803_Enable_PxMesh_Option(self, request, workspace, editor, launcher_platform): - from . import C4982803_Enable_PxMesh_Option as test_module + from .collider import C4982803_Enable_PxMesh_Option as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain(self, request, workspace, editor, launcher_platform): - from . import C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain as test_module - self._run_test(request, workspace, editor, test_module) \ No newline at end of file + from .collider import C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain as test_module + self._run_test(request, workspace, editor, test_module) diff --git a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Main_Optimized.py b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Main_Optimized.py index 75e226fba1..ce68bb10b5 100644 --- a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Main_Optimized.py +++ b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Main_Optimized.py @@ -12,7 +12,7 @@ import inspect from ly_test_tools import LAUNCHERS from ly_test_tools.o3de.editor_test import EditorSingleTest, EditorSharedTest, EditorParallelTest, EditorTestSuite -from .FileManagement import FileManagement as fm +from .utils.FileManagement import FileManagement as fm # Custom test spec, it provides functionality to override files class EditorSingleTest_WithFileOverrides(EditorSingleTest): @@ -54,7 +54,6 @@ class EditorSingleTest_WithFileOverrides(EditorSingleTest): fm._restore_file(f, file_list[f]) -@pytest.mark.xfail(reason="Optimized tests are experimental, we will enable xfail and monitor them temporarly.") @pytest.mark.SUITE_main @pytest.mark.parametrize("launcher_platform", ['windows_editor']) @pytest.mark.parametrize("project", ["AutomatedTesting"]) @@ -67,14 +66,14 @@ class TestAutomation(EditorTestSuite): ######################################### # Non-atomic tests: These need to be run in a single editor because they have custom setup and teardown class C4044459_Material_DynamicFriction(EditorSingleTest_WithFileOverrides): - from . import C4044459_Material_DynamicFriction as test_module + from .material import C4044459_Material_DynamicFriction as test_module files_to_override = [ ('physxsystemconfiguration.setreg', 'C4044459_Material_DynamicFriction.setreg_override') ] base_dir = "AutomatedTesting/Registry" class C4982593_PhysXCollider_CollisionLayerTest(EditorSingleTest_WithFileOverrides): - from . import C4982593_PhysXCollider_CollisionLayerTest as test_module + from .collider import C4982593_PhysXCollider_CollisionLayerTest as test_module files_to_override = [ ('physxsystemconfiguration.setreg', 'C4982593_PhysXCollider_CollisionLayer.setreg_override') ] @@ -82,268 +81,268 @@ class TestAutomation(EditorTestSuite): ######################################### class C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC(EditorSharedTest): - from . import C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC as test_module + from .collider import C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC as test_module class C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies(EditorSharedTest): - from . import C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies as test_module + from .force_region import C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies as test_module class C15425929_Undo_Redo(EditorSharedTest): - from . import C15425929_Undo_Redo as test_module + from .general import C15425929_Undo_Redo as test_module class C4976243_Collision_SameCollisionGroupDiffCollisionLayers(EditorSharedTest): - from . import C4976243_Collision_SameCollisionGroupDiffCollisionLayers as test_module + from .collider import C4976243_Collision_SameCollisionGroupDiffCollisionLayers as test_module class C14654881_CharacterController_SwitchLevels(EditorSharedTest): - from . import C14654881_CharacterController_SwitchLevels as test_module + from .character_controller import C14654881_CharacterController_SwitchLevels as test_module class C17411467_AddPhysxRagdollComponent(EditorSharedTest): - from . import C17411467_AddPhysxRagdollComponent as test_module + from .ragdoll import C17411467_AddPhysxRagdollComponent as test_module class C12712453_ScriptCanvas_MultipleRaycastNode(EditorSharedTest): - from . import C12712453_ScriptCanvas_MultipleRaycastNode as test_module + from .script_canvas import C12712453_ScriptCanvas_MultipleRaycastNode as test_module class C18243586_Joints_HingeLeadFollowerCollide(EditorSharedTest): - from . import C18243586_Joints_HingeLeadFollowerCollide as test_module + from .joints import C18243586_Joints_HingeLeadFollowerCollide as test_module class C4982803_Enable_PxMesh_Option(EditorSharedTest): - from . import C4982803_Enable_PxMesh_Option as test_module + from .collider import C4982803_Enable_PxMesh_Option as test_module class C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain(EditorSharedTest): - from . import C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain as test_module + from .collider import C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain as test_module class C3510642_Terrain_NotCollideWithTerrain(EditorSharedTest): - from . import C3510642_Terrain_NotCollideWithTerrain as test_module + from .terrain import C3510642_Terrain_NotCollideWithTerrain as test_module class C4976195_RigidBodies_InitialLinearVelocity(EditorSharedTest): - from . import C4976195_RigidBodies_InitialLinearVelocity as test_module + from .rigid_body import C4976195_RigidBodies_InitialLinearVelocity as test_module class C4976206_RigidBodies_GravityEnabledActive(EditorSharedTest): - from . import C4976206_RigidBodies_GravityEnabledActive as test_module + from .rigid_body import C4976206_RigidBodies_GravityEnabledActive as test_module class C4976207_PhysXRigidBodies_KinematicBehavior(EditorSharedTest): - from . import C4976207_PhysXRigidBodies_KinematicBehavior as test_module + from .rigid_body import C4976207_PhysXRigidBodies_KinematicBehavior as test_module class C5932042_PhysXForceRegion_LinearDamping(EditorSharedTest): - from . import C5932042_PhysXForceRegion_LinearDamping as test_module + from .force_region import C5932042_PhysXForceRegion_LinearDamping as test_module class C5932043_ForceRegion_SimpleDragOnRigidBodies(EditorSharedTest): - from . import C5932043_ForceRegion_SimpleDragOnRigidBodies as test_module + from .force_region import C5932043_ForceRegion_SimpleDragOnRigidBodies as test_module class C5959760_PhysXForceRegion_PointForceExertion(EditorSharedTest): - from . import C5959760_PhysXForceRegion_PointForceExertion as test_module + from .force_region import C5959760_PhysXForceRegion_PointForceExertion as test_module class C5959764_ForceRegion_ForceRegionImpulsesCapsule(EditorSharedTest): - from . import C5959764_ForceRegion_ForceRegionImpulsesCapsule as test_module + from .force_region import C5959764_ForceRegion_ForceRegionImpulsesCapsule as test_module class C5340400_RigidBody_ManualMomentOfInertia(EditorSharedTest): - from . import C5340400_RigidBody_ManualMomentOfInertia as test_module + from .rigid_body import C5340400_RigidBody_ManualMomentOfInertia as test_module class C4976210_COM_ManualSetting(EditorSharedTest): - from . import C4976210_COM_ManualSetting as test_module + from .rigid_body import C4976210_COM_ManualSetting as test_module class C4976194_RigidBody_PhysXComponentIsValid(EditorSharedTest): - from . import C4976194_RigidBody_PhysXComponentIsValid as test_module + from .rigid_body import C4976194_RigidBody_PhysXComponentIsValid as test_module class C5932045_ForceRegion_Spline(EditorSharedTest): - from . import C5932045_ForceRegion_Spline as test_module + from .force_region import C5932045_ForceRegion_Spline as test_module class C4982797_Collider_ColliderOffset(EditorSharedTest): - from . import C4982797_Collider_ColliderOffset as test_module + from .collider import C4982797_Collider_ColliderOffset as test_module class C4976200_RigidBody_AngularDampingObjectRotation(EditorSharedTest): - from . import C4976200_RigidBody_AngularDampingObjectRotation as test_module + from .rigid_body import C4976200_RigidBody_AngularDampingObjectRotation as test_module class C5689529_Verify_Terrain_RigidBody_Collider_Mesh(EditorSharedTest): - from . import C5689529_Verify_Terrain_RigidBody_Collider_Mesh as test_module + from .general import C5689529_Verify_Terrain_RigidBody_Collider_Mesh as test_module class C5959810_ForceRegion_ForceRegionCombinesForces(EditorSharedTest): - from . import C5959810_ForceRegion_ForceRegionCombinesForces as test_module + from .force_region import C5959810_ForceRegion_ForceRegionCombinesForces as test_module class C5959765_ForceRegion_AssetGetsImpulsed(EditorSharedTest): - from . import C5959765_ForceRegion_AssetGetsImpulsed as test_module + from .force_region import C5959765_ForceRegion_AssetGetsImpulsed as test_module class C6274125_ScriptCanvas_TriggerEvents(EditorSharedTest): - from . import C6274125_ScriptCanvas_TriggerEvents as test_module + from .script_canvas import C6274125_ScriptCanvas_TriggerEvents as test_module # needs to be updated to log for unexpected lines # expected_lines = test_module.LogLines.expected_lines class C6090554_ForceRegion_PointForceNegative(EditorSharedTest): - from . import C6090554_ForceRegion_PointForceNegative as test_module + from .force_region import C6090554_ForceRegion_PointForceNegative as test_module class C6090550_ForceRegion_WorldSpaceForceNegative(EditorSharedTest): - from . import C6090550_ForceRegion_WorldSpaceForceNegative as test_module + from .force_region import C6090550_ForceRegion_WorldSpaceForceNegative as test_module class C6090552_ForceRegion_LinearDampingNegative(EditorSharedTest): - from . import C6090552_ForceRegion_LinearDampingNegative as test_module + from .force_region import C6090552_ForceRegion_LinearDampingNegative as test_module class C5968760_ForceRegion_CheckNetForceChange(EditorSharedTest): - from . import C5968760_ForceRegion_CheckNetForceChange as test_module + from .force_region import C5968760_ForceRegion_CheckNetForceChange as test_module class C12712452_ScriptCanvas_CollisionEvents(EditorSharedTest): - from . import C12712452_ScriptCanvas_CollisionEvents as test_module + from .script_canvas import C12712452_ScriptCanvas_CollisionEvents as test_module class C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude(EditorSharedTest): - from . import C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude as test_module + from .force_region import C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude as test_module class C4976204_Verify_Start_Asleep_Condition(EditorSharedTest): - from . import C4976204_Verify_Start_Asleep_Condition as test_module + from .rigid_body import C4976204_Verify_Start_Asleep_Condition as test_module class C6090546_ForceRegion_SliceFileInstantiates(EditorSharedTest): - from . import C6090546_ForceRegion_SliceFileInstantiates as test_module + from .force_region import C6090546_ForceRegion_SliceFileInstantiates as test_module class C6090551_ForceRegion_LocalSpaceForceNegative(EditorSharedTest): - from . import C6090551_ForceRegion_LocalSpaceForceNegative as test_module + from .force_region import C6090551_ForceRegion_LocalSpaceForceNegative as test_module class C6090553_ForceRegion_SimpleDragForceOnRigidBodies(EditorSharedTest): - from . import C6090553_ForceRegion_SimpleDragForceOnRigidBodies as test_module + from .force_region import C6090553_ForceRegion_SimpleDragForceOnRigidBodies as test_module class C4976209_RigidBody_ComputesCOM(EditorSharedTest): - from . import C4976209_RigidBody_ComputesCOM as test_module + from .rigid_body import C4976209_RigidBody_ComputesCOM as test_module class C4976201_RigidBody_MassIsAssigned(EditorSharedTest): - from . import C4976201_RigidBody_MassIsAssigned as test_module + from .rigid_body import C4976201_RigidBody_MassIsAssigned as test_module class C12868580_ForceRegion_SplineModifiedTransform(EditorSharedTest): - from . import C12868580_ForceRegion_SplineModifiedTransform as test_module + from .force_region import C12868580_ForceRegion_SplineModifiedTransform as test_module class C12712455_ScriptCanvas_ShapeCastVerification(EditorSharedTest): - from . import C12712455_ScriptCanvas_ShapeCastVerification as test_module + from .script_canvas import C12712455_ScriptCanvas_ShapeCastVerification as test_module class C4976197_RigidBodies_InitialAngularVelocity(EditorSharedTest): - from . import C4976197_RigidBodies_InitialAngularVelocity as test_module + from .rigid_body import C4976197_RigidBodies_InitialAngularVelocity as test_module class C6090555_ForceRegion_SplineFollowOnRigidBodies(EditorSharedTest): - from . import C6090555_ForceRegion_SplineFollowOnRigidBodies as test_module + from .force_region import C6090555_ForceRegion_SplineFollowOnRigidBodies as test_module class C6131473_StaticSlice_OnDynamicSliceSpawn(EditorSharedTest): - from . import C6131473_StaticSlice_OnDynamicSliceSpawn as test_module + from .general import C6131473_StaticSlice_OnDynamicSliceSpawn as test_module class C5959808_ForceRegion_PositionOffset(EditorSharedTest): - from . import C5959808_ForceRegion_PositionOffset as test_module + from .force_region import C5959808_ForceRegion_PositionOffset as test_module @pytest.mark.xfail(reason="Something with the CryRenderer disabling is causing this test to fail now.") class C13895144_Ragdoll_ChangeLevel(EditorSharedTest): - from . import C13895144_Ragdoll_ChangeLevel as test_module + from .ragdoll import C13895144_Ragdoll_ChangeLevel as test_module class C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody(EditorSharedTest): - from . import C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody as test_module + from .force_region import C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody as test_module @pytest.mark.xfail(reason="This test will sometimes fail as the ball will continue to roll before the timeout is reached.") class C4976202_RigidBody_StopsWhenBelowKineticThreshold(EditorSharedTest): - from . import C4976202_RigidBody_StopsWhenBelowKineticThreshold as test_module + from .rigid_body import C4976202_RigidBody_StopsWhenBelowKineticThreshold as test_module class C13351703_COM_NotIncludeTriggerShapes(EditorSharedTest): - from . import C13351703_COM_NotIncludeTriggerShapes as test_module + from .rigid_body import C13351703_COM_NotIncludeTriggerShapes as test_module class C5296614_PhysXMaterial_ColliderShape(EditorSharedTest): - from . import C5296614_PhysXMaterial_ColliderShape as test_module + from .material import C5296614_PhysXMaterial_ColliderShape as test_module class C4982595_Collider_TriggerDisablesCollision(EditorSharedTest): - from . import C4982595_Collider_TriggerDisablesCollision as test_module + from .collider import C4982595_Collider_TriggerDisablesCollision as test_module class C14976307_Gravity_SetGravityWorks(EditorSharedTest): - from . import C14976307_Gravity_SetGravityWorks as test_module + from .general import C14976307_Gravity_SetGravityWorks as test_module class C4044694_Material_EmptyLibraryUsesDefault(EditorSharedTest): - from . import C4044694_Material_EmptyLibraryUsesDefault as test_module + from .material import C4044694_Material_EmptyLibraryUsesDefault as test_module class C15845879_ForceRegion_HighLinearDampingForce(EditorSharedTest): - from . import C15845879_ForceRegion_HighLinearDampingForce as test_module + from .force_region import C15845879_ForceRegion_HighLinearDampingForce as test_module class C4976218_RigidBodies_InertiaObjectsNotComputed(EditorSharedTest): - from . import C4976218_RigidBodies_InertiaObjectsNotComputed as test_module + from .rigid_body import C4976218_RigidBodies_InertiaObjectsNotComputed as test_module class C14902098_ScriptCanvas_PostPhysicsUpdate(EditorSharedTest): - from . import C14902098_ScriptCanvas_PostPhysicsUpdate as test_module + from .script_canvas import C14902098_ScriptCanvas_PostPhysicsUpdate as test_module # Note: Test needs to be updated to log for unexpected lines # unexpected_lines = ["Assert"] + test_module.Lines.unexpected class C5959761_ForceRegion_PhysAssetExertsPointForce(EditorSharedTest): - from . import C5959761_ForceRegion_PhysAssetExertsPointForce as test_module + from .force_region import C5959761_ForceRegion_PhysAssetExertsPointForce as test_module # Marking the Test as expected to fail using the xfail decorator due to sporadic failure on Automated Review: SPEC-3146 # The test still runs, but a failure of the test doesn't result in the test run failing @pytest.mark.xfail(reason="Test Sporadically fails with message [ NOT FOUND ] Success: Bar1 : Expected angular velocity") class C13352089_RigidBodies_MaxAngularVelocity(EditorSharedTest): - from . import C13352089_RigidBodies_MaxAngularVelocity as test_module + from .rigid_body import C13352089_RigidBodies_MaxAngularVelocity as test_module class C18243584_Joints_HingeSoftLimitsConstrained(EditorSharedTest): - from . import C18243584_Joints_HingeSoftLimitsConstrained as test_module + from .joints import C18243584_Joints_HingeSoftLimitsConstrained as test_module class C18243589_Joints_BallSoftLimitsConstrained(EditorSharedTest): - from . import C18243589_Joints_BallSoftLimitsConstrained as test_module + from .joints import C18243589_Joints_BallSoftLimitsConstrained as test_module class C18243591_Joints_BallLeadFollowerCollide(EditorSharedTest): - from . import C18243591_Joints_BallLeadFollowerCollide as test_module + from .joints import C18243591_Joints_BallLeadFollowerCollide as test_module class C19578018_ShapeColliderWithNoShapeComponent(EditorSharedTest): - from . import C19578018_ShapeColliderWithNoShapeComponent as test_module + from .collider import C19578018_ShapeColliderWithNoShapeComponent as test_module class C14861500_DefaultSetting_ColliderShape(EditorSharedTest): - from . import C14861500_DefaultSetting_ColliderShape as test_module + from .collider import C14861500_DefaultSetting_ColliderShape as test_module class C19723164_ShapeCollider_WontCrashEditor(EditorSharedTest): - from . import C19723164_ShapeColliders_WontCrashEditor as test_module + from .collider import C19723164_ShapeColliders_WontCrashEditor as test_module class C4982800_PhysXColliderShape_CanBeSelected(EditorSharedTest): - from . import C4982800_PhysXColliderShape_CanBeSelected as test_module + from .collider import C4982800_PhysXColliderShape_CanBeSelected as test_module class C4982801_PhysXColliderShape_CanBeSelected(EditorSharedTest): - from . import C4982801_PhysXColliderShape_CanBeSelected as test_module + from .collider import C4982801_PhysXColliderShape_CanBeSelected as test_module class C4982802_PhysXColliderShape_CanBeSelected(EditorSharedTest): - from . import C4982802_PhysXColliderShape_CanBeSelected as test_module + from .collider import C4982802_PhysXColliderShape_CanBeSelected as test_module class C12905528_ForceRegion_WithNonTriggerCollider(EditorSharedTest): - from . import C12905528_ForceRegion_WithNonTriggerCollider as test_module + from .force_region import C12905528_ForceRegion_WithNonTriggerCollider as test_module # Fixme: expected_lines = ["[Warning] (PhysX Force Region) - Please ensure collider component marked as trigger exists in entity"] class C5932040_ForceRegion_CubeExertsWorldForce(EditorSharedTest): - from . import C5932040_ForceRegion_CubeExertsWorldForce as test_module + from .force_region import C5932040_ForceRegion_CubeExertsWorldForce as test_module class C5932044_ForceRegion_PointForceOnRigidBody(EditorSharedTest): - from . import C5932044_ForceRegion_PointForceOnRigidBody as test_module + from .force_region import C5932044_ForceRegion_PointForceOnRigidBody as test_module class C5959759_RigidBody_ForceRegionSpherePointForce(EditorSharedTest): - from . import C5959759_RigidBody_ForceRegionSpherePointForce as test_module + from .force_region import C5959759_RigidBody_ForceRegionSpherePointForce as test_module class C5959809_ForceRegion_RotationalOffset(EditorSharedTest): - from . import C5959809_ForceRegion_RotationalOffset as test_module + from .force_region import C5959809_ForceRegion_RotationalOffset as test_module class C15096740_Material_LibraryUpdatedCorrectly(EditorSharedTest): - from . import C15096740_Material_LibraryUpdatedCorrectly as test_module + from .material import C15096740_Material_LibraryUpdatedCorrectly as test_module class C4976236_AddPhysxColliderComponent(EditorSharedTest): - from . import C4976236_AddPhysxColliderComponent as test_module + from .collider import C4976236_AddPhysxColliderComponent as test_module @pytest.mark.xfail(reason="This will fail due to this issue ATOM-15487.") class C14861502_PhysXCollider_AssetAutoAssigned(EditorSharedTest): - from . import C14861502_PhysXCollider_AssetAutoAssigned as test_module + from .collider import C14861502_PhysXCollider_AssetAutoAssigned as test_module class C14861501_PhysXCollider_RenderMeshAutoAssigned(EditorSharedTest): - from . import C14861501_PhysXCollider_RenderMeshAutoAssigned as test_module + from .collider import C14861501_PhysXCollider_RenderMeshAutoAssigned as test_module class C4044695_PhysXCollider_AddMultipleSurfaceFbx(EditorSharedTest): - from . import C4044695_PhysXCollider_AddMultipleSurfaceFbx as test_module + from .collider import C4044695_PhysXCollider_AddMultipleSurfaceFbx as test_module class C14861504_RenderMeshAsset_WithNoPxAsset(EditorSharedTest): - from . import C14861504_RenderMeshAsset_WithNoPxAsset as test_module + from .collider import C14861504_RenderMeshAsset_WithNoPxAsset as test_module class C100000_RigidBody_EnablingGravityWorksPoC(EditorSharedTest): - from . import C100000_RigidBody_EnablingGravityWorksPoC as test_module + from .collider import C100000_RigidBody_EnablingGravityWorksPoC as test_module class C4982798_Collider_ColliderRotationOffset(EditorSharedTest): - from . import C4982798_Collider_ColliderRotationOffset as test_module + from .collider import C4982798_Collider_ColliderRotationOffset as test_module class C15308217_NoCrash_LevelSwitch(EditorSharedTest): - from . import C15308217_NoCrash_LevelSwitch as test_module + from .terrain import C15308217_NoCrash_LevelSwitch as test_module class C6090547_ForceRegion_ParentChildForceRegions(EditorSharedTest): - from . import C6090547_ForceRegion_ParentChildForceRegions as test_module + from .force_region import C6090547_ForceRegion_ParentChildForceRegions as test_module class C19578021_ShapeCollider_CanBeAdded(EditorSharedTest): - from . import C19578021_ShapeCollider_CanBeAdded as test_module + from .collider import C19578021_ShapeCollider_CanBeAdded as test_module class C15425929_Undo_Redo(EditorSharedTest): - from . import C15425929_Undo_Redo as test_module + from .general import C15425929_Undo_Redo as test_module diff --git a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Periodic.py b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Periodic.py index 3d86db1014..fca7e0e3af 100755 --- a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Periodic.py +++ b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Periodic.py @@ -12,7 +12,7 @@ import pytest import os import sys -from .FileManagement import FileManagement as fm +from .utils.FileManagement import FileManagement as fm from ly_test_tools import LAUNCHERS sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../automatedtesting_shared') @@ -30,219 +30,219 @@ class TestAutomation(TestAutomationBase): @revert_physics_config def test_C3510642_Terrain_NotCollideWithTerrain(self, request, workspace, editor, launcher_platform): - from . import C3510642_Terrain_NotCollideWithTerrain as test_module + from .terrain import C3510642_Terrain_NotCollideWithTerrain as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976195_RigidBodies_InitialLinearVelocity(self, request, workspace, editor, launcher_platform): - from . import C4976195_RigidBodies_InitialLinearVelocity as test_module + from .rigid_body import C4976195_RigidBodies_InitialLinearVelocity as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976206_RigidBodies_GravityEnabledActive(self, request, workspace, editor, launcher_platform): - from . import C4976206_RigidBodies_GravityEnabledActive as test_module + from .rigid_body import C4976206_RigidBodies_GravityEnabledActive as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976207_PhysXRigidBodies_KinematicBehavior(self, request, workspace, editor, launcher_platform): - from . import C4976207_PhysXRigidBodies_KinematicBehavior as test_module + from .rigid_body import C4976207_PhysXRigidBodies_KinematicBehavior as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5932042_PhysXForceRegion_LinearDamping(self, request, workspace, editor, launcher_platform): - from . import C5932042_PhysXForceRegion_LinearDamping as test_module + from .force_region import C5932042_PhysXForceRegion_LinearDamping as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5932043_ForceRegion_SimpleDragOnRigidBodies(self, request, workspace, editor, launcher_platform): - from . import C5932043_ForceRegion_SimpleDragOnRigidBodies as test_module + from .force_region import C5932043_ForceRegion_SimpleDragOnRigidBodies as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5959760_PhysXForceRegion_PointForceExertion(self, request, workspace, editor, launcher_platform): - from . import C5959760_PhysXForceRegion_PointForceExertion as test_module + from .force_region import C5959760_PhysXForceRegion_PointForceExertion as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5959764_ForceRegion_ForceRegionImpulsesCapsule(self, request, workspace, editor, launcher_platform): - from . import C5959764_ForceRegion_ForceRegionImpulsesCapsule as test_module + from .force_region import C5959764_ForceRegion_ForceRegionImpulsesCapsule as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5340400_RigidBody_ManualMomentOfInertia(self, request, workspace, editor, launcher_platform): - from . import C5340400_RigidBody_ManualMomentOfInertia as test_module + from .rigid_body import C5340400_RigidBody_ManualMomentOfInertia as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976210_COM_ManualSetting(self, request, workspace, editor, launcher_platform): - from . import C4976210_COM_ManualSetting as test_module + from .rigid_body import C4976210_COM_ManualSetting as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976194_RigidBody_PhysXComponentIsValid(self, request, workspace, editor, launcher_platform): - from . import C4976194_RigidBody_PhysXComponentIsValid as test_module + from .rigid_body import C4976194_RigidBody_PhysXComponentIsValid as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5932045_ForceRegion_Spline(self, request, workspace, editor, launcher_platform): - from . import C5932045_ForceRegion_Spline as test_module + from .force_region import C5932045_ForceRegion_Spline as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C4044457_Material_RestitutionCombine.setreg_override', 'AutomatedTesting/Registry') def test_C4044457_Material_RestitutionCombine(self, request, workspace, editor, launcher_platform): - from . import C4044457_Material_RestitutionCombine as test_module + from .material import C4044457_Material_RestitutionCombine as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C4044456_Material_FrictionCombine.setreg_override', 'AutomatedTesting/Registry') def test_C4044456_Material_FrictionCombine(self, request, workspace, editor, launcher_platform): - from . import C4044456_Material_FrictionCombine as test_module + from .material import C4044456_Material_FrictionCombine as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4982797_Collider_ColliderOffset(self, request, workspace, editor, launcher_platform): - from . import C4982797_Collider_ColliderOffset as test_module + from .collider import C4982797_Collider_ColliderOffset as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976200_RigidBody_AngularDampingObjectRotation(self, request, workspace, editor, launcher_platform): - from . import C4976200_RigidBody_AngularDampingObjectRotation as test_module + from .rigid_body import C4976200_RigidBody_AngularDampingObjectRotation as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5689529_Verify_Terrain_RigidBody_Collider_Mesh(self, request, workspace, editor, launcher_platform): - from . import C5689529_Verify_Terrain_RigidBody_Collider_Mesh as test_module + from .general import C5689529_Verify_Terrain_RigidBody_Collider_Mesh as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5959810_ForceRegion_ForceRegionCombinesForces(self, request, workspace, editor, launcher_platform): - from . import C5959810_ForceRegion_ForceRegionCombinesForces as test_module + from .force_region import C5959810_ForceRegion_ForceRegionCombinesForces as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5959765_ForceRegion_AssetGetsImpulsed(self, request, workspace, editor, launcher_platform): - from . import C5959765_ForceRegion_AssetGetsImpulsed as test_module + from .force_region import C5959765_ForceRegion_AssetGetsImpulsed as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6274125_ScriptCanvas_TriggerEvents(self, request, workspace, editor, launcher_platform): - from . import C6274125_ScriptCanvas_TriggerEvents as test_module + from .script_canvas import C6274125_ScriptCanvas_TriggerEvents as test_module # FIXME: expected_lines = test_module.LogLines.expected_lines self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6090554_ForceRegion_PointForceNegative(self, request, workspace, editor, launcher_platform): - from . import C6090554_ForceRegion_PointForceNegative as test_module + from .force_region import C6090554_ForceRegion_PointForceNegative as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6090550_ForceRegion_WorldSpaceForceNegative(self, request, workspace, editor, launcher_platform): - from . import C6090550_ForceRegion_WorldSpaceForceNegative as test_module + from .force_region import C6090550_ForceRegion_WorldSpaceForceNegative as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6090552_ForceRegion_LinearDampingNegative(self, request, workspace, editor, launcher_platform): - from . import C6090552_ForceRegion_LinearDampingNegative as test_module + from .force_region import C6090552_ForceRegion_LinearDampingNegative as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5968760_ForceRegion_CheckNetForceChange(self, request, workspace, editor, launcher_platform): - from . import C5968760_ForceRegion_CheckNetForceChange as test_module + from .force_region import C5968760_ForceRegion_CheckNetForceChange as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C12712452_ScriptCanvas_CollisionEvents(self, request, workspace, editor, launcher_platform): - from . import C12712452_ScriptCanvas_CollisionEvents as test_module + from .script_canvas import C12712452_ScriptCanvas_CollisionEvents as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude(self, request, workspace, editor, launcher_platform): - from . import C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude as test_module + from .force_region import C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976204_Verify_Start_Asleep_Condition(self, request, workspace, editor, launcher_platform): - from . import C4976204_Verify_Start_Asleep_Condition as test_module + from .rigid_body import C4976204_Verify_Start_Asleep_Condition as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6090546_ForceRegion_SliceFileInstantiates(self, request, workspace, editor, launcher_platform): - from . import C6090546_ForceRegion_SliceFileInstantiates as test_module + from .force_region import C6090546_ForceRegion_SliceFileInstantiates as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6090551_ForceRegion_LocalSpaceForceNegative(self, request, workspace, editor, launcher_platform): - from . import C6090551_ForceRegion_LocalSpaceForceNegative as test_module + from .force_region import C6090551_ForceRegion_LocalSpaceForceNegative as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6090553_ForceRegion_SimpleDragForceOnRigidBodies(self, request, workspace, editor, launcher_platform): - from . import C6090553_ForceRegion_SimpleDragForceOnRigidBodies as test_module + from .force_region import C6090553_ForceRegion_SimpleDragForceOnRigidBodies as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976209_RigidBody_ComputesCOM(self, request, workspace, editor, launcher_platform): - from . import C4976209_RigidBody_ComputesCOM as test_module + from .rigid_body import C4976209_RigidBody_ComputesCOM as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976201_RigidBody_MassIsAssigned(self, request, workspace, editor, launcher_platform): - from . import C4976201_RigidBody_MassIsAssigned as test_module + from .rigid_body import C4976201_RigidBody_MassIsAssigned as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C18981526_Material_RestitutionCombinePriority.setreg_override', 'AutomatedTesting/Registry') def test_C18981526_Material_RestitutionCombinePriority(self, request, workspace, editor, launcher_platform): - from . import C18981526_Material_RestitutionCombinePriority as test_module + from .material import C18981526_Material_RestitutionCombinePriority as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C12868580_ForceRegion_SplineModifiedTransform(self, request, workspace, editor, launcher_platform): - from . import C12868580_ForceRegion_SplineModifiedTransform as test_module + from .force_region import C12868580_ForceRegion_SplineModifiedTransform as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C12712455_ScriptCanvas_ShapeCastVerification(self, request, workspace, editor, launcher_platform): - from . import C12712455_ScriptCanvas_ShapeCastVerification as test_module + from .script_canvas import C12712455_ScriptCanvas_ShapeCastVerification as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976197_RigidBodies_InitialAngularVelocity(self, request, workspace, editor, launcher_platform): - from . import C4976197_RigidBodies_InitialAngularVelocity as test_module + from .rigid_body import C4976197_RigidBodies_InitialAngularVelocity as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6090555_ForceRegion_SplineFollowOnRigidBodies(self, request, workspace, editor, launcher_platform): - from . import C6090555_ForceRegion_SplineFollowOnRigidBodies as test_module + from .force_region import C6090555_ForceRegion_SplineFollowOnRigidBodies as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6131473_StaticSlice_OnDynamicSliceSpawn(self, request, workspace, editor, launcher_platform): - from . import C6131473_StaticSlice_OnDynamicSliceSpawn as test_module + from .general import C6131473_StaticSlice_OnDynamicSliceSpawn as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5959808_ForceRegion_PositionOffset(self, request, workspace, editor, launcher_platform): - from . import C5959808_ForceRegion_PositionOffset as test_module + from .force_region import C5959808_ForceRegion_PositionOffset as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C18977601_Material_FrictionCombinePriority.setreg_override', 'AutomatedTesting/Registry') def test_C18977601_Material_FrictionCombinePriority(self, request, workspace, editor, launcher_platform): - from . import C18977601_Material_FrictionCombinePriority as test_module + from .material import C18977601_Material_FrictionCombinePriority as test_module self._run_test(request, workspace, editor, test_module) @pytest.mark.xfail( reason="Something with the CryRenderer disabling is causing this test to fail now.") @revert_physics_config def test_C13895144_Ragdoll_ChangeLevel(self, request, workspace, editor, launcher_platform): - from . import C13895144_Ragdoll_ChangeLevel as test_module + from .ragdoll import C13895144_Ragdoll_ChangeLevel as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody(self, request, workspace, editor, launcher_platform): - from . import C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody as test_module + from .force_region import C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody as test_module self._run_test(request, workspace, editor, test_module) # Marking the test as an expected failure due to sporadic failure on Automated Review: LYN-2580 @@ -252,96 +252,96 @@ class TestAutomation(TestAutomationBase): @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C4044697_Material_PerfaceMaterialValidation.setreg_override', 'AutomatedTesting/Registry') def test_C4044697_Material_PerfaceMaterialValidation(self, request, workspace, editor, launcher_platform): - from . import C4044697_Material_PerfaceMaterialValidation as test_module + from .material import C4044697_Material_PerfaceMaterialValidation as test_module self._run_test(request, workspace, editor, test_module) @pytest.mark.xfail( reason="This test will sometimes fail as the ball will continue to roll before the timeout is reached.") @revert_physics_config def test_C4976202_RigidBody_StopsWhenBelowKineticThreshold(self, request, workspace, editor, launcher_platform): - from . import C4976202_RigidBody_StopsWhenBelowKineticThreshold as test_module + from .rigid_body import C4976202_RigidBody_StopsWhenBelowKineticThreshold as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C13351703_COM_NotIncludeTriggerShapes(self, request, workspace, editor, launcher_platform): - from . import C13351703_COM_NotIncludeTriggerShapes as test_module + from .rigid_body import C13351703_COM_NotIncludeTriggerShapes as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5296614_PhysXMaterial_ColliderShape(self, request, workspace, editor, launcher_platform): - from . import C5296614_PhysXMaterial_ColliderShape as test_module + from .material import C5296614_PhysXMaterial_ColliderShape as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4982595_Collider_TriggerDisablesCollision(self, request, workspace, editor, launcher_platform): - from . import C4982595_Collider_TriggerDisablesCollision as test_module + from .collider import C4982595_Collider_TriggerDisablesCollision as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C14976307_Gravity_SetGravityWorks(self, request, workspace, editor, launcher_platform): - from . import C14976307_Gravity_SetGravityWorks as test_module + from .general import C14976307_Gravity_SetGravityWorks as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C15556261_PhysXMaterials_CharacterControllerMaterialAssignment.setreg_override', 'AutomatedTesting/Registry') def test_C15556261_PhysXMaterials_CharacterControllerMaterialAssignment(self, request, workspace, editor, launcher_platform): - from . import C15556261_PhysXMaterials_CharacterControllerMaterialAssignment as test_module + from .material import C15556261_PhysXMaterials_CharacterControllerMaterialAssignment as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4044694_Material_EmptyLibraryUsesDefault(self, request, workspace, editor, launcher_platform): - from . import C4044694_Material_EmptyLibraryUsesDefault as test_module + from .material import C4044694_Material_EmptyLibraryUsesDefault as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C15845879_ForceRegion_HighLinearDampingForce(self, request, workspace, editor, launcher_platform): - from . import C15845879_ForceRegion_HighLinearDampingForce as test_module + from .force_region import C15845879_ForceRegion_HighLinearDampingForce as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4976218_RigidBodies_InertiaObjectsNotComputed(self, request, workspace, editor, launcher_platform): - from . import C4976218_RigidBodies_InertiaObjectsNotComputed as test_module + from .rigid_body import C4976218_RigidBodies_InertiaObjectsNotComputed as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C14902098_ScriptCanvas_PostPhysicsUpdate(self, request, workspace, editor, launcher_platform): - from . import C14902098_ScriptCanvas_PostPhysicsUpdate as test_module + from .script_canvas import C14902098_ScriptCanvas_PostPhysicsUpdate as test_module # Fixme: unexpected_lines = ["Assert"] + test_module.Lines.unexpected self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C4976245_PhysXCollider_CollisionLayerTest.setreg_override', 'AutomatedTesting/Registry') def test_C4976245_PhysXCollider_CollisionLayerTest(self, request, workspace, editor, launcher_platform): - from . import C4976245_PhysXCollider_CollisionLayerTest as test_module + from .collider import C4976245_PhysXCollider_CollisionLayerTest as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C4976244_Collider_SameGroupSameLayerCollision.setreg_override', 'AutomatedTesting/Registry') def test_C4976244_Collider_SameGroupSameLayerCollision(self, request, workspace, editor, launcher_platform): - from . import C4976244_Collider_SameGroupSameLayerCollision as test_module + from .collider import C4976244_Collider_SameGroupSameLayerCollision as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxdefaultsceneconfiguration.setreg','C14195074_ScriptCanvas_PostUpdateEvent.setreg_override', 'AutomatedTesting/Registry') def test_C14195074_ScriptCanvas_PostUpdateEvent(self, request, workspace, editor, launcher_platform): - from . import C14195074_ScriptCanvas_PostUpdateEvent as test_module + from .script_canvas import C14195074_ScriptCanvas_PostUpdateEvent as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C4044461_Material_Restitution.setreg_override', 'AutomatedTesting/Registry') def test_C4044461_Material_Restitution(self, request, workspace, editor, launcher_platform): - from . import C4044461_Material_Restitution as test_module + from .material import C4044461_Material_Restitution as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxdefaultsceneconfiguration.setreg','C14902097_ScriptCanvas_PreUpdateEvent.setreg_override', 'AutomatedTesting/Registry') def test_C14902097_ScriptCanvas_PreUpdateEvent(self, request, workspace, editor, launcher_platform): - from . import C14902097_ScriptCanvas_PreUpdateEvent as test_module + from .script_canvas import C14902097_ScriptCanvas_PreUpdateEvent as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C5959761_ForceRegion_PhysAssetExertsPointForce(self, request, workspace, editor, launcher_platform): - from . import C5959761_ForceRegion_PhysAssetExertsPointForce as test_module + from .force_region import C5959761_ForceRegion_PhysAssetExertsPointForce as test_module self._run_test(request, workspace, editor, test_module) # Marking the Test as expected to fail using the xfail decorator due to sporadic failure on Automated Review: SPEC-3146 @@ -349,138 +349,138 @@ class TestAutomation(TestAutomationBase): @pytest.mark.xfail(reason="Test Sporadically fails with message [ NOT FOUND ] Success: Bar1 : Expected angular velocity") @revert_physics_config def test_C13352089_RigidBodies_MaxAngularVelocity(self, request, workspace, editor, launcher_platform): - from . import C13352089_RigidBodies_MaxAngularVelocity as test_module + from .rigid_body import C13352089_RigidBodies_MaxAngularVelocity as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C18243584_Joints_HingeSoftLimitsConstrained(self, request, workspace, editor, launcher_platform): - from . import C18243584_Joints_HingeSoftLimitsConstrained as test_module + from .joints import C18243584_Joints_HingeSoftLimitsConstrained as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C18243589_Joints_BallSoftLimitsConstrained(self, request, workspace, editor, launcher_platform): - from . import C18243589_Joints_BallSoftLimitsConstrained as test_module + from .joints import C18243589_Joints_BallSoftLimitsConstrained as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C18243591_Joints_BallLeadFollowerCollide(self, request, workspace, editor, launcher_platform): - from . import C18243591_Joints_BallLeadFollowerCollide as test_module + from .joints import C18243591_Joints_BallLeadFollowerCollide as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C4976227_Collider_NewGroup.setreg_override', 'AutomatedTesting/Registry') def test_C4976227_Collider_NewGroup(self, request, workspace, editor, launcher_platform): - from . import C4976227_Collider_NewGroup as test_module + from .collider import C4976227_Collider_NewGroup as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C19578018_ShapeColliderWithNoShapeComponent(self, request, workspace, editor, launcher_platform): - from . import C19578018_ShapeColliderWithNoShapeComponent as test_module + from .collider import C19578018_ShapeColliderWithNoShapeComponent as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C14861500_DefaultSetting_ColliderShape(self, request, workspace, editor, launcher_platform): - from . import C14861500_DefaultSetting_ColliderShape as test_module + from .collider import C14861500_DefaultSetting_ColliderShape as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C19723164_ShapeCollider_WontCrashEditor(self, request, workspace, editor, launcher_platform): - from . import C19723164_ShapeColliders_WontCrashEditor as test_module + from .collider import C19723164_ShapeColliders_WontCrashEditor as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4982800_PhysXColliderShape_CanBeSelected(self, request, workspace, editor, launcher_platform): - from . import C4982800_PhysXColliderShape_CanBeSelected as test_module + from .collider import C4982800_PhysXColliderShape_CanBeSelected as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4982801_PhysXColliderShape_CanBeSelected(self, request, workspace, editor, launcher_platform): - from . import C4982801_PhysXColliderShape_CanBeSelected as test_module + from .collider import C4982801_PhysXColliderShape_CanBeSelected as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4982802_PhysXColliderShape_CanBeSelected(self, request, workspace, editor, launcher_platform): - from . import C4982802_PhysXColliderShape_CanBeSelected as test_module + from .collider import C4982802_PhysXColliderShape_CanBeSelected as test_module self._run_test(request, workspace, editor, test_module) def test_C12905528_ForceRegion_WithNonTriggerCollider(self, request, workspace, editor, launcher_platform): - from . import C12905528_ForceRegion_WithNonTriggerCollider as test_module + from .force_region import C12905528_ForceRegion_WithNonTriggerCollider as test_module # Fixme: expected_lines = ["[Warning] (PhysX Force Region) - Please ensure collider component marked as trigger exists in entity"] self._run_test(request, workspace, editor, test_module) def test_C5932040_ForceRegion_CubeExertsWorldForce(self, request, workspace, editor, launcher_platform): - from . import C5932040_ForceRegion_CubeExertsWorldForce as test_module + from .force_region import C5932040_ForceRegion_CubeExertsWorldForce as test_module self._run_test(request, workspace, editor, test_module) def test_C5932044_ForceRegion_PointForceOnRigidBody(self, request, workspace, editor, launcher_platform): - from . import C5932044_ForceRegion_PointForceOnRigidBody as test_module + from .force_region import C5932044_ForceRegion_PointForceOnRigidBody as test_module self._run_test(request, workspace, editor, test_module) def test_C5959759_RigidBody_ForceRegionSpherePointForce(self, request, workspace, editor, launcher_platform): - from . import C5959759_RigidBody_ForceRegionSpherePointForce as test_module + from .force_region import C5959759_RigidBody_ForceRegionSpherePointForce as test_module self._run_test(request, workspace, editor, test_module) def test_C5959809_ForceRegion_RotationalOffset(self, request, workspace, editor, launcher_platform): - from . import C5959809_ForceRegion_RotationalOffset as test_module + from .force_region import C5959809_ForceRegion_RotationalOffset as test_module self._run_test(request, workspace, editor, test_module) def test_C15096740_Material_LibraryUpdatedCorrectly(self, request, workspace, editor, launcher_platform): - from . import C15096740_Material_LibraryUpdatedCorrectly as test_module + from .material import C15096740_Material_LibraryUpdatedCorrectly as test_module self._run_test(request, workspace, editor, test_module) def test_C4976236_AddPhysxColliderComponent(self, request, workspace, editor, launcher_platform): - from . import C4976236_AddPhysxColliderComponent as test_module + from .collider import C4976236_AddPhysxColliderComponent as test_module self._run_test(request, workspace, editor, test_module) @pytest.mark.xfail( reason="This will fail due to this issue ATOM-15487.") def test_C14861502_PhysXCollider_AssetAutoAssigned(self, request, workspace, editor, launcher_platform): - from . import C14861502_PhysXCollider_AssetAutoAssigned as test_module + from .collider import C14861502_PhysXCollider_AssetAutoAssigned as test_module self._run_test(request, workspace, editor, test_module) def test_C14861501_PhysXCollider_RenderMeshAutoAssigned(self, request, workspace, editor, launcher_platform): - from . import C14861501_PhysXCollider_RenderMeshAutoAssigned as test_module + from .collider import C14861501_PhysXCollider_RenderMeshAutoAssigned as test_module self._run_test(request, workspace, editor, test_module) def test_C4044695_PhysXCollider_AddMultipleSurfaceFbx(self, request, workspace, editor, launcher_platform): - from . import C4044695_PhysXCollider_AddMultipleSurfaceFbx as test_module + from .collider import C4044695_PhysXCollider_AddMultipleSurfaceFbx as test_module self._run_test(request, workspace, editor, test_module) def test_C14861504_RenderMeshAsset_WithNoPxAsset(self, request, workspace, editor, launcher_platform): - from . import C14861504_RenderMeshAsset_WithNoPxAsset as test_module + from .collider import C14861504_RenderMeshAsset_WithNoPxAsset as test_module self._run_test(request, workspace, editor, test_module) def test_C100000_RigidBody_EnablingGravityWorksPoC(self, request, workspace, editor, launcher_platform): - from . import C100000_RigidBody_EnablingGravityWorksPoC as test_module + from .collider import C100000_RigidBody_EnablingGravityWorksPoC as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config @fm.file_override('physxsystemconfiguration.setreg','C3510644_Collider_CollisionGroups.setreg_override', 'AutomatedTesting/Registry') def test_C3510644_Collider_CollisionGroups(self, request, workspace, editor, launcher_platform): - from . import C3510644_Collider_CollisionGroups as test_module + from .collider import C3510644_Collider_CollisionGroups as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C4982798_Collider_ColliderRotationOffset(self, request, workspace, editor, launcher_platform): - from . import C4982798_Collider_ColliderRotationOffset as test_module + from .collider import C4982798_Collider_ColliderRotationOffset as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C15308217_NoCrash_LevelSwitch(self, request, workspace, editor, launcher_platform): - from . import C15308217_NoCrash_LevelSwitch as test_module + from .terrain import C15308217_NoCrash_LevelSwitch as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C6090547_ForceRegion_ParentChildForceRegions(self, request, workspace, editor, launcher_platform): - from . import C6090547_ForceRegion_ParentChildForceRegions as test_module + from .force_region import C6090547_ForceRegion_ParentChildForceRegions as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C19578021_ShapeCollider_CanBeAdded(self, request, workspace, editor, launcher_platform): - from . import C19578021_ShapeCollider_CanBeAdded as test_module + from .collider import C19578021_ShapeCollider_CanBeAdded as test_module self._run_test(request, workspace, editor, test_module) @revert_physics_config def test_C15425929_Undo_Redo(self, request, workspace, editor, launcher_platform): - from . import C15425929_Undo_Redo as test_module + from .general import C15425929_Undo_Redo as test_module self._run_test(request, workspace, editor, test_module) diff --git a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Sandbox.py b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Sandbox.py index 255016ddd6..0346df2ebd 100755 --- a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Sandbox.py +++ b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Sandbox.py @@ -12,7 +12,7 @@ import pytest import os import sys -from .FileManagement import FileManagement as fm +from .utils.FileManagement import FileManagement as fm from ly_test_tools import LAUNCHERS sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../automatedtesting_shared') @@ -30,13 +30,13 @@ class TestAutomation(TestAutomationBase): ## Seems to be flaky, need to investigate def test_C19536274_GetCollisionName_PrintsName(self, request, workspace, editor, launcher_platform): - from . import C19536274_GetCollisionName_PrintsName as test_module + from .general import C19536274_GetCollisionName_PrintsName as test_module # Fixme: expected_lines=["Layer Name: Right"] self._run_test(request, workspace, editor, test_module) ## Seems to be flaky, need to investigate def test_C19536277_GetCollisionName_PrintsNothing(self, request, workspace, editor, launcher_platform): - from . import C19536277_GetCollisionName_PrintsNothing as test_module + from .general import C19536277_GetCollisionName_PrintsNothing as test_module # All groups present in the PhysX Collider that could show up in test # Fixme: collision_groups = ["All", "None", "All_NoTouchBend", "All_3", "None_1", "All_NoTouchBend_1", "All_2", "None_1_1", "All_NoTouchBend_1_1", "All_1", "None_1_1_1", "All_NoTouchBend_1_1_1", "All_4", "None_1_1_1_1", "All_NoTouchBend_1_1_1_1", "GroupLeft", "GroupRight"] # Fixme: for group in collision_groups: @@ -49,5 +49,5 @@ class TestAutomation(TestAutomationBase): reason="Editor crashes and errors about files accessed by multiple processes appear in the log.") @revert_physics_config def test_C15425929_Undo_Redo(self, request, workspace, editor, launcher_platform): - from . import C15425929_Undo_Redo as test_module + from .general import C15425929_Undo_Redo as test_module self._run_test(request, workspace, editor, test_module) diff --git a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Utils.py b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Utils.py index 9f4edba18b..a3fd5c741f 100755 --- a/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Utils.py +++ b/AutomatedTesting/Gem/PythonTests/physics/TestSuite_Utils.py @@ -29,14 +29,14 @@ class TestUtils(TestAutomationBase): :param request: Built in pytest object, and is needed to call the pytest "addfinalizer" teardown command. :editor: Fixture containing editor details """ - from . import UtilTest_Physmaterial_Editor as physmaterial_editor_test_module + from .utils import UtilTest_Physmaterial_Editor as physmaterial_editor_test_module expected_lines = [] unexpected_lines = ["Assert"] self._run_test(request, workspace, editor, physmaterial_editor_test_module, expected_lines, unexpected_lines) def test_UtilTest_Tracer_PicksErrorsAndWarnings(self, request, workspace, editor): - from . import UtilTest_Tracer_PicksErrorsAndWarnings as testcase_module + from .utils import UtilTest_Tracer_PicksErrorsAndWarnings as testcase_module self._run_test(request, workspace, editor, testcase_module, [], []) def test_FileManagement_FindingFiles(self, workspace): @@ -262,7 +262,7 @@ class TestUtils(TestAutomationBase): ) @fm.file_override("default.physxconfiguration", "UtilTest_PhysxConfig_Override.physxconfiguration") def test_UtilTest_Managed_Files(self, request, workspace, editor): - from . import UtilTest_Managed_Files as test_module + from .utils import UtilTest_Managed_Files as test_module expected_lines = [] unexpected_lines = ["Assert"] diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14654881_CharacterController_SwitchLevels.py b/AutomatedTesting/Gem/PythonTests/physics/character_controller/C14654881_CharacterController_SwitchLevels.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C14654881_CharacterController_SwitchLevels.py rename to AutomatedTesting/Gem/PythonTests/physics/character_controller/C14654881_CharacterController_SwitchLevels.py index 975c5ee787..3976bcf25c --- a/AutomatedTesting/Gem/PythonTests/physics/C14654881_CharacterController_SwitchLevels.py +++ b/AutomatedTesting/Gem/PythonTests/physics/character_controller/C14654881_CharacterController_SwitchLevels.py @@ -53,11 +53,6 @@ def C14654881_CharacterController_SwitchLevels(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper import azlmbr.legacy.general as general @@ -93,8 +88,5 @@ def C14654881_CharacterController_SwitchLevels(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14654881_CharacterController_SwitchLevels) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C100000_RigidBody_EnablingGravityWorksPoC.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C100000_RigidBody_EnablingGravityWorksPoC.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C100000_RigidBody_EnablingGravityWorksPoC.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C100000_RigidBody_EnablingGravityWorksPoC.py index 58d92fd313..f3d3e02d8e --- a/AutomatedTesting/Gem/PythonTests/physics/C100000_RigidBody_EnablingGravityWorksPoC.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C100000_RigidBody_EnablingGravityWorksPoC.py @@ -25,11 +25,6 @@ class Tests(): def C100000_RigidBody_EnablingGravityWorksPoC(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -77,8 +72,5 @@ def C100000_RigidBody_EnablingGravityWorksPoC(): helper.exit_game_mode(Tests.exit_game_mode) if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C100000_RigidBody_EnablingGravityWorksPoC) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC.py index 77e8c73604..997ea8a5a6 --- a/AutomatedTesting/Gem/PythonTests/physics/C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC.py @@ -24,11 +24,6 @@ def C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC(): # Setup path import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -84,8 +79,5 @@ def C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC(): helper.exit_game_mode(Tests.exit_game_mode) if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14861498_ConfirmError_NoPxMesh.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861498_ConfirmError_NoPxMesh.py old mode 100755 new mode 100644 similarity index 95% rename from AutomatedTesting/Gem/PythonTests/physics/C14861498_ConfirmError_NoPxMesh.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C14861498_ConfirmError_NoPxMesh.py index 622f2aac35..731f114b8c --- a/AutomatedTesting/Gem/PythonTests/physics/C14861498_ConfirmError_NoPxMesh.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861498_ConfirmError_NoPxMesh.py @@ -48,11 +48,6 @@ def C14861498_ConfirmError_NoPxMesh(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper from editor_python_test_tools.utils import Tracer @@ -85,8 +80,5 @@ def C14861498_ConfirmError_NoPxMesh(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14861498_ConfirmError_NoPxMesh) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14861500_DefaultSetting_ColliderShape.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861500_DefaultSetting_ColliderShape.py old mode 100755 new mode 100644 similarity index 95% rename from AutomatedTesting/Gem/PythonTests/physics/C14861500_DefaultSetting_ColliderShape.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C14861500_DefaultSetting_ColliderShape.py index 0827ee540a..aed856f530 --- a/AutomatedTesting/Gem/PythonTests/physics/C14861500_DefaultSetting_ColliderShape.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861500_DefaultSetting_ColliderShape.py @@ -40,9 +40,7 @@ def C14861500_DefaultSetting_ColliderShape(): :return: None """ # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -70,8 +68,5 @@ def C14861500_DefaultSetting_ColliderShape(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14861500_DefaultSetting_ColliderShape) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14861501_PhysXCollider_RenderMeshAutoAssigned.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861501_PhysXCollider_RenderMeshAutoAssigned.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C14861501_PhysXCollider_RenderMeshAutoAssigned.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C14861501_PhysXCollider_RenderMeshAutoAssigned.py index 1a4fe471a4..73c94a2dfb --- a/AutomatedTesting/Gem/PythonTests/physics/C14861501_PhysXCollider_RenderMeshAutoAssigned.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861501_PhysXCollider_RenderMeshAutoAssigned.py @@ -48,13 +48,11 @@ def C14861501_PhysXCollider_RenderMeshAutoAssigned(): import os # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper - from asset_utils import Asset + from editor_python_test_tools.asset_utils import Asset # Asset paths STATIC_MESH = os.path.join("assets", "c14861501_physxcollider_rendermeshautoassigned", "spherebot", "r0-b_body.azmodel") @@ -91,8 +89,5 @@ def C14861501_PhysXCollider_RenderMeshAutoAssigned(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14861501_PhysXCollider_RenderMeshAutoAssigned) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14861502_PhysXCollider_AssetAutoAssigned.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861502_PhysXCollider_AssetAutoAssigned.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C14861502_PhysXCollider_AssetAutoAssigned.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C14861502_PhysXCollider_AssetAutoAssigned.py index 490708007e..b8c0e4a529 --- a/AutomatedTesting/Gem/PythonTests/physics/C14861502_PhysXCollider_AssetAutoAssigned.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861502_PhysXCollider_AssetAutoAssigned.py @@ -47,13 +47,11 @@ def C14861502_PhysXCollider_AssetAutoAssigned(): import os # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper - from asset_utils import Asset + from editor_python_test_tools.asset_utils import Asset # Open 3D Engine Imports import azlmbr.legacy.general as general @@ -93,8 +91,5 @@ def C14861502_PhysXCollider_AssetAutoAssigned(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14861502_PhysXCollider_AssetAutoAssigned) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14861504_RenderMeshAsset_WithNoPxAsset.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861504_RenderMeshAsset_WithNoPxAsset.py old mode 100755 new mode 100644 similarity index 95% rename from AutomatedTesting/Gem/PythonTests/physics/C14861504_RenderMeshAsset_WithNoPxAsset.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C14861504_RenderMeshAsset_WithNoPxAsset.py index 589245e884..1a63f478fd --- a/AutomatedTesting/Gem/PythonTests/physics/C14861504_RenderMeshAsset_WithNoPxAsset.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C14861504_RenderMeshAsset_WithNoPxAsset.py @@ -22,7 +22,7 @@ class Tests(): # fmt: on -def run(): +def C14861504_RenderMeshAsset_WithNoPxAsset(): """ Summary: Create entity with Mesh component and assign a render mesh that has no physics asset to the Mesh component. @@ -52,14 +52,12 @@ def run(): import os # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper from editor_python_test_tools.utils import Tracer - from asset_utils import Asset + from editor_python_test_tools.asset_utils import Asset # Open 3D Engine Imports import azlmbr.asset as azasset @@ -102,4 +100,5 @@ def run(): if __name__ == "__main__": - run() + from editor_python_test_tools.utils import Report + Report.start_test(C14861504_RenderMeshAsset_WithNoPxAsset) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C19578018_ShapeColliderWithNoShapeComponent.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C19578018_ShapeColliderWithNoShapeComponent.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C19578018_ShapeColliderWithNoShapeComponent.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C19578018_ShapeColliderWithNoShapeComponent.py index 478910e56c..3da42eb40f --- a/AutomatedTesting/Gem/PythonTests/physics/C19578018_ShapeColliderWithNoShapeComponent.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C19578018_ShapeColliderWithNoShapeComponent.py @@ -47,9 +47,7 @@ def C19578018_ShapeColliderWithNoShapeComponent(): """ # Built-in Imports - import ImportPathHelper as imports - imports.init() # Helper Imports from editor_python_test_tools.utils import Report @@ -92,8 +90,5 @@ def C19578018_ShapeColliderWithNoShapeComponent(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C19578018_ShapeColliderWithNoShapeComponent) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C19578021_ShapeCollider_CanBeAdded.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C19578021_ShapeCollider_CanBeAdded.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C19578021_ShapeCollider_CanBeAdded.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C19578021_ShapeCollider_CanBeAdded.py index cf5aac6e98..0ec9908f2d --- a/AutomatedTesting/Gem/PythonTests/physics/C19578021_ShapeCollider_CanBeAdded.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C19578021_ShapeCollider_CanBeAdded.py @@ -44,9 +44,7 @@ def C19578021_ShapeCollider_CanBeAdded(): :return: None """ # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -90,8 +88,5 @@ def C19578021_ShapeCollider_CanBeAdded(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C19578021_ShapeCollider_CanBeAdded) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C19723164_ShapeColliders_WontCrashEditor.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C19723164_ShapeColliders_WontCrashEditor.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C19723164_ShapeColliders_WontCrashEditor.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C19723164_ShapeColliders_WontCrashEditor.py index f6f21a5322..7d277a734d --- a/AutomatedTesting/Gem/PythonTests/physics/C19723164_ShapeColliders_WontCrashEditor.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C19723164_ShapeColliders_WontCrashEditor.py @@ -40,9 +40,7 @@ def C19723164_ShapeColliders_WontCrashEditor(): :return: None """ # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity @@ -96,8 +94,5 @@ def C19723164_ShapeColliders_WontCrashEditor(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C19723164_ShapeColliders_WontCrashEditor) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain.py index 9258cf8547..9094ba68c6 --- a/AutomatedTesting/Gem/PythonTests/physics/C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain.py @@ -51,9 +51,7 @@ def C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain(): import os import sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity import azlmbr.legacy.general as general import azlmbr.bus @@ -134,8 +132,5 @@ def C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C3510644_Collider_CollisionGroups.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C3510644_Collider_CollisionGroups.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C3510644_Collider_CollisionGroups.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C3510644_Collider_CollisionGroups.py index e41aecf4fe..28638cc2a6 --- a/AutomatedTesting/Gem/PythonTests/physics/C3510644_Collider_CollisionGroups.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C3510644_Collider_CollisionGroups.py @@ -90,11 +90,6 @@ def C3510644_Collider_CollisionGroups(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -362,8 +357,5 @@ def C3510644_Collider_CollisionGroups(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C3510644_Collider_CollisionGroups) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4044695_PhysXCollider_AddMultipleSurfaceFbx.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4044695_PhysXCollider_AddMultipleSurfaceFbx.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4044695_PhysXCollider_AddMultipleSurfaceFbx.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4044695_PhysXCollider_AddMultipleSurfaceFbx.py index 538f28ff36..cfe6f3962c --- a/AutomatedTesting/Gem/PythonTests/physics/C4044695_PhysXCollider_AddMultipleSurfaceFbx.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4044695_PhysXCollider_AddMultipleSurfaceFbx.py @@ -48,13 +48,11 @@ def C4044695_PhysXCollider_AddMultipleSurfaceFbx(): import os # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper - from asset_utils import Asset + from editor_python_test_tools.asset_utils import Asset # Constants PHYSICS_ASSET_INDEX = 7 # Hardcoded enum index value for Shape property @@ -107,8 +105,5 @@ def C4044695_PhysXCollider_AddMultipleSurfaceFbx(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4044695_PhysXCollider_AddMultipleSurfaceFbx) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976227_Collider_NewGroup.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976227_Collider_NewGroup.py old mode 100755 new mode 100644 similarity index 95% rename from AutomatedTesting/Gem/PythonTests/physics/C4976227_Collider_NewGroup.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4976227_Collider_NewGroup.py index e123067f54..e9704d6be5 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976227_Collider_NewGroup.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976227_Collider_NewGroup.py @@ -51,11 +51,6 @@ def C4976227_Collider_NewGroup(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -84,8 +79,5 @@ def C4976227_Collider_NewGroup(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976227_Collider_NewGroup) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976236_AddPhysxColliderComponent.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976236_AddPhysxColliderComponent.py old mode 100755 new mode 100644 similarity index 95% rename from AutomatedTesting/Gem/PythonTests/physics/C4976236_AddPhysxColliderComponent.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4976236_AddPhysxColliderComponent.py index d4b7d85169..e4341bb148 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976236_AddPhysxColliderComponent.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976236_AddPhysxColliderComponent.py @@ -42,14 +42,12 @@ def C4976236_AddPhysxColliderComponent(): """ # Helper file Imports - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper from editor_python_test_tools.utils import Tracer - from asset_utils import Asset + from editor_python_test_tools.asset_utils import Asset helper.init_idle() # 1) Load the level @@ -84,8 +82,5 @@ def C4976236_AddPhysxColliderComponent(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976236_AddPhysxColliderComponent) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976242_Collision_SameCollisionlayerSameCollisiongroup.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976242_Collision_SameCollisionlayerSameCollisiongroup.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4976242_Collision_SameCollisionlayerSameCollisiongroup.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4976242_Collision_SameCollisionlayerSameCollisiongroup.py index 86dd81a6de..86ef5b6ed4 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976242_Collision_SameCollisionlayerSameCollisiongroup.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976242_Collision_SameCollisionlayerSameCollisiongroup.py @@ -62,11 +62,6 @@ def C4976242_Collision_SameCollisionlayerSameCollisiongroup(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -188,8 +183,5 @@ def C4976242_Collision_SameCollisionlayerSameCollisiongroup(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976242_Collision_SameCollisionlayerSameCollisiongroup) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976243_Collision_SameCollisionGroupDiffCollisionLayers.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976243_Collision_SameCollisionGroupDiffCollisionLayers.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4976243_Collision_SameCollisionGroupDiffCollisionLayers.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4976243_Collision_SameCollisionGroupDiffCollisionLayers.py index f1a646e964..893d0d06f6 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976243_Collision_SameCollisionGroupDiffCollisionLayers.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976243_Collision_SameCollisionGroupDiffCollisionLayers.py @@ -66,11 +66,6 @@ def C4976243_Collision_SameCollisionGroupDiffCollisionLayers(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -127,8 +122,5 @@ def C4976243_Collision_SameCollisionGroupDiffCollisionLayers(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976243_Collision_SameCollisionGroupDiffCollisionLayers) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976244_Collider_SameGroupSameLayerCollision.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976244_Collider_SameGroupSameLayerCollision.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4976244_Collider_SameGroupSameLayerCollision.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4976244_Collider_SameGroupSameLayerCollision.py index 1d1f0aba35..44ea29de76 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976244_Collider_SameGroupSameLayerCollision.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976244_Collider_SameGroupSameLayerCollision.py @@ -62,11 +62,6 @@ def C4976244_Collider_SameGroupSameLayerCollision(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -185,8 +180,5 @@ def C4976244_Collider_SameGroupSameLayerCollision(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976244_Collider_SameGroupSameLayerCollision) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976245_PhysXCollider_CollisionLayerTest.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976245_PhysXCollider_CollisionLayerTest.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4976245_PhysXCollider_CollisionLayerTest.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4976245_PhysXCollider_CollisionLayerTest.py index 9d2c6f5fb4..a7c9152744 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976245_PhysXCollider_CollisionLayerTest.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4976245_PhysXCollider_CollisionLayerTest.py @@ -67,11 +67,6 @@ def C4976245_PhysXCollider_CollisionLayerTest(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper import azlmbr.legacy.general as general @@ -223,8 +218,5 @@ def C4976245_PhysXCollider_CollisionLayerTest(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976245_PhysXCollider_CollisionLayerTest) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4982593_PhysXCollider_CollisionLayerTest.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982593_PhysXCollider_CollisionLayerTest.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4982593_PhysXCollider_CollisionLayerTest.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4982593_PhysXCollider_CollisionLayerTest.py index 500515f707..3fdb9d3403 --- a/AutomatedTesting/Gem/PythonTests/physics/C4982593_PhysXCollider_CollisionLayerTest.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982593_PhysXCollider_CollisionLayerTest.py @@ -67,11 +67,6 @@ def C4982593_PhysXCollider_CollisionLayerTest(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper import azlmbr.legacy.general as general @@ -231,8 +226,5 @@ def C4982593_PhysXCollider_CollisionLayerTest(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4982593_PhysXCollider_CollisionLayerTest) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4982595_Collider_TriggerDisablesCollision.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982595_Collider_TriggerDisablesCollision.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4982595_Collider_TriggerDisablesCollision.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4982595_Collider_TriggerDisablesCollision.py index 23e43cd741..d3b0faa6d4 --- a/AutomatedTesting/Gem/PythonTests/physics/C4982595_Collider_TriggerDisablesCollision.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982595_Collider_TriggerDisablesCollision.py @@ -75,11 +75,6 @@ def C4982595_Collider_TriggerDisablesCollision(): # Setup path import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus import azlmbr.components @@ -234,8 +229,5 @@ def C4982595_Collider_TriggerDisablesCollision(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4982595_Collider_TriggerDisablesCollision) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4982797_Collider_ColliderOffset.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982797_Collider_ColliderOffset.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4982797_Collider_ColliderOffset.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4982797_Collider_ColliderOffset.py index 9ede25e5a0..d4d8ab15fd --- a/AutomatedTesting/Gem/PythonTests/physics/C4982797_Collider_ColliderOffset.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982797_Collider_ColliderOffset.py @@ -87,9 +87,7 @@ def C4982797_Collider_ColliderOffset(): import sys # Internal editor imports - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -332,8 +330,5 @@ def C4982797_Collider_ColliderOffset(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4982797_Collider_ColliderOffset) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4982798_Collider_ColliderRotationOffset.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982798_Collider_ColliderRotationOffset.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4982798_Collider_ColliderRotationOffset.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4982798_Collider_ColliderRotationOffset.py index c0bc208d48..8368b9a66f --- a/AutomatedTesting/Gem/PythonTests/physics/C4982798_Collider_ColliderRotationOffset.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982798_Collider_ColliderRotationOffset.py @@ -86,9 +86,7 @@ def C4982798_Collider_ColliderRotationOffset(): :return: None """ - import ImportPathHelper as imports - imports.init() # Internal editor imports @@ -300,8 +298,5 @@ def C4982798_Collider_ColliderRotationOffset(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4982798_Collider_ColliderRotationOffset) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4982800_PhysXColliderShape_CanBeSelected.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982800_PhysXColliderShape_CanBeSelected.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C4982800_PhysXColliderShape_CanBeSelected.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4982800_PhysXColliderShape_CanBeSelected.py index abfa6c44a1..0f1b9c6070 --- a/AutomatedTesting/Gem/PythonTests/physics/C4982800_PhysXColliderShape_CanBeSelected.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982800_PhysXColliderShape_CanBeSelected.py @@ -43,9 +43,7 @@ def C4982800_PhysXColliderShape_CanBeSelected(): :return: None """ # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -91,8 +89,5 @@ def C4982800_PhysXColliderShape_CanBeSelected(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4982800_PhysXColliderShape_CanBeSelected) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4982801_PhysXColliderShape_CanBeSelected.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982801_PhysXColliderShape_CanBeSelected.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4982801_PhysXColliderShape_CanBeSelected.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4982801_PhysXColliderShape_CanBeSelected.py index 0d5aa39941..33b7dc0b48 --- a/AutomatedTesting/Gem/PythonTests/physics/C4982801_PhysXColliderShape_CanBeSelected.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982801_PhysXColliderShape_CanBeSelected.py @@ -43,9 +43,7 @@ def C4982801_PhysXColliderShape_CanBeSelected(): :return: None """ # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -103,8 +101,5 @@ def C4982801_PhysXColliderShape_CanBeSelected(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4982801_PhysXColliderShape_CanBeSelected) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4982802_PhysXColliderShape_CanBeSelected.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982802_PhysXColliderShape_CanBeSelected.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4982802_PhysXColliderShape_CanBeSelected.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4982802_PhysXColliderShape_CanBeSelected.py index 7eec3b070a..4881c5b9a0 --- a/AutomatedTesting/Gem/PythonTests/physics/C4982802_PhysXColliderShape_CanBeSelected.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982802_PhysXColliderShape_CanBeSelected.py @@ -43,9 +43,7 @@ def C4982802_PhysXColliderShape_CanBeSelected(): :return: None """ # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -103,8 +101,5 @@ def C4982802_PhysXColliderShape_CanBeSelected(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4982802_PhysXColliderShape_CanBeSelected) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4982803_Enable_PxMesh_Option.py b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982803_Enable_PxMesh_Option.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4982803_Enable_PxMesh_Option.py rename to AutomatedTesting/Gem/PythonTests/physics/collider/C4982803_Enable_PxMesh_Option.py index 340b9c7785..7497ae8253 --- a/AutomatedTesting/Gem/PythonTests/physics/C4982803_Enable_PxMesh_Option.py +++ b/AutomatedTesting/Gem/PythonTests/physics/collider/C4982803_Enable_PxMesh_Option.py @@ -57,13 +57,11 @@ def C4982803_Enable_PxMesh_Option(): import os # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.editor_entity_utils import EditorEntity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper - from asset_utils import Asset + from editor_python_test_tools.asset_utils import Asset import azlmbr.math as math # Open 3D Engine Imports @@ -141,8 +139,5 @@ def C4982803_Enable_PxMesh_Option(): helper.exit_game_mode(Tests.exit_game_mode) if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4982803_Enable_PxMesh_Option) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude.py index aae57cffc8..11488b14c2 --- a/AutomatedTesting/Gem/PythonTests/physics/C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude.py @@ -86,11 +86,6 @@ def C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -283,8 +278,5 @@ def C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C12868580_ForceRegion_SplineModifiedTransform.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C12868580_ForceRegion_SplineModifiedTransform.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C12868580_ForceRegion_SplineModifiedTransform.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C12868580_ForceRegion_SplineModifiedTransform.py index f21dde6ae0..4e052a1b00 --- a/AutomatedTesting/Gem/PythonTests/physics/C12868580_ForceRegion_SplineModifiedTransform.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C12868580_ForceRegion_SplineModifiedTransform.py @@ -73,12 +73,6 @@ def C12868580_ForceRegion_SplineModifiedTransform(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -168,8 +162,5 @@ def C12868580_ForceRegion_SplineModifiedTransform(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C12868580_ForceRegion_SplineModifiedTransform) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C12905527_ForceRegion_MagnitudeDeviation.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C12905527_ForceRegion_MagnitudeDeviation.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C12905527_ForceRegion_MagnitudeDeviation.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C12905527_ForceRegion_MagnitudeDeviation.py index 6df2d545da..c9d411b873 --- a/AutomatedTesting/Gem/PythonTests/physics/C12905527_ForceRegion_MagnitudeDeviation.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C12905527_ForceRegion_MagnitudeDeviation.py @@ -54,12 +54,6 @@ def C12905527_ForceRegion_MagnitudeDeviation(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -144,8 +138,5 @@ def C12905527_ForceRegion_MagnitudeDeviation(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C12905527_ForceRegion_MagnitudeDeviation) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C12905528_ForceRegion_WithNonTriggerCollider.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C12905528_ForceRegion_WithNonTriggerCollider.py old mode 100755 new mode 100644 similarity index 89% rename from AutomatedTesting/Gem/PythonTests/physics/C12905528_ForceRegion_WithNonTriggerCollider.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C12905528_ForceRegion_WithNonTriggerCollider.py index ca5a29e182..93453b29c0 --- a/AutomatedTesting/Gem/PythonTests/physics/C12905528_ForceRegion_WithNonTriggerCollider.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C12905528_ForceRegion_WithNonTriggerCollider.py @@ -19,7 +19,7 @@ class Tests(): # fmt: on -def run(): +def C12905528_ForceRegion_WithNonTriggerCollider(): """ Summary: Create entity with PhysX Force Region component. Check that user is warned if new PhysX Collider component is @@ -43,13 +43,10 @@ def run(): :return: None """ - # Helper file Imports - import ImportPathHelper as imports - + import azlmbr.legacy.general as general from editor_python_test_tools.editor_entity_utils import EditorEntity from editor_python_test_tools.utils import Report - imports.init() from editor_python_test_tools.utils import TestHelper as helper from editor_python_test_tools.utils import Tracer @@ -66,11 +63,14 @@ def run(): Report.result(Tests.add_physx_force_region, test_entity.has_component("PhysX Force Region")) # 4) Start the Tracer to catch any errors and warnings + Report.info("Starting warning monitoring") with Tracer() as section_tracer: # 5) Add the PhysX Collider component test_entity.add_component("PhysX Collider") Report.result(Tests.add_physx_collider, test_entity.has_component("PhysX Collider")) - + general.idle_wait_frames(1) + Report.info("Ending warning monitoring") + # ) Verify there is warning in the logs success_condition = section_tracer.has_warnings # Checking if warning exist and the exact warning is caught in the expected lines in Test file @@ -78,4 +78,5 @@ def run(): if __name__ == "__main__": - run() + from editor_python_test_tools.utils import Report + Report.start_test(C12905528_ForceRegion_WithNonTriggerCollider) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15845879_ForceRegion_HighLinearDampingForce.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C15845879_ForceRegion_HighLinearDampingForce.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C15845879_ForceRegion_HighLinearDampingForce.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C15845879_ForceRegion_HighLinearDampingForce.py index 1021186a9b..d4807476c2 --- a/AutomatedTesting/Gem/PythonTests/physics/C15845879_ForceRegion_HighLinearDampingForce.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C15845879_ForceRegion_HighLinearDampingForce.py @@ -56,11 +56,6 @@ def C15845879_ForceRegion_HighLinearDampingForce(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -169,8 +164,5 @@ def C15845879_ForceRegion_HighLinearDampingForce(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15845879_ForceRegion_HighLinearDampingForce) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5932040_ForceRegion_CubeExertsWorldForce.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932040_ForceRegion_CubeExertsWorldForce.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5932040_ForceRegion_CubeExertsWorldForce.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5932040_ForceRegion_CubeExertsWorldForce.py index db3d4708ce..969a203502 --- a/AutomatedTesting/Gem/PythonTests/physics/C5932040_ForceRegion_CubeExertsWorldForce.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932040_ForceRegion_CubeExertsWorldForce.py @@ -65,11 +65,6 @@ def C5932040_ForceRegion_CubeExertsWorldForce(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -183,8 +178,5 @@ def C5932040_ForceRegion_CubeExertsWorldForce(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5932040_ForceRegion_CubeExertsWorldForce) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies.py index 09965214b2..15c77ba17e --- a/AutomatedTesting/Gem/PythonTests/physics/C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies.py @@ -65,11 +65,6 @@ def C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -161,8 +156,5 @@ def C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5932041_PhysXForceRegion_LocalSpaceForceOnRigidBodies) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5932042_PhysXForceRegion_LinearDamping.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932042_PhysXForceRegion_LinearDamping.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C5932042_PhysXForceRegion_LinearDamping.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5932042_PhysXForceRegion_LinearDamping.py index c05e71573f..5112729cc2 --- a/AutomatedTesting/Gem/PythonTests/physics/C5932042_PhysXForceRegion_LinearDamping.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932042_PhysXForceRegion_LinearDamping.py @@ -71,11 +71,6 @@ def C5932042_PhysXForceRegion_LinearDamping(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -269,8 +264,5 @@ def C5932042_PhysXForceRegion_LinearDamping(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5932042_PhysXForceRegion_LinearDamping) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5932043_ForceRegion_SimpleDragOnRigidBodies.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932043_ForceRegion_SimpleDragOnRigidBodies.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5932043_ForceRegion_SimpleDragOnRigidBodies.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5932043_ForceRegion_SimpleDragOnRigidBodies.py index d88232ff78..cd81315e73 --- a/AutomatedTesting/Gem/PythonTests/physics/C5932043_ForceRegion_SimpleDragOnRigidBodies.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932043_ForceRegion_SimpleDragOnRigidBodies.py @@ -42,9 +42,7 @@ def C5932043_ForceRegion_SimpleDragOnRigidBodies(): # Setup path import os, sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -139,8 +137,5 @@ def C5932043_ForceRegion_SimpleDragOnRigidBodies(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5932043_ForceRegion_SimpleDragOnRigidBodies) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5932044_ForceRegion_PointForceOnRigidBody.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932044_ForceRegion_PointForceOnRigidBody.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5932044_ForceRegion_PointForceOnRigidBody.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5932044_ForceRegion_PointForceOnRigidBody.py index 58eec3a9be..23760909db --- a/AutomatedTesting/Gem/PythonTests/physics/C5932044_ForceRegion_PointForceOnRigidBody.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932044_ForceRegion_PointForceOnRigidBody.py @@ -65,11 +65,6 @@ def C5932044_ForceRegion_PointForceOnRigidBody(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -189,8 +184,5 @@ def C5932044_ForceRegion_PointForceOnRigidBody(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5932044_ForceRegion_PointForceOnRigidBody) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5932045_ForceRegion_Spline.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932045_ForceRegion_Spline.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5932045_ForceRegion_Spline.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5932045_ForceRegion_Spline.py index ea9ca060c0..e74f5cc6e0 --- a/AutomatedTesting/Gem/PythonTests/physics/C5932045_ForceRegion_Spline.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5932045_ForceRegion_Spline.py @@ -70,11 +70,6 @@ def C5932045_ForceRegion_Spline(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -162,8 +157,5 @@ def C5932045_ForceRegion_Spline(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5932045_ForceRegion_Spline) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5959759_RigidBody_ForceRegionSpherePointForce.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959759_RigidBody_ForceRegionSpherePointForce.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5959759_RigidBody_ForceRegionSpherePointForce.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5959759_RigidBody_ForceRegionSpherePointForce.py index 3bfad9d770..99baeb1fff --- a/AutomatedTesting/Gem/PythonTests/physics/C5959759_RigidBody_ForceRegionSpherePointForce.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959759_RigidBody_ForceRegionSpherePointForce.py @@ -38,11 +38,6 @@ def C5959759_RigidBody_ForceRegionSpherePointForce(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -150,8 +145,5 @@ def C5959759_RigidBody_ForceRegionSpherePointForce(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5959759_RigidBody_ForceRegionSpherePointForce) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5959760_PhysXForceRegion_PointForceExertion.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959760_PhysXForceRegion_PointForceExertion.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5959760_PhysXForceRegion_PointForceExertion.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5959760_PhysXForceRegion_PointForceExertion.py index 85d15aec33..6648b41d31 --- a/AutomatedTesting/Gem/PythonTests/physics/C5959760_PhysXForceRegion_PointForceExertion.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959760_PhysXForceRegion_PointForceExertion.py @@ -63,11 +63,6 @@ def C5959760_PhysXForceRegion_PointForceExertion(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -223,8 +218,5 @@ def C5959760_PhysXForceRegion_PointForceExertion(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5959760_PhysXForceRegion_PointForceExertion) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5959761_ForceRegion_PhysAssetExertsPointForce.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959761_ForceRegion_PhysAssetExertsPointForce.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C5959761_ForceRegion_PhysAssetExertsPointForce.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5959761_ForceRegion_PhysAssetExertsPointForce.py index 1e58a8d975..c77fc39a77 --- a/AutomatedTesting/Gem/PythonTests/physics/C5959761_ForceRegion_PhysAssetExertsPointForce.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959761_ForceRegion_PhysAssetExertsPointForce.py @@ -61,12 +61,6 @@ def C5959761_ForceRegion_PhysAssetExertsPointForce(): import os import sys - - import ImportPathHelper as imports - - imports.init() - - import azlmbr import azlmbr.legacy.general as general import azlmbr.bus as bus @@ -140,8 +134,5 @@ def C5959761_ForceRegion_PhysAssetExertsPointForce(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5959761_ForceRegion_PhysAssetExertsPointForce) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5959763_ForceRegion_ForceRegionImpulsesCube.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959763_ForceRegion_ForceRegionImpulsesCube.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5959763_ForceRegion_ForceRegionImpulsesCube.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5959763_ForceRegion_ForceRegionImpulsesCube.py index 6123381588..8bea169a82 --- a/AutomatedTesting/Gem/PythonTests/physics/C5959763_ForceRegion_ForceRegionImpulsesCube.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959763_ForceRegion_ForceRegionImpulsesCube.py @@ -42,9 +42,7 @@ def C5959763_ForceRegion_ForceRegionImpulsesCube(): # Setup path import os, sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -165,8 +163,5 @@ def C5959763_ForceRegion_ForceRegionImpulsesCube(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5959763_ForceRegion_ForceRegionImpulsesCube) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5959764_ForceRegion_ForceRegionImpulsesCapsule.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959764_ForceRegion_ForceRegionImpulsesCapsule.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5959764_ForceRegion_ForceRegionImpulsesCapsule.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5959764_ForceRegion_ForceRegionImpulsesCapsule.py index 9e4ef9379a..4ce345a5eb --- a/AutomatedTesting/Gem/PythonTests/physics/C5959764_ForceRegion_ForceRegionImpulsesCapsule.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959764_ForceRegion_ForceRegionImpulsesCapsule.py @@ -42,9 +42,7 @@ def C5959764_ForceRegion_ForceRegionImpulsesCapsule(): # Setup path import os, sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -167,8 +165,5 @@ def C5959764_ForceRegion_ForceRegionImpulsesCapsule(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5959764_ForceRegion_ForceRegionImpulsesCapsule) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5959765_ForceRegion_AssetGetsImpulsed.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959765_ForceRegion_AssetGetsImpulsed.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5959765_ForceRegion_AssetGetsImpulsed.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5959765_ForceRegion_AssetGetsImpulsed.py index 3a28208805..36ecddb3ca --- a/AutomatedTesting/Gem/PythonTests/physics/C5959765_ForceRegion_AssetGetsImpulsed.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959765_ForceRegion_AssetGetsImpulsed.py @@ -45,9 +45,7 @@ def C5959765_ForceRegion_AssetGetsImpulsed(): # Setup path import os, sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -169,8 +167,5 @@ def C5959765_ForceRegion_AssetGetsImpulsed(): helper.exit_game_mode(Tests.exit_game_mode) if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5959765_ForceRegion_AssetGetsImpulsed) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5959808_ForceRegion_PositionOffset.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959808_ForceRegion_PositionOffset.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C5959808_ForceRegion_PositionOffset.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5959808_ForceRegion_PositionOffset.py index 4b70fcc734..480869457c --- a/AutomatedTesting/Gem/PythonTests/physics/C5959808_ForceRegion_PositionOffset.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959808_ForceRegion_PositionOffset.py @@ -124,11 +124,6 @@ def C5959808_ForceRegion_PositionOffset(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -405,8 +400,5 @@ def C5959808_ForceRegion_PositionOffset(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5959808_ForceRegion_PositionOffset) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5959809_ForceRegion_RotationalOffset.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959809_ForceRegion_RotationalOffset.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C5959809_ForceRegion_RotationalOffset.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5959809_ForceRegion_RotationalOffset.py index ccf05cfe5d..d26aebab8d --- a/AutomatedTesting/Gem/PythonTests/physics/C5959809_ForceRegion_RotationalOffset.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959809_ForceRegion_RotationalOffset.py @@ -125,11 +125,6 @@ def C5959809_ForceRegion_RotationalOffset(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -405,8 +400,5 @@ def C5959809_ForceRegion_RotationalOffset(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5959809_ForceRegion_RotationalOffset) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5959810_ForceRegion_ForceRegionCombinesForces.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959810_ForceRegion_ForceRegionCombinesForces.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5959810_ForceRegion_ForceRegionCombinesForces.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5959810_ForceRegion_ForceRegionCombinesForces.py index 330a2662ab..b7660926d5 --- a/AutomatedTesting/Gem/PythonTests/physics/C5959810_ForceRegion_ForceRegionCombinesForces.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5959810_ForceRegion_ForceRegionCombinesForces.py @@ -65,11 +65,6 @@ def C5959810_ForceRegion_ForceRegionCombinesForces(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -234,8 +229,5 @@ def C5959810_ForceRegion_ForceRegionCombinesForces(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5959810_ForceRegion_ForceRegionCombinesForces) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody.py index 068238e64d..b1f8d27900 --- a/AutomatedTesting/Gem/PythonTests/physics/C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody.py @@ -55,9 +55,7 @@ def C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody(): Second force region: Name = "Force Region Simple Drag" Applies a drag force on both spheres Setup path """ - import ImportPathHelper as imports - imports.init() import azlmbr.legacy.general as general @@ -175,8 +173,5 @@ def C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5968759_ForceRegion_ExertsSeveralForcesOnRigidBody) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5968760_ForceRegion_CheckNetForceChange.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5968760_ForceRegion_CheckNetForceChange.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5968760_ForceRegion_CheckNetForceChange.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C5968760_ForceRegion_CheckNetForceChange.py index 41d5b93eb7..d64a0564f4 --- a/AutomatedTesting/Gem/PythonTests/physics/C5968760_ForceRegion_CheckNetForceChange.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C5968760_ForceRegion_CheckNetForceChange.py @@ -61,11 +61,6 @@ def C5968760_ForceRegion_CheckNetForceChange(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -163,8 +158,5 @@ def C5968760_ForceRegion_CheckNetForceChange(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5968760_ForceRegion_CheckNetForceChange) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6090546_ForceRegion_SliceFileInstantiates.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090546_ForceRegion_SliceFileInstantiates.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C6090546_ForceRegion_SliceFileInstantiates.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C6090546_ForceRegion_SliceFileInstantiates.py index f1c13291e3..0c360edee5 --- a/AutomatedTesting/Gem/PythonTests/physics/C6090546_ForceRegion_SliceFileInstantiates.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090546_ForceRegion_SliceFileInstantiates.py @@ -63,11 +63,6 @@ def C6090546_ForceRegion_SliceFileInstantiates(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -138,8 +133,5 @@ def C6090546_ForceRegion_SliceFileInstantiates(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6090546_ForceRegion_SliceFileInstantiates) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6090547_ForceRegion_ParentChildForceRegions.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090547_ForceRegion_ParentChildForceRegions.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C6090547_ForceRegion_ParentChildForceRegions.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C6090547_ForceRegion_ParentChildForceRegions.py index 2091a1a1f4..f466680e0c --- a/AutomatedTesting/Gem/PythonTests/physics/C6090547_ForceRegion_ParentChildForceRegions.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090547_ForceRegion_ParentChildForceRegions.py @@ -72,11 +72,6 @@ def C6090547_ForceRegion_ParentChildForceRegions(): import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus import azlmbr.math as lymath @@ -199,8 +194,5 @@ def C6090547_ForceRegion_ParentChildForceRegions(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6090547_ForceRegion_ParentChildForceRegions) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6090550_ForceRegion_WorldSpaceForceNegative.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090550_ForceRegion_WorldSpaceForceNegative.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C6090550_ForceRegion_WorldSpaceForceNegative.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C6090550_ForceRegion_WorldSpaceForceNegative.py index 7b0586586b..7d6a8966b2 --- a/AutomatedTesting/Gem/PythonTests/physics/C6090550_ForceRegion_WorldSpaceForceNegative.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090550_ForceRegion_WorldSpaceForceNegative.py @@ -69,11 +69,6 @@ def C6090550_ForceRegion_WorldSpaceForceNegative(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus @@ -243,8 +238,5 @@ def C6090550_ForceRegion_WorldSpaceForceNegative(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6090550_ForceRegion_WorldSpaceForceNegative) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6090551_ForceRegion_LocalSpaceForceNegative.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090551_ForceRegion_LocalSpaceForceNegative.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C6090551_ForceRegion_LocalSpaceForceNegative.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C6090551_ForceRegion_LocalSpaceForceNegative.py index 6025777d86..48d08666fd --- a/AutomatedTesting/Gem/PythonTests/physics/C6090551_ForceRegion_LocalSpaceForceNegative.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090551_ForceRegion_LocalSpaceForceNegative.py @@ -69,11 +69,6 @@ def C6090551_ForceRegion_LocalSpaceForceNegative(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus @@ -243,8 +238,5 @@ def C6090551_ForceRegion_LocalSpaceForceNegative(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6090551_ForceRegion_LocalSpaceForceNegative) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6090552_ForceRegion_LinearDampingNegative.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090552_ForceRegion_LinearDampingNegative.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C6090552_ForceRegion_LinearDampingNegative.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C6090552_ForceRegion_LinearDampingNegative.py index 07f399a41a..100a07d346 --- a/AutomatedTesting/Gem/PythonTests/physics/C6090552_ForceRegion_LinearDampingNegative.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090552_ForceRegion_LinearDampingNegative.py @@ -68,11 +68,6 @@ def C6090552_ForceRegion_LinearDampingNegative(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus @@ -242,8 +237,5 @@ def C6090552_ForceRegion_LinearDampingNegative(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6090552_ForceRegion_LinearDampingNegative) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6090553_ForceRegion_SimpleDragForceOnRigidBodies.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090553_ForceRegion_SimpleDragForceOnRigidBodies.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C6090553_ForceRegion_SimpleDragForceOnRigidBodies.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C6090553_ForceRegion_SimpleDragForceOnRigidBodies.py index 57f6d13d8e..7b5904a3d7 --- a/AutomatedTesting/Gem/PythonTests/physics/C6090553_ForceRegion_SimpleDragForceOnRigidBodies.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090553_ForceRegion_SimpleDragForceOnRigidBodies.py @@ -63,11 +63,6 @@ def C6090553_ForceRegion_SimpleDragForceOnRigidBodies(): import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus @@ -174,8 +169,5 @@ def C6090553_ForceRegion_SimpleDragForceOnRigidBodies(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6090553_ForceRegion_SimpleDragForceOnRigidBodies) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6090554_ForceRegion_PointForceNegative.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090554_ForceRegion_PointForceNegative.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C6090554_ForceRegion_PointForceNegative.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C6090554_ForceRegion_PointForceNegative.py index fd3846a801..0b6b9a8b58 --- a/AutomatedTesting/Gem/PythonTests/physics/C6090554_ForceRegion_PointForceNegative.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090554_ForceRegion_PointForceNegative.py @@ -69,11 +69,6 @@ def C6090554_ForceRegion_PointForceNegative(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus @@ -243,8 +238,5 @@ def C6090554_ForceRegion_PointForceNegative(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6090554_ForceRegion_PointForceNegative) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6090555_ForceRegion_SplineFollowOnRigidBodies.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090555_ForceRegion_SplineFollowOnRigidBodies.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C6090555_ForceRegion_SplineFollowOnRigidBodies.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C6090555_ForceRegion_SplineFollowOnRigidBodies.py index 800e9245dc..7a642c6c59 --- a/AutomatedTesting/Gem/PythonTests/physics/C6090555_ForceRegion_SplineFollowOnRigidBodies.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6090555_ForceRegion_SplineFollowOnRigidBodies.py @@ -65,11 +65,6 @@ def C6090555_ForceRegion_SplineFollowOnRigidBodies(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -176,8 +171,5 @@ def C6090555_ForceRegion_SplineFollowOnRigidBodies(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6090555_ForceRegion_SplineFollowOnRigidBodies) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6321601_Force_HighValuesDirectionAxes.py b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6321601_Force_HighValuesDirectionAxes.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C6321601_Force_HighValuesDirectionAxes.py rename to AutomatedTesting/Gem/PythonTests/physics/force_region/C6321601_Force_HighValuesDirectionAxes.py index 6c94e7aea9..47cc085479 --- a/AutomatedTesting/Gem/PythonTests/physics/C6321601_Force_HighValuesDirectionAxes.py +++ b/AutomatedTesting/Gem/PythonTests/physics/force_region/C6321601_Force_HighValuesDirectionAxes.py @@ -90,11 +90,6 @@ def C6321601_Force_HighValuesDirectionAxes(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper from editor_python_test_tools.utils import Tracer @@ -246,10 +241,6 @@ def C6321601_Force_HighValuesDirectionAxes(): Report.result(Tests.error_not_found, not has_physx_error()) - if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6321601_Force_HighValuesDirectionAxes) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14976307_Gravity_SetGravityWorks.py b/AutomatedTesting/Gem/PythonTests/physics/general/C14976307_Gravity_SetGravityWorks.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C14976307_Gravity_SetGravityWorks.py rename to AutomatedTesting/Gem/PythonTests/physics/general/C14976307_Gravity_SetGravityWorks.py index 1b50863ccd..335ef75649 --- a/AutomatedTesting/Gem/PythonTests/physics/C14976307_Gravity_SetGravityWorks.py +++ b/AutomatedTesting/Gem/PythonTests/physics/general/C14976307_Gravity_SetGravityWorks.py @@ -60,11 +60,6 @@ def C14976307_Gravity_SetGravityWorks(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -122,8 +117,5 @@ def C14976307_Gravity_SetGravityWorks(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14976307_Gravity_SetGravityWorks) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15425929_Undo_Redo.py b/AutomatedTesting/Gem/PythonTests/physics/general/C15425929_Undo_Redo.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C15425929_Undo_Redo.py rename to AutomatedTesting/Gem/PythonTests/physics/general/C15425929_Undo_Redo.py index 9595030b4b..f74c1d10cb --- a/AutomatedTesting/Gem/PythonTests/physics/C15425929_Undo_Redo.py +++ b/AutomatedTesting/Gem/PythonTests/physics/general/C15425929_Undo_Redo.py @@ -44,11 +44,6 @@ def C15425929_Undo_Redo(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper from editor_python_test_tools.utils import Tracer @@ -91,8 +86,5 @@ def C15425929_Undo_Redo(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15425929_Undo_Redo) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C19536274_GetCollisionName_PrintsName.py b/AutomatedTesting/Gem/PythonTests/physics/general/C19536274_GetCollisionName_PrintsName.py old mode 100755 new mode 100644 similarity index 93% rename from AutomatedTesting/Gem/PythonTests/physics/C19536274_GetCollisionName_PrintsName.py rename to AutomatedTesting/Gem/PythonTests/physics/general/C19536274_GetCollisionName_PrintsName.py index 4c035eea96..abf2045ed4 --- a/AutomatedTesting/Gem/PythonTests/physics/C19536274_GetCollisionName_PrintsName.py +++ b/AutomatedTesting/Gem/PythonTests/physics/general/C19536274_GetCollisionName_PrintsName.py @@ -17,7 +17,7 @@ class Tests(): # fmt: on -def run(): +def C19536274_GetCollisionName_PrintsName(): """ Summary: Loads a level that contains an entity with script canvas and PhysX Collider components @@ -43,9 +43,7 @@ def run(): :return: None """ # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import TestHelper as helper @@ -66,4 +64,5 @@ def run(): if __name__ == "__main__": - run() + from editor_python_test_tools.utils import Report + Report.start_test(C19536274_GetCollisionName_PrintsName) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C19536277_GetCollisionName_PrintsNothing.py b/AutomatedTesting/Gem/PythonTests/physics/general/C19536277_GetCollisionName_PrintsNothing.py old mode 100755 new mode 100644 similarity index 93% rename from AutomatedTesting/Gem/PythonTests/physics/C19536277_GetCollisionName_PrintsNothing.py rename to AutomatedTesting/Gem/PythonTests/physics/general/C19536277_GetCollisionName_PrintsNothing.py index 1bf5248a1f..a0d242542f --- a/AutomatedTesting/Gem/PythonTests/physics/C19536277_GetCollisionName_PrintsNothing.py +++ b/AutomatedTesting/Gem/PythonTests/physics/general/C19536277_GetCollisionName_PrintsNothing.py @@ -17,7 +17,7 @@ class Tests(): # fmt: on -def run(): +def C19536277_GetCollisionName_PrintsNothing(): """ Summary: Loads a level that contains an entity with script canvas and PhysX Collider components @@ -43,9 +43,7 @@ def run(): :return: None """ # Helper Files - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity from editor_python_test_tools.utils import TestHelper as helper @@ -66,4 +64,5 @@ def run(): if __name__ == "__main__": - run() + from editor_python_test_tools.utils import Report + Report.start_test(C19536277_GetCollisionName_PrintsNothing) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C29032500_EditorComponents_WorldBodyBusWorks.py b/AutomatedTesting/Gem/PythonTests/physics/general/C29032500_EditorComponents_WorldBodyBusWorks.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C29032500_EditorComponents_WorldBodyBusWorks.py rename to AutomatedTesting/Gem/PythonTests/physics/general/C29032500_EditorComponents_WorldBodyBusWorks.py index a022cc7011..0f7f91dafb --- a/AutomatedTesting/Gem/PythonTests/physics/C29032500_EditorComponents_WorldBodyBusWorks.py +++ b/AutomatedTesting/Gem/PythonTests/physics/general/C29032500_EditorComponents_WorldBodyBusWorks.py @@ -82,11 +82,6 @@ def C29032500_EditorComponents_WorldBodyBusWorks(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus import math @@ -154,8 +149,5 @@ def C29032500_EditorComponents_WorldBodyBusWorks(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C29032500_EditorComponents_WorldBodyBusWorks) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5689529_Verify_Terrain_RigidBody_Collider_Mesh.py b/AutomatedTesting/Gem/PythonTests/physics/general/C5689529_Verify_Terrain_RigidBody_Collider_Mesh.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C5689529_Verify_Terrain_RigidBody_Collider_Mesh.py rename to AutomatedTesting/Gem/PythonTests/physics/general/C5689529_Verify_Terrain_RigidBody_Collider_Mesh.py index 1436a98536..f011e65972 --- a/AutomatedTesting/Gem/PythonTests/physics/C5689529_Verify_Terrain_RigidBody_Collider_Mesh.py +++ b/AutomatedTesting/Gem/PythonTests/physics/general/C5689529_Verify_Terrain_RigidBody_Collider_Mesh.py @@ -58,11 +58,6 @@ def C5689529_Verify_Terrain_RigidBody_Collider_Mesh(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -106,8 +101,5 @@ def C5689529_Verify_Terrain_RigidBody_Collider_Mesh(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5689529_Verify_Terrain_RigidBody_Collider_Mesh) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6131473_StaticSlice_OnDynamicSliceSpawn.py b/AutomatedTesting/Gem/PythonTests/physics/general/C6131473_StaticSlice_OnDynamicSliceSpawn.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C6131473_StaticSlice_OnDynamicSliceSpawn.py rename to AutomatedTesting/Gem/PythonTests/physics/general/C6131473_StaticSlice_OnDynamicSliceSpawn.py index 16fff25a25..e28893dee3 --- a/AutomatedTesting/Gem/PythonTests/physics/C6131473_StaticSlice_OnDynamicSliceSpawn.py +++ b/AutomatedTesting/Gem/PythonTests/physics/general/C6131473_StaticSlice_OnDynamicSliceSpawn.py @@ -58,11 +58,6 @@ def C6131473_StaticSlice_OnDynamicSliceSpawn(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -103,8 +98,5 @@ def C6131473_StaticSlice_OnDynamicSliceSpawn(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6131473_StaticSlice_OnDynamicSliceSpawn) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243580_Joints_Fixed2BodiesConstrained.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243580_Joints_Fixed2BodiesConstrained.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C18243580_Joints_Fixed2BodiesConstrained.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243580_Joints_Fixed2BodiesConstrained.py index 24adc2ff71..ceabb91a28 --- a/AutomatedTesting/Gem/PythonTests/physics/C18243580_Joints_Fixed2BodiesConstrained.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243580_Joints_Fixed2BodiesConstrained.py @@ -49,11 +49,6 @@ def C18243580_Joints_Fixed2BodiesConstrained(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -99,8 +94,5 @@ def C18243580_Joints_Fixed2BodiesConstrained(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243580_Joints_Fixed2BodiesConstrained) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243581_Joints_FixedBreakable.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243581_Joints_FixedBreakable.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C18243581_Joints_FixedBreakable.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243581_Joints_FixedBreakable.py index fb3da2c4e5..716df85c67 --- a/AutomatedTesting/Gem/PythonTests/physics/C18243581_Joints_FixedBreakable.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243581_Joints_FixedBreakable.py @@ -48,11 +48,6 @@ def C18243581_Joints_FixedBreakable(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -98,8 +93,5 @@ def C18243581_Joints_FixedBreakable(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243581_Joints_FixedBreakable) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243582_Joints_FixedLeadFollowerCollide.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243582_Joints_FixedLeadFollowerCollide.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C18243582_Joints_FixedLeadFollowerCollide.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243582_Joints_FixedLeadFollowerCollide.py index 0c7a1d7007..0f130a300b --- a/AutomatedTesting/Gem/PythonTests/physics/C18243582_Joints_FixedLeadFollowerCollide.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243582_Joints_FixedLeadFollowerCollide.py @@ -50,11 +50,6 @@ def C18243582_Joints_FixedLeadFollowerCollide(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -93,8 +88,5 @@ def C18243582_Joints_FixedLeadFollowerCollide(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243582_Joints_FixedLeadFollowerCollide) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243583_Joints_Hinge2BodiesConstrained.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243583_Joints_Hinge2BodiesConstrained.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C18243583_Joints_Hinge2BodiesConstrained.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243583_Joints_Hinge2BodiesConstrained.py index e91a4a495e..e9b11bc198 --- a/AutomatedTesting/Gem/PythonTests/physics/C18243583_Joints_Hinge2BodiesConstrained.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243583_Joints_Hinge2BodiesConstrained.py @@ -52,11 +52,6 @@ def C18243583_Joints_Hinge2BodiesConstrained(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -116,8 +111,5 @@ def C18243583_Joints_Hinge2BodiesConstrained(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243583_Joints_Hinge2BodiesConstrained) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243584_Joints_HingeSoftLimitsConstrained.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243584_Joints_HingeSoftLimitsConstrained.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C18243584_Joints_HingeSoftLimitsConstrained.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243584_Joints_HingeSoftLimitsConstrained.py index d4bf9308d2..e100b61494 --- a/AutomatedTesting/Gem/PythonTests/physics/C18243584_Joints_HingeSoftLimitsConstrained.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243584_Joints_HingeSoftLimitsConstrained.py @@ -54,9 +54,7 @@ def C18243584_Joints_HingeSoftLimitsConstrained(): import sys import math - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -142,8 +140,5 @@ def C18243584_Joints_HingeSoftLimitsConstrained(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243584_Joints_HingeSoftLimitsConstrained) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243585_Joints_HingeNoLimitsConstrained.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243585_Joints_HingeNoLimitsConstrained.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C18243585_Joints_HingeNoLimitsConstrained.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243585_Joints_HingeNoLimitsConstrained.py index 3a734e1ef0..90ac80b1fa --- a/AutomatedTesting/Gem/PythonTests/physics/C18243585_Joints_HingeNoLimitsConstrained.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243585_Joints_HingeNoLimitsConstrained.py @@ -52,11 +52,6 @@ def C18243585_Joints_HingeNoLimitsConstrained(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -112,8 +107,5 @@ def C18243585_Joints_HingeNoLimitsConstrained(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243585_Joints_HingeNoLimitsConstrained) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243586_Joints_HingeLeadFollowerCollide.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243586_Joints_HingeLeadFollowerCollide.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C18243586_Joints_HingeLeadFollowerCollide.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243586_Joints_HingeLeadFollowerCollide.py index f22b1b0c9c..2b5b95939f --- a/AutomatedTesting/Gem/PythonTests/physics/C18243586_Joints_HingeLeadFollowerCollide.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243586_Joints_HingeLeadFollowerCollide.py @@ -49,11 +49,6 @@ def C18243586_Joints_HingeLeadFollowerCollide(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -92,8 +87,5 @@ def C18243586_Joints_HingeLeadFollowerCollide(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243586_Joints_HingeLeadFollowerCollide) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243587_Joints_HingeBreakable.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243587_Joints_HingeBreakable.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C18243587_Joints_HingeBreakable.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243587_Joints_HingeBreakable.py index c11851bde4..b1ea7e123a --- a/AutomatedTesting/Gem/PythonTests/physics/C18243587_Joints_HingeBreakable.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243587_Joints_HingeBreakable.py @@ -50,11 +50,6 @@ def C18243587_Joints_HingeBreakable(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -110,8 +105,5 @@ def C18243587_Joints_HingeBreakable(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243587_Joints_HingeBreakable) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243588_Joints_Ball2BodiesConstrained.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243588_Joints_Ball2BodiesConstrained.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C18243588_Joints_Ball2BodiesConstrained.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243588_Joints_Ball2BodiesConstrained.py index 107140d7d0..fd8556660a --- a/AutomatedTesting/Gem/PythonTests/physics/C18243588_Joints_Ball2BodiesConstrained.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243588_Joints_Ball2BodiesConstrained.py @@ -51,11 +51,6 @@ def C18243588_Joints_Ball2BodiesConstrained(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -114,8 +109,5 @@ def C18243588_Joints_Ball2BodiesConstrained(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243588_Joints_Ball2BodiesConstrained) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243589_Joints_BallSoftLimitsConstrained.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243589_Joints_BallSoftLimitsConstrained.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C18243589_Joints_BallSoftLimitsConstrained.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243589_Joints_BallSoftLimitsConstrained.py index 2c6f1f34b0..30747bc2eb --- a/AutomatedTesting/Gem/PythonTests/physics/C18243589_Joints_BallSoftLimitsConstrained.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243589_Joints_BallSoftLimitsConstrained.py @@ -55,9 +55,7 @@ def C18243589_Joints_BallSoftLimitsConstrained(): import sys import math - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -135,8 +133,5 @@ def C18243589_Joints_BallSoftLimitsConstrained(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243589_Joints_BallSoftLimitsConstrained) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243590_Joints_BallNoLimitsConstrained.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243590_Joints_BallNoLimitsConstrained.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C18243590_Joints_BallNoLimitsConstrained.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243590_Joints_BallNoLimitsConstrained.py index b5de805d16..990f4f826b --- a/AutomatedTesting/Gem/PythonTests/physics/C18243590_Joints_BallNoLimitsConstrained.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243590_Joints_BallNoLimitsConstrained.py @@ -54,11 +54,6 @@ def C18243590_Joints_BallNoLimitsConstrained(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -113,8 +108,5 @@ def C18243590_Joints_BallNoLimitsConstrained(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243590_Joints_BallNoLimitsConstrained) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243591_Joints_BallLeadFollowerCollide.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243591_Joints_BallLeadFollowerCollide.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C18243591_Joints_BallLeadFollowerCollide.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243591_Joints_BallLeadFollowerCollide.py index 2e73232bd9..47422d1508 --- a/AutomatedTesting/Gem/PythonTests/physics/C18243591_Joints_BallLeadFollowerCollide.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243591_Joints_BallLeadFollowerCollide.py @@ -49,11 +49,6 @@ def C18243591_Joints_BallLeadFollowerCollide(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -92,8 +87,5 @@ def C18243591_Joints_BallLeadFollowerCollide(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243591_Joints_BallLeadFollowerCollide) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243592_Joints_BallBreakable.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243592_Joints_BallBreakable.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C18243592_Joints_BallBreakable.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243592_Joints_BallBreakable.py index 6539b1b413..6182c312dc --- a/AutomatedTesting/Gem/PythonTests/physics/C18243592_Joints_BallBreakable.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243592_Joints_BallBreakable.py @@ -49,11 +49,6 @@ def C18243592_Joints_BallBreakable(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -108,8 +103,5 @@ def C18243592_Joints_BallBreakable(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243592_Joints_BallBreakable) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18243593_Joints_GlobalFrameConstrained.py b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243593_Joints_GlobalFrameConstrained.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C18243593_Joints_GlobalFrameConstrained.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/C18243593_Joints_GlobalFrameConstrained.py index 63708d7571..bd527f10f8 --- a/AutomatedTesting/Gem/PythonTests/physics/C18243593_Joints_GlobalFrameConstrained.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/C18243593_Joints_GlobalFrameConstrained.py @@ -53,11 +53,6 @@ def C18243593_Joints_GlobalFrameConstrained(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -121,8 +116,5 @@ def C18243593_Joints_GlobalFrameConstrained(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18243593_Joints_GlobalFrameConstrained) diff --git a/AutomatedTesting/Gem/PythonTests/physics/JointsHelper.py b/AutomatedTesting/Gem/PythonTests/physics/joints/JointsHelper.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/JointsHelper.py rename to AutomatedTesting/Gem/PythonTests/physics/joints/JointsHelper.py index 12c05c3ced..6226f42534 --- a/AutomatedTesting/Gem/PythonTests/physics/JointsHelper.py +++ b/AutomatedTesting/Gem/PythonTests/physics/joints/JointsHelper.py @@ -5,10 +5,6 @@ For complete copyright and license terms please see the LICENSE at the root of t SPDX-License-Identifier: Apache-2.0 OR MIT """ -import ImportPathHelper as imports - -imports.init() - from editor_python_test_tools.utils import Report import azlmbr.legacy.general as general import azlmbr.bus diff --git a/AutomatedTesting/Gem/PythonTests/physics/AddModifyDelete_Utils.py b/AutomatedTesting/Gem/PythonTests/physics/material/AddModifyDelete_Utils.py old mode 100755 new mode 100644 similarity index 100% rename from AutomatedTesting/Gem/PythonTests/physics/AddModifyDelete_Utils.py rename to AutomatedTesting/Gem/PythonTests/physics/material/AddModifyDelete_Utils.py diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after.py b/AutomatedTesting/Gem/PythonTests/physics/material/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after.py index 96e05b88fb..de1945bc8d --- a/AutomatedTesting/Gem/PythonTests/physics/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after.py @@ -99,11 +99,6 @@ def C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -285,8 +280,5 @@ def C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before.py b/AutomatedTesting/Gem/PythonTests/physics/material/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before.py index 95e3acefd7..46262f3f77 --- a/AutomatedTesting/Gem/PythonTests/physics/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before.py @@ -92,11 +92,6 @@ def C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -237,8 +232,5 @@ def C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15096735_Materials_DefaultLibraryConsistency.py b/AutomatedTesting/Gem/PythonTests/physics/material/C15096735_Materials_DefaultLibraryConsistency.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C15096735_Materials_DefaultLibraryConsistency.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C15096735_Materials_DefaultLibraryConsistency.py index 18ffe68415..75c9849756 --- a/AutomatedTesting/Gem/PythonTests/physics/C15096735_Materials_DefaultLibraryConsistency.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C15096735_Materials_DefaultLibraryConsistency.py @@ -140,11 +140,6 @@ def C15096735_Materials_DefaultLibraryConsistency(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -417,8 +412,5 @@ def C15096735_Materials_DefaultLibraryConsistency(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15096735_Materials_DefaultLibraryConsistency) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15096737_Materials_DefaultMaterialLibraryChanges.py b/AutomatedTesting/Gem/PythonTests/physics/material/C15096737_Materials_DefaultMaterialLibraryChanges.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C15096737_Materials_DefaultMaterialLibraryChanges.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C15096737_Materials_DefaultMaterialLibraryChanges.py index 4dae4c536c..a4c65fc24c --- a/AutomatedTesting/Gem/PythonTests/physics/C15096737_Materials_DefaultMaterialLibraryChanges.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C15096737_Materials_DefaultMaterialLibraryChanges.py @@ -107,9 +107,7 @@ def C15096737_Materials_DefaultMaterialLibraryChanges(): import os import sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -293,8 +291,5 @@ def C15096737_Materials_DefaultMaterialLibraryChanges(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15096737_Materials_DefaultMaterialLibraryChanges) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15096740_Material_LibraryUpdatedCorrectly.py b/AutomatedTesting/Gem/PythonTests/physics/material/C15096740_Material_LibraryUpdatedCorrectly.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C15096740_Material_LibraryUpdatedCorrectly.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C15096740_Material_LibraryUpdatedCorrectly.py index 341597e36a..88c51bae8a --- a/AutomatedTesting/Gem/PythonTests/physics/C15096740_Material_LibraryUpdatedCorrectly.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C15096740_Material_LibraryUpdatedCorrectly.py @@ -49,15 +49,13 @@ def C15096740_Material_LibraryUpdatedCorrectly(): # Built-in Imports import os - import ImportPathHelper as imports - imports.init() # Helper file Imports from editor_python_test_tools.editor_entity_utils import EditorEntity from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper - from asset_utils import Asset + from editor_python_test_tools.asset_utils import Asset # Open 3D Engine Imports import azlmbr.asset as azasset @@ -101,8 +99,5 @@ def C15096740_Material_LibraryUpdatedCorrectly(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15096740_Material_LibraryUpdatedCorrectly) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15308221_Material_ComponentsInSyncWithLibrary.py b/AutomatedTesting/Gem/PythonTests/physics/material/C15308221_Material_ComponentsInSyncWithLibrary.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C15308221_Material_ComponentsInSyncWithLibrary.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C15308221_Material_ComponentsInSyncWithLibrary.py index 349e824a49..b29709e95b --- a/AutomatedTesting/Gem/PythonTests/physics/C15308221_Material_ComponentsInSyncWithLibrary.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C15308221_Material_ComponentsInSyncWithLibrary.py @@ -105,11 +105,6 @@ def C15308221_Material_ComponentsInSyncWithLibrary(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus as bus import azlmbr.components @@ -244,8 +239,5 @@ def C15308221_Material_ComponentsInSyncWithLibrary(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15308221_Material_ComponentsInSyncWithLibrary) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15425935_Material_LibraryUpdatedAcrossLevels.py b/AutomatedTesting/Gem/PythonTests/physics/material/C15425935_Material_LibraryUpdatedAcrossLevels.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C15425935_Material_LibraryUpdatedAcrossLevels.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C15425935_Material_LibraryUpdatedAcrossLevels.py index 283b8e3d55..91452a1173 --- a/AutomatedTesting/Gem/PythonTests/physics/C15425935_Material_LibraryUpdatedAcrossLevels.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C15425935_Material_LibraryUpdatedAcrossLevels.py @@ -112,12 +112,6 @@ def C15425935_Material_LibraryUpdatedAcrossLevels(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -307,8 +301,5 @@ def C15425935_Material_LibraryUpdatedAcrossLevels(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15425935_Material_LibraryUpdatedAcrossLevels) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15556261_PhysXMaterials_CharacterControllerMaterialAssignment.py b/AutomatedTesting/Gem/PythonTests/physics/material/C15556261_PhysXMaterials_CharacterControllerMaterialAssignment.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C15556261_PhysXMaterials_CharacterControllerMaterialAssignment.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C15556261_PhysXMaterials_CharacterControllerMaterialAssignment.py index 88abe8dcd1..4d806cda11 --- a/AutomatedTesting/Gem/PythonTests/physics/C15556261_PhysXMaterials_CharacterControllerMaterialAssignment.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C15556261_PhysXMaterials_CharacterControllerMaterialAssignment.py @@ -79,11 +79,6 @@ def C15556261_PhysXMaterials_CharacterControllerMaterialAssignment(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper import azlmbr.legacy.general as general @@ -202,8 +197,5 @@ def C15556261_PhysXMaterials_CharacterControllerMaterialAssignment(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15556261_PhysXMaterials_CharacterControllerMaterialAssignment) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15563573_Material_AddModifyDeleteOnCharacterController.py b/AutomatedTesting/Gem/PythonTests/physics/material/C15563573_Material_AddModifyDeleteOnCharacterController.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C15563573_Material_AddModifyDeleteOnCharacterController.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C15563573_Material_AddModifyDeleteOnCharacterController.py index ca00b30479..cf38ddc11c --- a/AutomatedTesting/Gem/PythonTests/physics/C15563573_Material_AddModifyDeleteOnCharacterController.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C15563573_Material_AddModifyDeleteOnCharacterController.py @@ -107,11 +107,6 @@ def C15563573_Material_AddModifyDeleteOnCharacterController(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.math as lymath @@ -197,8 +192,5 @@ def C15563573_Material_AddModifyDeleteOnCharacterController(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15563573_Material_AddModifyDeleteOnCharacterController) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18977601_Material_FrictionCombinePriority.py b/AutomatedTesting/Gem/PythonTests/physics/material/C18977601_Material_FrictionCombinePriority.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C18977601_Material_FrictionCombinePriority.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C18977601_Material_FrictionCombinePriority.py index 14103ad223..4cef743854 --- a/AutomatedTesting/Gem/PythonTests/physics/C18977601_Material_FrictionCombinePriority.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C18977601_Material_FrictionCombinePriority.py @@ -126,12 +126,6 @@ def C18977601_Material_FrictionCombinePriority(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -357,8 +351,5 @@ def C18977601_Material_FrictionCombinePriority(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18977601_Material_FrictionCombinePriority) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C18981526_Material_RestitutionCombinePriority.py b/AutomatedTesting/Gem/PythonTests/physics/material/C18981526_Material_RestitutionCombinePriority.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C18981526_Material_RestitutionCombinePriority.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C18981526_Material_RestitutionCombinePriority.py index 696eb1115a..9663453df2 --- a/AutomatedTesting/Gem/PythonTests/physics/C18981526_Material_RestitutionCombinePriority.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C18981526_Material_RestitutionCombinePriority.py @@ -126,11 +126,6 @@ def C18981526_Material_RestitutionCombinePriority(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -417,8 +412,5 @@ def C18981526_Material_RestitutionCombinePriority(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C18981526_Material_RestitutionCombinePriority) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4044455_Material_libraryChangesInstantly.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4044455_Material_libraryChangesInstantly.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4044455_Material_libraryChangesInstantly.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4044455_Material_libraryChangesInstantly.py index 8a84f5302f..8eb2e7e9a4 --- a/AutomatedTesting/Gem/PythonTests/physics/C4044455_Material_libraryChangesInstantly.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4044455_Material_libraryChangesInstantly.py @@ -173,11 +173,6 @@ def C4044455_Material_libraryChangesInstantly(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -478,8 +473,5 @@ def C4044455_Material_libraryChangesInstantly(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4044455_Material_libraryChangesInstantly) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4044456_Material_FrictionCombine.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4044456_Material_FrictionCombine.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4044456_Material_FrictionCombine.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4044456_Material_FrictionCombine.py index 3048224d79..8c3b389264 --- a/AutomatedTesting/Gem/PythonTests/physics/C4044456_Material_FrictionCombine.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4044456_Material_FrictionCombine.py @@ -91,11 +91,6 @@ def C4044456_Material_FrictionCombine(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -213,8 +208,5 @@ def C4044456_Material_FrictionCombine(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4044456_Material_FrictionCombine) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4044457_Material_RestitutionCombine.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4044457_Material_RestitutionCombine.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4044457_Material_RestitutionCombine.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4044457_Material_RestitutionCombine.py index 2ba038c928..a20c7e49f7 --- a/AutomatedTesting/Gem/PythonTests/physics/C4044457_Material_RestitutionCombine.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4044457_Material_RestitutionCombine.py @@ -96,11 +96,6 @@ def C4044457_Material_RestitutionCombine(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -245,8 +240,5 @@ def C4044457_Material_RestitutionCombine(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4044457_Material_RestitutionCombine) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4044459_Material_DynamicFriction.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4044459_Material_DynamicFriction.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4044459_Material_DynamicFriction.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4044459_Material_DynamicFriction.py index 096a1bc742..cdf2816f17 --- a/AutomatedTesting/Gem/PythonTests/physics/C4044459_Material_DynamicFriction.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4044459_Material_DynamicFriction.py @@ -82,11 +82,6 @@ def C4044459_Material_DynamicFriction(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -191,8 +186,5 @@ def C4044459_Material_DynamicFriction(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4044459_Material_DynamicFriction) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4044460_Material_StaticFriction.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4044460_Material_StaticFriction.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4044460_Material_StaticFriction.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4044460_Material_StaticFriction.py index 9730b28e73..5558f01222 --- a/AutomatedTesting/Gem/PythonTests/physics/C4044460_Material_StaticFriction.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4044460_Material_StaticFriction.py @@ -80,11 +80,6 @@ def C4044460_Material_StaticFriction(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -188,8 +183,5 @@ def C4044460_Material_StaticFriction(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4044460_Material_StaticFriction) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4044461_Material_Restitution.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4044461_Material_Restitution.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4044461_Material_Restitution.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4044461_Material_Restitution.py index 9cb54331cb..b077af1593 --- a/AutomatedTesting/Gem/PythonTests/physics/C4044461_Material_Restitution.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4044461_Material_Restitution.py @@ -87,11 +87,6 @@ def C4044461_Material_Restitution(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -230,8 +225,5 @@ def C4044461_Material_Restitution(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4044461_Material_Restitution) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4044694_Material_EmptyLibraryUsesDefault.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4044694_Material_EmptyLibraryUsesDefault.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4044694_Material_EmptyLibraryUsesDefault.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4044694_Material_EmptyLibraryUsesDefault.py index 4cf092d3bf..8cba90cba8 --- a/AutomatedTesting/Gem/PythonTests/physics/C4044694_Material_EmptyLibraryUsesDefault.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4044694_Material_EmptyLibraryUsesDefault.py @@ -66,11 +66,6 @@ def C4044694_Material_EmptyLibraryUsesDefault(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus as bus import azlmbr.components @@ -189,8 +184,5 @@ def C4044694_Material_EmptyLibraryUsesDefault(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4044694_Material_EmptyLibraryUsesDefault) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4044697_Material_PerfaceMaterialValidation.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4044697_Material_PerfaceMaterialValidation.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4044697_Material_PerfaceMaterialValidation.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4044697_Material_PerfaceMaterialValidation.py index e365a799aa..9ee8d404d7 --- a/AutomatedTesting/Gem/PythonTests/physics/C4044697_Material_PerfaceMaterialValidation.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4044697_Material_PerfaceMaterialValidation.py @@ -107,11 +107,6 @@ def C4044697_Material_PerfaceMaterialValidation(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -302,8 +297,5 @@ def C4044697_Material_PerfaceMaterialValidation(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4044697_Material_PerfaceMaterialValidation) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4888315_Material_AddModifyDeleteOnCollider.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4888315_Material_AddModifyDeleteOnCollider.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4888315_Material_AddModifyDeleteOnCollider.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4888315_Material_AddModifyDeleteOnCollider.py index d66cf17b5f..61c378d287 --- a/AutomatedTesting/Gem/PythonTests/physics/C4888315_Material_AddModifyDeleteOnCollider.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4888315_Material_AddModifyDeleteOnCollider.py @@ -90,11 +90,6 @@ def C4888315_Material_AddModifyDeleteOnCollider(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.math as lymath @@ -176,8 +171,5 @@ def C4888315_Material_AddModifyDeleteOnCollider(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4888315_Material_AddModifyDeleteOnCollider) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4925577_Materials_MaterialAssignedToTerrain.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4925577_Materials_MaterialAssignedToTerrain.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4925577_Materials_MaterialAssignedToTerrain.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4925577_Materials_MaterialAssignedToTerrain.py index feafce07d5..219e12fdb2 --- a/AutomatedTesting/Gem/PythonTests/physics/C4925577_Materials_MaterialAssignedToTerrain.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4925577_Materials_MaterialAssignedToTerrain.py @@ -76,11 +76,6 @@ def C4925577_Materials_MaterialAssignedToTerrain(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -305,8 +300,5 @@ def C4925577_Materials_MaterialAssignedToTerrain(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4925577_Materials_MaterialAssignedToTerrain) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4925579_Material_AddModifyDeleteOnTerrain.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4925579_Material_AddModifyDeleteOnTerrain.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4925579_Material_AddModifyDeleteOnTerrain.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4925579_Material_AddModifyDeleteOnTerrain.py index db2093047e..8b3d72a932 --- a/AutomatedTesting/Gem/PythonTests/physics/C4925579_Material_AddModifyDeleteOnTerrain.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4925579_Material_AddModifyDeleteOnTerrain.py @@ -91,11 +91,6 @@ def C4925579_Material_AddModifyDeleteOnTerrain(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.math as lymath @@ -176,8 +171,5 @@ def C4925579_Material_AddModifyDeleteOnTerrain(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4925579_Material_AddModifyDeleteOnTerrain) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4925580_Material_RagdollBonesMaterial.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4925580_Material_RagdollBonesMaterial.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4925580_Material_RagdollBonesMaterial.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4925580_Material_RagdollBonesMaterial.py index 203db0bd39..96316b1cdf --- a/AutomatedTesting/Gem/PythonTests/physics/C4925580_Material_RagdollBonesMaterial.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4925580_Material_RagdollBonesMaterial.py @@ -66,11 +66,6 @@ def C4925580_Material_RagdollBonesMaterial(): # Setup path import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus import azlmbr.components @@ -194,8 +189,5 @@ def C4925580_Material_RagdollBonesMaterial(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4925580_Material_RagdollBonesMaterial) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4925582_Material_AddModifyDeleteOnRagdollBones.py b/AutomatedTesting/Gem/PythonTests/physics/material/C4925582_Material_AddModifyDeleteOnRagdollBones.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4925582_Material_AddModifyDeleteOnRagdollBones.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C4925582_Material_AddModifyDeleteOnRagdollBones.py index acdfb98411..0abfae08f9 --- a/AutomatedTesting/Gem/PythonTests/physics/C4925582_Material_AddModifyDeleteOnRagdollBones.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C4925582_Material_AddModifyDeleteOnRagdollBones.py @@ -92,11 +92,6 @@ def C4925582_Material_AddModifyDeleteOnRagdollBones(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus as bus import azlmbr.components @@ -212,8 +207,5 @@ def C4925582_Material_AddModifyDeleteOnRagdollBones(): Report.info("Modified max bouce: " + str(modified_ragdoll.bounces[0])) if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4925582_Material_AddModifyDeleteOnRagdollBones) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5296614_PhysXMaterial_ColliderShape.py b/AutomatedTesting/Gem/PythonTests/physics/material/C5296614_PhysXMaterial_ColliderShape.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5296614_PhysXMaterial_ColliderShape.py rename to AutomatedTesting/Gem/PythonTests/physics/material/C5296614_PhysXMaterial_ColliderShape.py index 82275d1b0d..de7ed4db9b --- a/AutomatedTesting/Gem/PythonTests/physics/C5296614_PhysXMaterial_ColliderShape.py +++ b/AutomatedTesting/Gem/PythonTests/physics/material/C5296614_PhysXMaterial_ColliderShape.py @@ -60,11 +60,6 @@ def C5296614_PhysXMaterial_ColliderShape(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper import azlmbr.legacy.general as general @@ -152,8 +147,5 @@ def C5296614_PhysXMaterial_ColliderShape(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5296614_PhysXMaterial_ColliderShape) diff --git a/AutomatedTesting/Gem/PythonTests/physics/Physmaterial_Editor.py b/AutomatedTesting/Gem/PythonTests/physics/material/Physmaterial_Editor.py old mode 100755 new mode 100644 similarity index 100% rename from AutomatedTesting/Gem/PythonTests/physics/Physmaterial_Editor.py rename to AutomatedTesting/Gem/PythonTests/physics/material/Physmaterial_Editor.py diff --git a/AutomatedTesting/Gem/PythonTests/physics/C13895144_Ragdoll_ChangeLevel.py b/AutomatedTesting/Gem/PythonTests/physics/ragdoll/C13895144_Ragdoll_ChangeLevel.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C13895144_Ragdoll_ChangeLevel.py rename to AutomatedTesting/Gem/PythonTests/physics/ragdoll/C13895144_Ragdoll_ChangeLevel.py index 28baa2bcf3..c7ff00a7e3 --- a/AutomatedTesting/Gem/PythonTests/physics/C13895144_Ragdoll_ChangeLevel.py +++ b/AutomatedTesting/Gem/PythonTests/physics/ragdoll/C13895144_Ragdoll_ChangeLevel.py @@ -58,11 +58,6 @@ def C13895144_Ragdoll_ChangeLevel(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -104,8 +99,5 @@ def C13895144_Ragdoll_ChangeLevel(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C13895144_Ragdoll_ChangeLevel) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14654882_Ragdoll_ragdollAPTest.py b/AutomatedTesting/Gem/PythonTests/physics/ragdoll/C14654882_Ragdoll_ragdollAPTest.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C14654882_Ragdoll_ragdollAPTest.py rename to AutomatedTesting/Gem/PythonTests/physics/ragdoll/C14654882_Ragdoll_ragdollAPTest.py index 024126ef55..56784b0c72 --- a/AutomatedTesting/Gem/PythonTests/physics/C14654882_Ragdoll_ragdollAPTest.py +++ b/AutomatedTesting/Gem/PythonTests/physics/ragdoll/C14654882_Ragdoll_ragdollAPTest.py @@ -69,11 +69,6 @@ def C14654882_Ragdoll_ragdollAPTest(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -129,8 +124,5 @@ def C14654882_Ragdoll_ragdollAPTest(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14654882_Ragdoll_ragdollAPTest) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C17411467_AddPhysxRagdollComponent.py b/AutomatedTesting/Gem/PythonTests/physics/ragdoll/C17411467_AddPhysxRagdollComponent.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C17411467_AddPhysxRagdollComponent.py rename to AutomatedTesting/Gem/PythonTests/physics/ragdoll/C17411467_AddPhysxRagdollComponent.py index ea58f84dad..9c02239d73 --- a/AutomatedTesting/Gem/PythonTests/physics/C17411467_AddPhysxRagdollComponent.py +++ b/AutomatedTesting/Gem/PythonTests/physics/ragdoll/C17411467_AddPhysxRagdollComponent.py @@ -9,7 +9,6 @@ Test Case Title : Check that Physx Ragdoll component can be added without errors """ - # fmt: off class Tests(): create_test_entity = ("Entity created successfully", "Failed to create Entity") @@ -45,10 +44,6 @@ def C17411467_AddPhysxRagdollComponent(): :return: None """ - # Helper file Imports - import ImportPathHelper as imports - - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.editor_entity_utils import EditorEntity from editor_python_test_tools.utils import TestHelper as helper @@ -93,8 +88,5 @@ def C17411467_AddPhysxRagdollComponent(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C17411467_AddPhysxRagdollComponent) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C28978033_Ragdoll_WorldBodyBusTests.py b/AutomatedTesting/Gem/PythonTests/physics/ragdoll/C28978033_Ragdoll_WorldBodyBusTests.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C28978033_Ragdoll_WorldBodyBusTests.py rename to AutomatedTesting/Gem/PythonTests/physics/ragdoll/C28978033_Ragdoll_WorldBodyBusTests.py index b22bcf5a36..d917449daf --- a/AutomatedTesting/Gem/PythonTests/physics/C28978033_Ragdoll_WorldBodyBusTests.py +++ b/AutomatedTesting/Gem/PythonTests/physics/ragdoll/C28978033_Ragdoll_WorldBodyBusTests.py @@ -45,11 +45,6 @@ def C28978033_Ragdoll_WorldBodyBusTests(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus from editor_python_test_tools.utils import Report @@ -116,8 +111,5 @@ def C28978033_Ragdoll_WorldBodyBusTests(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C28978033_Ragdoll_WorldBodyBusTests) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C13351703_COM_NotIncludeTriggerShapes.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C13351703_COM_NotIncludeTriggerShapes.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C13351703_COM_NotIncludeTriggerShapes.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C13351703_COM_NotIncludeTriggerShapes.py index a9e7727890..56f44503ae --- a/AutomatedTesting/Gem/PythonTests/physics/C13351703_COM_NotIncludeTriggerShapes.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C13351703_COM_NotIncludeTriggerShapes.py @@ -55,11 +55,6 @@ def C13351703_COM_NotIncludeTriggerShapes(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -93,8 +88,5 @@ def C13351703_COM_NotIncludeTriggerShapes(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C13351703_COM_NotIncludeTriggerShapes) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C13352089_RigidBodies_MaxAngularVelocity.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C13352089_RigidBodies_MaxAngularVelocity.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C13352089_RigidBodies_MaxAngularVelocity.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C13352089_RigidBodies_MaxAngularVelocity.py index 2342545a87..41635ecc47 --- a/AutomatedTesting/Gem/PythonTests/physics/C13352089_RigidBodies_MaxAngularVelocity.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C13352089_RigidBodies_MaxAngularVelocity.py @@ -123,9 +123,7 @@ def C13352089_RigidBodies_MaxAngularVelocity(): import math import time - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -281,8 +279,5 @@ def C13352089_RigidBodies_MaxAngularVelocity(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C13352089_RigidBodies_MaxAngularVelocity) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976194_RigidBody_PhysXComponentIsValid.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976194_RigidBody_PhysXComponentIsValid.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4976194_RigidBody_PhysXComponentIsValid.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976194_RigidBody_PhysXComponentIsValid.py index 79c3e06814..b0b69d6d91 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976194_RigidBody_PhysXComponentIsValid.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976194_RigidBody_PhysXComponentIsValid.py @@ -54,9 +54,7 @@ def C4976194_RigidBody_PhysXComponentIsValid(): import os, sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -110,8 +108,5 @@ def C4976194_RigidBody_PhysXComponentIsValid(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976194_RigidBody_PhysXComponentIsValid) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976195_RigidBodies_InitialLinearVelocity.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976195_RigidBodies_InitialLinearVelocity.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4976195_RigidBodies_InitialLinearVelocity.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976195_RigidBodies_InitialLinearVelocity.py index 6bddae76f4..f13a7232fa --- a/AutomatedTesting/Gem/PythonTests/physics/C4976195_RigidBodies_InitialLinearVelocity.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976195_RigidBodies_InitialLinearVelocity.py @@ -58,11 +58,6 @@ def C4976195_RigidBodies_InitialLinearVelocity(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -132,8 +127,5 @@ def C4976195_RigidBodies_InitialLinearVelocity(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976195_RigidBodies_InitialLinearVelocity) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976197_RigidBodies_InitialAngularVelocity.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976197_RigidBodies_InitialAngularVelocity.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4976197_RigidBodies_InitialAngularVelocity.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976197_RigidBodies_InitialAngularVelocity.py index 73c1e88f79..7f400051ec --- a/AutomatedTesting/Gem/PythonTests/physics/C4976197_RigidBodies_InitialAngularVelocity.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976197_RigidBodies_InitialAngularVelocity.py @@ -72,9 +72,7 @@ def C4976197_RigidBodies_InitialAngularVelocity(): import sys import math - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -177,8 +175,5 @@ def C4976197_RigidBodies_InitialAngularVelocity(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976197_RigidBodies_InitialAngularVelocity) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976199_RigidBodies_LinearDampingObjectMotion.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976199_RigidBodies_LinearDampingObjectMotion.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4976199_RigidBodies_LinearDampingObjectMotion.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976199_RigidBodies_LinearDampingObjectMotion.py index 08b212d1e7..502478f13c --- a/AutomatedTesting/Gem/PythonTests/physics/C4976199_RigidBodies_LinearDampingObjectMotion.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976199_RigidBodies_LinearDampingObjectMotion.py @@ -56,11 +56,6 @@ def C4976199_RigidBodies_LinearDampingObjectMotion(): # Setup path import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -270,8 +265,5 @@ def C4976199_RigidBodies_LinearDampingObjectMotion(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976199_RigidBodies_LinearDampingObjectMotion) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976200_RigidBody_AngularDampingObjectRotation.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976200_RigidBody_AngularDampingObjectRotation.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4976200_RigidBody_AngularDampingObjectRotation.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976200_RigidBody_AngularDampingObjectRotation.py index b889276554..77dfe4c483 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976200_RigidBody_AngularDampingObjectRotation.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976200_RigidBody_AngularDampingObjectRotation.py @@ -61,9 +61,7 @@ def C4976200_RigidBody_AngularDampingObjectRotation(): import sys import math - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -285,8 +283,5 @@ def C4976200_RigidBody_AngularDampingObjectRotation(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976200_RigidBody_AngularDampingObjectRotation) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976201_RigidBody_MassIsAssigned.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976201_RigidBody_MassIsAssigned.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4976201_RigidBody_MassIsAssigned.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976201_RigidBody_MassIsAssigned.py index 17fd0827c1..54f589da1e --- a/AutomatedTesting/Gem/PythonTests/physics/C4976201_RigidBody_MassIsAssigned.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976201_RigidBody_MassIsAssigned.py @@ -101,11 +101,6 @@ def C4976201_RigidBody_MassIsAssigned(): import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus import azlmbr @@ -373,8 +368,5 @@ def C4976201_RigidBody_MassIsAssigned(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976201_RigidBody_MassIsAssigned) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976202_RigidBody_StopsWhenBelowKineticThreshold.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976202_RigidBody_StopsWhenBelowKineticThreshold.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4976202_RigidBody_StopsWhenBelowKineticThreshold.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976202_RigidBody_StopsWhenBelowKineticThreshold.py index 53415bf43a..655c33304d --- a/AutomatedTesting/Gem/PythonTests/physics/C4976202_RigidBody_StopsWhenBelowKineticThreshold.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976202_RigidBody_StopsWhenBelowKineticThreshold.py @@ -124,11 +124,6 @@ def C4976202_RigidBody_StopsWhenBelowKineticThreshold(): import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus @@ -326,8 +321,5 @@ def C4976202_RigidBody_StopsWhenBelowKineticThreshold(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976202_RigidBody_StopsWhenBelowKineticThreshold) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976204_Verify_Start_Asleep_Condition.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976204_Verify_Start_Asleep_Condition.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4976204_Verify_Start_Asleep_Condition.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976204_Verify_Start_Asleep_Condition.py index 6c21912d11..ff3111aa55 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976204_Verify_Start_Asleep_Condition.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976204_Verify_Start_Asleep_Condition.py @@ -62,11 +62,6 @@ def C4976204_Verify_Start_Asleep_Condition(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -112,8 +107,5 @@ def C4976204_Verify_Start_Asleep_Condition(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976204_Verify_Start_Asleep_Condition) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976206_RigidBodies_GravityEnabledActive.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976206_RigidBodies_GravityEnabledActive.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4976206_RigidBodies_GravityEnabledActive.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976206_RigidBodies_GravityEnabledActive.py index 96c62f26ea..e6b50eb2bf --- a/AutomatedTesting/Gem/PythonTests/physics/C4976206_RigidBodies_GravityEnabledActive.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976206_RigidBodies_GravityEnabledActive.py @@ -64,11 +64,6 @@ def C4976206_RigidBodies_GravityEnabledActive(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -145,8 +140,5 @@ def C4976206_RigidBodies_GravityEnabledActive(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976206_RigidBodies_GravityEnabledActive) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976207_PhysXRigidBodies_KinematicBehavior.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976207_PhysXRigidBodies_KinematicBehavior.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C4976207_PhysXRigidBodies_KinematicBehavior.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976207_PhysXRigidBodies_KinematicBehavior.py index 81bed2bbde..65814bd438 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976207_PhysXRigidBodies_KinematicBehavior.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976207_PhysXRigidBodies_KinematicBehavior.py @@ -59,11 +59,6 @@ def C4976207_PhysXRigidBodies_KinematicBehavior(): # Setup path import os import sys - import ImportPathHelper as imports - - imports.init() - - import azlmbr.legacy.general as general import azlmbr.bus from editor_python_test_tools.utils import Report @@ -132,8 +127,5 @@ def C4976207_PhysXRigidBodies_KinematicBehavior(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976207_PhysXRigidBodies_KinematicBehavior) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976209_RigidBody_ComputesCOM.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976209_RigidBody_ComputesCOM.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4976209_RigidBody_ComputesCOM.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976209_RigidBody_ComputesCOM.py index f3f57b2b65..27d4ea1356 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976209_RigidBody_ComputesCOM.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976209_RigidBody_ComputesCOM.py @@ -86,11 +86,6 @@ def C4976209_RigidBody_ComputesCOM(): # Setup path import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -173,8 +168,5 @@ def C4976209_RigidBody_ComputesCOM(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976209_RigidBody_ComputesCOM) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976210_COM_ManualSetting.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976210_COM_ManualSetting.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C4976210_COM_ManualSetting.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976210_COM_ManualSetting.py index 9373f20850..cbbefb5a0e --- a/AutomatedTesting/Gem/PythonTests/physics/C4976210_COM_ManualSetting.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976210_COM_ManualSetting.py @@ -69,9 +69,7 @@ def C4976210_COM_ManualSetting(): """ # internal editor imports - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -298,8 +296,5 @@ def C4976210_COM_ManualSetting(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976210_COM_ManualSetting) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C4976218_RigidBodies_InertiaObjectsNotComputed.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976218_RigidBodies_InertiaObjectsNotComputed.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C4976218_RigidBodies_InertiaObjectsNotComputed.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976218_RigidBodies_InertiaObjectsNotComputed.py index ef19a00042..eb87fd0c68 --- a/AutomatedTesting/Gem/PythonTests/physics/C4976218_RigidBodies_InertiaObjectsNotComputed.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C4976218_RigidBodies_InertiaObjectsNotComputed.py @@ -39,11 +39,6 @@ def C4976218_RigidBodies_InertiaObjectsNotComputed(): # Setup path import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus as bus import azlmbr.components @@ -161,8 +156,5 @@ def C4976218_RigidBodies_InertiaObjectsNotComputed(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C4976218_RigidBodies_InertiaObjectsNotComputed) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5340400_RigidBody_ManualMomentOfInertia.py b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C5340400_RigidBody_ManualMomentOfInertia.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C5340400_RigidBody_ManualMomentOfInertia.py rename to AutomatedTesting/Gem/PythonTests/physics/rigid_body/C5340400_RigidBody_ManualMomentOfInertia.py index 7daf9d3dc8..92d3945391 --- a/AutomatedTesting/Gem/PythonTests/physics/C5340400_RigidBody_ManualMomentOfInertia.py +++ b/AutomatedTesting/Gem/PythonTests/physics/rigid_body/C5340400_RigidBody_ManualMomentOfInertia.py @@ -67,11 +67,6 @@ def C5340400_RigidBody_ManualMomentOfInertia(): # Setup path import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus from editor_python_test_tools.utils import Report @@ -160,8 +155,5 @@ def C5340400_RigidBody_ManualMomentOfInertia(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5340400_RigidBody_ManualMomentOfInertia) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C12712452_ScriptCanvas_CollisionEvents.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712452_ScriptCanvas_CollisionEvents.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C12712452_ScriptCanvas_CollisionEvents.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712452_ScriptCanvas_CollisionEvents.py index 3d3011ef26..6806d5acc8 --- a/AutomatedTesting/Gem/PythonTests/physics/C12712452_ScriptCanvas_CollisionEvents.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712452_ScriptCanvas_CollisionEvents.py @@ -67,11 +67,6 @@ def C12712452_ScriptCanvas_CollisionEvents(): # Setup path import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus import azlmbr.components @@ -201,8 +196,5 @@ def C12712452_ScriptCanvas_CollisionEvents(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C12712452_ScriptCanvas_CollisionEvents) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C12712453_ScriptCanvas_MultipleRaycastNode.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712453_ScriptCanvas_MultipleRaycastNode.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C12712453_ScriptCanvas_MultipleRaycastNode.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712453_ScriptCanvas_MultipleRaycastNode.py index 2e4c0a3fe2..edbbde4c94 --- a/AutomatedTesting/Gem/PythonTests/physics/C12712453_ScriptCanvas_MultipleRaycastNode.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712453_ScriptCanvas_MultipleRaycastNode.py @@ -75,11 +75,6 @@ def C12712453_ScriptCanvas_MultipleRaycastNode(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -199,8 +194,5 @@ def C12712453_ScriptCanvas_MultipleRaycastNode(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C12712453_ScriptCanvas_MultipleRaycastNode) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C12712454_ScriptCanvas_OverlapNodeVerification.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712454_ScriptCanvas_OverlapNodeVerification.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C12712454_ScriptCanvas_OverlapNodeVerification.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712454_ScriptCanvas_OverlapNodeVerification.py index f741f0d019..5829e5850c --- a/AutomatedTesting/Gem/PythonTests/physics/C12712454_ScriptCanvas_OverlapNodeVerification.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712454_ScriptCanvas_OverlapNodeVerification.py @@ -97,11 +97,6 @@ def C12712454_ScriptCanvas_OverlapNodeVerification(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -320,8 +315,5 @@ def C12712454_ScriptCanvas_OverlapNodeVerification(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C12712454_ScriptCanvas_OverlapNodeVerification) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C12712455_ScriptCanvas_ShapeCastVerification.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712455_ScriptCanvas_ShapeCastVerification.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C12712455_ScriptCanvas_ShapeCastVerification.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712455_ScriptCanvas_ShapeCastVerification.py index 581c6033e9..8ce59d2b29 --- a/AutomatedTesting/Gem/PythonTests/physics/C12712455_ScriptCanvas_ShapeCastVerification.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C12712455_ScriptCanvas_ShapeCastVerification.py @@ -67,11 +67,6 @@ def C12712455_ScriptCanvas_ShapeCastVerification(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -137,8 +132,5 @@ def C12712455_ScriptCanvas_ShapeCastVerification(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C12712455_ScriptCanvas_ShapeCastVerification) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14195074_ScriptCanvas_PostUpdateEvent.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14195074_ScriptCanvas_PostUpdateEvent.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C14195074_ScriptCanvas_PostUpdateEvent.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14195074_ScriptCanvas_PostUpdateEvent.py index 08adccfc60..2c833ba5f3 --- a/AutomatedTesting/Gem/PythonTests/physics/C14195074_ScriptCanvas_PostUpdateEvent.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14195074_ScriptCanvas_PostUpdateEvent.py @@ -61,11 +61,6 @@ def C14195074_ScriptCanvas_PostUpdateEvent(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -182,8 +177,5 @@ def C14195074_ScriptCanvas_PostUpdateEvent(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14195074_ScriptCanvas_PostUpdateEvent) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14902097_ScriptCanvas_PreUpdateEvent.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14902097_ScriptCanvas_PreUpdateEvent.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C14902097_ScriptCanvas_PreUpdateEvent.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14902097_ScriptCanvas_PreUpdateEvent.py index 2a2ce3aaf6..4d48ce34a6 --- a/AutomatedTesting/Gem/PythonTests/physics/C14902097_ScriptCanvas_PreUpdateEvent.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14902097_ScriptCanvas_PreUpdateEvent.py @@ -64,9 +64,7 @@ def C14902097_ScriptCanvas_PreUpdateEvent(): import os import sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -189,8 +187,5 @@ def C14902097_ScriptCanvas_PreUpdateEvent(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14902097_ScriptCanvas_PreUpdateEvent) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14902098_ScriptCanvas_PostPhysicsUpdate.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14902098_ScriptCanvas_PostPhysicsUpdate.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C14902098_ScriptCanvas_PostPhysicsUpdate.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14902098_ScriptCanvas_PostPhysicsUpdate.py index b977b9ae10..5cb0b1431e --- a/AutomatedTesting/Gem/PythonTests/physics/C14902098_ScriptCanvas_PostPhysicsUpdate.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14902098_ScriptCanvas_PostPhysicsUpdate.py @@ -75,11 +75,6 @@ def C14902098_ScriptCanvas_PostPhysicsUpdate(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -110,8 +105,5 @@ def C14902098_ScriptCanvas_PostPhysicsUpdate(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14902098_ScriptCanvas_PostPhysicsUpdate) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C14976308_ScriptCanvas_SetKinematicTargetTransform.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14976308_ScriptCanvas_SetKinematicTargetTransform.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/C14976308_ScriptCanvas_SetKinematicTargetTransform.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14976308_ScriptCanvas_SetKinematicTargetTransform.py index 2827ba5f16..9e8331f369 --- a/AutomatedTesting/Gem/PythonTests/physics/C14976308_ScriptCanvas_SetKinematicTargetTransform.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C14976308_ScriptCanvas_SetKinematicTargetTransform.py @@ -91,11 +91,6 @@ def C14976308_ScriptCanvas_SetKinematicTargetTransform(): # Setup path import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus import azlmbr.components @@ -220,8 +215,5 @@ def C14976308_ScriptCanvas_SetKinematicTargetTransform(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C14976308_ScriptCanvas_SetKinematicTargetTransform) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6224408_ScriptCanvas_EntitySpawn.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C6224408_ScriptCanvas_EntitySpawn.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C6224408_ScriptCanvas_EntitySpawn.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C6224408_ScriptCanvas_EntitySpawn.py index c458073799..12e4a25b4d --- a/AutomatedTesting/Gem/PythonTests/physics/C6224408_ScriptCanvas_EntitySpawn.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C6224408_ScriptCanvas_EntitySpawn.py @@ -60,11 +60,6 @@ def C6224408_ScriptCanvas_EntitySpawn(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -144,8 +139,5 @@ def C6224408_ScriptCanvas_EntitySpawn(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6224408_ScriptCanvas_EntitySpawn) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6274125_ScriptCanvas_TriggerEvents.py b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C6274125_ScriptCanvas_TriggerEvents.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C6274125_ScriptCanvas_TriggerEvents.py rename to AutomatedTesting/Gem/PythonTests/physics/script_canvas/C6274125_ScriptCanvas_TriggerEvents.py index 0e7ca0c8d3..5fc4261607 --- a/AutomatedTesting/Gem/PythonTests/physics/C6274125_ScriptCanvas_TriggerEvents.py +++ b/AutomatedTesting/Gem/PythonTests/physics/script_canvas/C6274125_ScriptCanvas_TriggerEvents.py @@ -66,11 +66,6 @@ def C6274125_ScriptCanvas_TriggerEvents(): import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus @@ -128,8 +123,5 @@ def C6274125_ScriptCanvas_TriggerEvents(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6274125_ScriptCanvas_TriggerEvents) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C13508019_Terrain_TerrainTexturePainterWorks.py b/AutomatedTesting/Gem/PythonTests/physics/terrain/C13508019_Terrain_TerrainTexturePainterWorks.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C13508019_Terrain_TerrainTexturePainterWorks.py rename to AutomatedTesting/Gem/PythonTests/physics/terrain/C13508019_Terrain_TerrainTexturePainterWorks.py index 87534ffd58..9822b933d1 --- a/AutomatedTesting/Gem/PythonTests/physics/C13508019_Terrain_TerrainTexturePainterWorks.py +++ b/AutomatedTesting/Gem/PythonTests/physics/terrain/C13508019_Terrain_TerrainTexturePainterWorks.py @@ -40,9 +40,7 @@ def C13508019_Terrain_TerrainTexturePainterWorks(): # Setup path import os, sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -137,8 +135,5 @@ def C13508019_Terrain_TerrainTexturePainterWorks(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C13508019_Terrain_TerrainTexturePainterWorks) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C15308217_NoCrash_LevelSwitch.py b/AutomatedTesting/Gem/PythonTests/physics/terrain/C15308217_NoCrash_LevelSwitch.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C15308217_NoCrash_LevelSwitch.py rename to AutomatedTesting/Gem/PythonTests/physics/terrain/C15308217_NoCrash_LevelSwitch.py index 0fc5c65db3..f3641b12bc --- a/AutomatedTesting/Gem/PythonTests/physics/C15308217_NoCrash_LevelSwitch.py +++ b/AutomatedTesting/Gem/PythonTests/physics/terrain/C15308217_NoCrash_LevelSwitch.py @@ -62,11 +62,6 @@ def C15308217_NoCrash_LevelSwitch(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -106,8 +101,5 @@ def C15308217_NoCrash_LevelSwitch(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C15308217_NoCrash_LevelSwitch) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C3510642_Terrain_NotCollideWithTerrain.py b/AutomatedTesting/Gem/PythonTests/physics/terrain/C3510642_Terrain_NotCollideWithTerrain.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C3510642_Terrain_NotCollideWithTerrain.py rename to AutomatedTesting/Gem/PythonTests/physics/terrain/C3510642_Terrain_NotCollideWithTerrain.py index c3e1ac018c..09522da31a --- a/AutomatedTesting/Gem/PythonTests/physics/C3510642_Terrain_NotCollideWithTerrain.py +++ b/AutomatedTesting/Gem/PythonTests/physics/terrain/C3510642_Terrain_NotCollideWithTerrain.py @@ -65,11 +65,6 @@ def C3510642_Terrain_NotCollideWithTerrain(): import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus @@ -168,8 +163,5 @@ def C3510642_Terrain_NotCollideWithTerrain(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C3510642_Terrain_NotCollideWithTerrain) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5689518_PhysXTerrain_CollidesWithPhysXTerrain.py b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689518_PhysXTerrain_CollidesWithPhysXTerrain.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C5689518_PhysXTerrain_CollidesWithPhysXTerrain.py rename to AutomatedTesting/Gem/PythonTests/physics/terrain/C5689518_PhysXTerrain_CollidesWithPhysXTerrain.py index b586c0b096..a10cc72ed2 --- a/AutomatedTesting/Gem/PythonTests/physics/C5689518_PhysXTerrain_CollidesWithPhysXTerrain.py +++ b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689518_PhysXTerrain_CollidesWithPhysXTerrain.py @@ -47,11 +47,6 @@ def C5689518_PhysXTerrain_CollidesWithPhysXTerrain(): """ import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general import azlmbr.bus from editor_python_test_tools.utils import Report @@ -113,8 +108,5 @@ def C5689518_PhysXTerrain_CollidesWithPhysXTerrain(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5689518_PhysXTerrain_CollidesWithPhysXTerrain) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5689522_Physxterrain_AddPhysxterrainNoEditorCrash.py b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689522_Physxterrain_AddPhysxterrainNoEditorCrash.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C5689522_Physxterrain_AddPhysxterrainNoEditorCrash.py rename to AutomatedTesting/Gem/PythonTests/physics/terrain/C5689522_Physxterrain_AddPhysxterrainNoEditorCrash.py index 0c1d0d4d1c..8e42f9f77c --- a/AutomatedTesting/Gem/PythonTests/physics/C5689522_Physxterrain_AddPhysxterrainNoEditorCrash.py +++ b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689522_Physxterrain_AddPhysxterrainNoEditorCrash.py @@ -58,11 +58,6 @@ def C5689522_Physxterrain_AddPhysxterrainNoEditorCrash(): import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general from editor_python_test_tools.utils import Report @@ -105,8 +100,5 @@ def C5689522_Physxterrain_AddPhysxterrainNoEditorCrash(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5689522_Physxterrain_AddPhysxterrainNoEditorCrash) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5689524_MultipleTerrains_CheckWarningInConsole.py b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689524_MultipleTerrains_CheckWarningInConsole.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C5689524_MultipleTerrains_CheckWarningInConsole.py rename to AutomatedTesting/Gem/PythonTests/physics/terrain/C5689524_MultipleTerrains_CheckWarningInConsole.py index 04912dd401..ba74716544 --- a/AutomatedTesting/Gem/PythonTests/physics/C5689524_MultipleTerrains_CheckWarningInConsole.py +++ b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689524_MultipleTerrains_CheckWarningInConsole.py @@ -60,12 +60,6 @@ def C5689524_MultipleTerrains_CheckWarningInConsole(): import os import sys - - import ImportPathHelper as imports - - imports.init() - - import azlmbr.legacy.general as general from editor_python_test_tools.utils import Report @@ -107,8 +101,5 @@ def C5689524_MultipleTerrains_CheckWarningInConsole(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5689524_MultipleTerrains_CheckWarningInConsole) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5689528_Terrain_MultipleTerrainComponents.py b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689528_Terrain_MultipleTerrainComponents.py old mode 100755 new mode 100644 similarity index 96% rename from AutomatedTesting/Gem/PythonTests/physics/C5689528_Terrain_MultipleTerrainComponents.py rename to AutomatedTesting/Gem/PythonTests/physics/terrain/C5689528_Terrain_MultipleTerrainComponents.py index a5a8d65788..fb1fd01724 --- a/AutomatedTesting/Gem/PythonTests/physics/C5689528_Terrain_MultipleTerrainComponents.py +++ b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689528_Terrain_MultipleTerrainComponents.py @@ -60,11 +60,6 @@ def C5689528_Terrain_MultipleTerrainComponents(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper from editor_python_test_tools.utils import Tracer @@ -103,8 +98,5 @@ def C5689528_Terrain_MultipleTerrainComponents(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5689528_Terrain_MultipleTerrainComponents) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C5689531_Warning_TerrainSliceTerrainComponent.py b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689531_Warning_TerrainSliceTerrainComponent.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/C5689531_Warning_TerrainSliceTerrainComponent.py rename to AutomatedTesting/Gem/PythonTests/physics/terrain/C5689531_Warning_TerrainSliceTerrainComponent.py index 2eaa55eacf..68ddaba5ed --- a/AutomatedTesting/Gem/PythonTests/physics/C5689531_Warning_TerrainSliceTerrainComponent.py +++ b/AutomatedTesting/Gem/PythonTests/physics/terrain/C5689531_Warning_TerrainSliceTerrainComponent.py @@ -65,11 +65,6 @@ def C5689531_Warning_TerrainSliceTerrainComponent(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper from editor_python_test_tools.utils import Tracer @@ -115,8 +110,5 @@ def C5689531_Warning_TerrainSliceTerrainComponent(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C5689531_Warning_TerrainSliceTerrainComponent) diff --git a/AutomatedTesting/Gem/PythonTests/physics/C6032082_Terrain_MultipleResolutionsValid.py b/AutomatedTesting/Gem/PythonTests/physics/terrain/C6032082_Terrain_MultipleResolutionsValid.py old mode 100755 new mode 100644 similarity index 98% rename from AutomatedTesting/Gem/PythonTests/physics/C6032082_Terrain_MultipleResolutionsValid.py rename to AutomatedTesting/Gem/PythonTests/physics/terrain/C6032082_Terrain_MultipleResolutionsValid.py index 6bb44323a2..66615e1937 --- a/AutomatedTesting/Gem/PythonTests/physics/C6032082_Terrain_MultipleResolutionsValid.py +++ b/AutomatedTesting/Gem/PythonTests/physics/terrain/C6032082_Terrain_MultipleResolutionsValid.py @@ -80,11 +80,6 @@ def C6032082_Terrain_MultipleResolutionsValid(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper @@ -209,8 +204,5 @@ def C6032082_Terrain_MultipleResolutionsValid(): if __name__ == "__main__": - import ImportPathHelper as imports - imports.init() - from editor_python_test_tools.utils import Report Report.start_test(C6032082_Terrain_MultipleResolutionsValid) diff --git a/AutomatedTesting/Gem/PythonTests/physics/FileManagement.py b/AutomatedTesting/Gem/PythonTests/physics/utils/FileManagement.py old mode 100755 new mode 100644 similarity index 100% rename from AutomatedTesting/Gem/PythonTests/physics/FileManagement.py rename to AutomatedTesting/Gem/PythonTests/physics/utils/FileManagement.py diff --git a/AutomatedTesting/Gem/PythonTests/physics/UtilTest_Managed_Files.py b/AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_Managed_Files.py old mode 100755 new mode 100644 similarity index 89% rename from AutomatedTesting/Gem/PythonTests/physics/UtilTest_Managed_Files.py rename to AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_Managed_Files.py index 2e6e854c7d..49747da443 --- a/AutomatedTesting/Gem/PythonTests/physics/UtilTest_Managed_Files.py +++ b/AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_Managed_Files.py @@ -13,11 +13,6 @@ class Tests: def run(): import os import sys - - import ImportPathHelper as imports - - imports.init() - from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper diff --git a/AutomatedTesting/Gem/PythonTests/physics/UtilTest_Physmaterial_Editor.py b/AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_Physmaterial_Editor.py old mode 100755 new mode 100644 similarity index 99% rename from AutomatedTesting/Gem/PythonTests/physics/UtilTest_Physmaterial_Editor.py rename to AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_Physmaterial_Editor.py index ec870d12c4..27d670d1e8 --- a/AutomatedTesting/Gem/PythonTests/physics/UtilTest_Physmaterial_Editor.py +++ b/AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_Physmaterial_Editor.py @@ -50,9 +50,7 @@ def run(): """ import os import sys - import ImportPathHelper as imports - imports.init() from editor_python_test_tools.utils import Report from editor_python_test_tools.utils import TestHelper as helper diff --git a/AutomatedTesting/Gem/PythonTests/physics/UtilTest_PhysxConfig_Default.py b/AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_PhysxConfig_Default.py old mode 100755 new mode 100644 similarity index 100% rename from AutomatedTesting/Gem/PythonTests/physics/UtilTest_PhysxConfig_Default.py rename to AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_PhysxConfig_Default.py diff --git a/AutomatedTesting/Gem/PythonTests/physics/UtilTest_PhysxConfig_Override.py b/AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_PhysxConfig_Override.py old mode 100755 new mode 100644 similarity index 100% rename from AutomatedTesting/Gem/PythonTests/physics/UtilTest_PhysxConfig_Override.py rename to AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_PhysxConfig_Override.py diff --git a/AutomatedTesting/Gem/PythonTests/physics/UtilTest_Tracer_PicksErrorsAndWarnings.py b/AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_Tracer_PicksErrorsAndWarnings.py old mode 100755 new mode 100644 similarity index 97% rename from AutomatedTesting/Gem/PythonTests/physics/UtilTest_Tracer_PicksErrorsAndWarnings.py rename to AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_Tracer_PicksErrorsAndWarnings.py index 92405498d2..136bcfc03d --- a/AutomatedTesting/Gem/PythonTests/physics/UtilTest_Tracer_PicksErrorsAndWarnings.py +++ b/AutomatedTesting/Gem/PythonTests/physics/utils/UtilTest_Tracer_PicksErrorsAndWarnings.py @@ -30,11 +30,6 @@ def run(): import os import sys - - import ImportPathHelper as imports - - imports.init() - import azlmbr.legacy.general as general from editor_python_test_tools.utils import Report