""" 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 """ import pytest import ly_test_tools.launchers.platforms.base from Automated.benchmark_runner_periodic_suite_common import LoftSampleFrameTimingTest_GatherBenchmarkMetrics_Common from Automated.benchmark_runner_periodic_suite_common import LoftSampleFrameTimingTest_SendBenchmarkMetrics_Common from Automated.benchmark_runner_periodic_suite_common import filebeat_service_running @pytest.mark.parametrize('launcher_platform', ['windows']) @pytest.mark.parametrize("project", ["LoftSample"]) @pytest.mark.parametrize('rhi', ['dx12']) @pytest.mark.usefixtures("clean_loftsample_gamelauncher_logs", "loftsample_gamelauncher_log_monitor") class TestPerformanceBenchmarksPeriodicSuite: def test_LoftSampleFrameTimingTest_GatherBenchmarkMetrics_DX12( self, request, workspace, launcher_platform, rhi, loftsample_gamelauncher_log_monitor): LoftSampleFrameTimingTest_GatherBenchmarkMetrics_Common(self, request, workspace, rhi, loftsample_gamelauncher_log_monitor) @pytest.mark.skipif(not filebeat_service_running(), reason="filebeat service not running") def test_LoftSampleFrameTimingTest_SendBenchmarkMetrics_DX12( self, request, editor, workspace, project, launcher_platform, rhi, level): """ Gathers the DX12 benchmark metrics and uses filebeat to send the metrics data. """ LoftSampleFrameTimingTest_SendBenchmarkMetrics_Common( workspace, launcher_platform, rhi)