Parametrized autotest can create two test cases in qase.io
under review
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.
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:
https://github.com/qase-tms/qase-python/blob/master/qase-pytest/UPGRADE.md
https://github.com/qase-tms/qase-python/blob/master/qase-pytest/CONFIGURATION.md
Let me know how it goes for you!
Ilya Volkov
under review