TestSuite_Periodic.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. """
  2. Copyright (c) Contributors to the Open 3D Engine Project.
  3. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. SPDX-License-Identifier: Apache-2.0 OR MIT
  5. """
  6. # This suite consists of all test cases that are passing and have been verified.
  7. import pytest
  8. import os
  9. import sys
  10. from .utils.FileManagement import FileManagement as fm
  11. from ly_test_tools.o3de.editor_test import EditorSingleTest, EditorBatchedTest, EditorTestSuite
  12. sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../automatedtesting_shared')
  13. from base import TestAutomationBase
  14. revert_physics_config = fm.file_revert_list(['physxdebugconfiguration.setreg', 'physxdefaultsceneconfiguration.setreg', 'physxsystemconfiguration.setreg'], 'AutomatedTesting/Registry')
  15. @pytest.mark.SUITE_periodic
  16. @pytest.mark.parametrize("launcher_platform", ['windows_editor'])
  17. @pytest.mark.parametrize("project", ["AutomatedTesting"])
  18. class TestAutomation(TestAutomationBase):
  19. @revert_physics_config
  20. @fm.file_override('physxdefaultsceneconfiguration.setreg','ScriptCanvas_PostUpdateEvent.setreg_override',
  21. 'AutomatedTesting/Registry', search_subdirs=True)
  22. def test_ScriptCanvas_PostUpdateEvent(self, request, workspace, editor, launcher_platform):
  23. from .tests.script_canvas import ScriptCanvas_PostUpdateEvent as test_module
  24. self._run_test(request, workspace, editor, test_module)
  25. @revert_physics_config
  26. @fm.file_override('physxdefaultsceneconfiguration.setreg', 'ScriptCanvas_PreUpdateEvent.setreg_override',
  27. 'AutomatedTesting/Registry', search_subdirs=True)
  28. def test_ScriptCanvas_PreUpdateEvent(self, request, workspace, editor, launcher_platform):
  29. from .tests.script_canvas import ScriptCanvas_PreUpdateEvent as test_module
  30. self._run_test(request, workspace, editor, test_module)
  31. def test_ScriptCanvas_SpawnEntityWithPhysComponents(self, request, workspace, editor, launcher_platform):
  32. from .tests.script_canvas import ScriptCanvas_SpawnEntityWithPhysComponents as test_module
  33. self._run_test(request, workspace, editor, test_module)