LauncherTestSuite_Periodic.py 998 B

123456789101112131415161718192021222324252627282930313233
  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. import pytest
  7. from .tests.launcher_utils import run_launcher_tests
  8. import ly_remote_console.remote_console_commands as rc
  9. @pytest.fixture
  10. def remote_console_instance(request):
  11. console = rc.RemoteConsole()
  12. def teardown():
  13. if console.connected:
  14. console.stop()
  15. request.addfinalizer(teardown)
  16. return console
  17. @pytest.mark.SUITE_periodic
  18. @pytest.mark.parametrize("project", ["AutomatedTesting"])
  19. class TestLauncherAutomation(object):
  20. def test_Launcher_MultipleLevelLoads(self, launcher, remote_console_instance):
  21. levels = ["levels/Prefab/Base/Base.spawnable",
  22. "levels/Prefab/QuitOnSuccessfulSpawn/QuitOnSuccessfulSpawn.spawnable"]
  23. run_launcher_tests(launcher, levels, remote_console_instance, null_renderer=True)