2. Run two input cases¶
Continue from 1. Create a project. Use the same xray-demo folder and activated environment.
Save this as test_example.py. Each explicit ID identifies one stable logical
case. Keep IDs stable across reruns and change them when the meaning of a case
changes. Do not put passwords, personal data or other secrets in IDs.
import pytest
@pytest.mark.parametrize('value, expected', [(1, 2), (2, 3)], ids=['one-plus-one', 'two-plus-one'])
def test_add_one(value, expected):
assert value + 1 == expected
Expect 2 passed. No Jira action occurs. Do not apply a shared xray key marker
to these cases. The automatic workflow rejects manual key markers rather than
silently combining cases under one Test.