pytest parameters execution order for repeated test seems to be wrong
问题 I am trying to run a test repeatedly which is a paramertrized. it doesn't seem to follow the order while executing test. I tried using pytest-repeat and pytest.mark.parametrize but i still didn't get the desired outcome. The code is conftest.py scenarios = [('first', {'attribute': 'value'}), ('second', {'attribute': 'value'})] id = [scenario[0] for scenario in scenarios] @pytest.fixture(scope="function", params=scenarios, ids=id) def **get_scenario**(request): return request.param test_param