import pytest from Utils import yaml_handler from Utils import req_handler from TestData.automation.robot_test_data import robotData class TestRobot: yaml_path = r'automation/robot.yaml' yaml_data = yaml_handler.yaml_handler.get_case(yaml_path) @pytest.mark.flaky(reruns=robotData.rerun, reruns_delay=robotData.rerun_delay) @pytest.mark.parametrize('case',yaml_data) def test_robot(self,case): req_handler.ReqHandler.send_requests(case=case,var_class=robotData)