Parametrized autotest can create two test cases in qase.io
in progress
Aleksei Semenov
Precondition: #pytest #xdist #qase-pytest
Param 'Project settings - Test run - Auto create test cases' is enabled.
Steps:
Run the following paramterized pytest autotest first time, without decorator @qase.id(case_id).
###########
import pytest
@pytest.mark.parametrize("version", [1, 2])
def test_example(version):
pass
###########
Expected result:
Get one test case in qase.io with all params of paramterized pytest autotest.
Actual result:
Sometimes we can get two test cases with different params in qase.io.
Manjunatha Reddy
in progress
Vikas Naithani
Please update your reporter to the latest version of pytest. You may refer to the this git repository - https://github.com/qase-tms/qase-python/tree/main/qase-pytest.
Now if you use the parametrized test in pytest it will send test results linked to same test case for each parameter(refer to the screenshot attached).
Ilya Volkov
Aleksei Semenov hi Aleksei!
Could you try updating the pytest reporter to the latest version (we're at 5.x now)? Will you still experience the same behavior?
Make note of the changes that occurred in 5.x, as you will need to be using different configurations:
Let me know how it goes for you!
Ilya Volkov
under review