Result rules and compatibility¶
Automatic identity hashes a versioned tuple of project, suite namespace, relative
logical test path/name and structured parameter identity. For parametrized tests,
that structure contains parameter names in pytest insertion order, sorted groups
of axis names (names within each group are also sorted), and pytest's ordered
per-axis ID components (callspec._idlist). Non-parametrized tests use null.
It is not just the displayed joined case ID. Renaming parameters, changing their
order within a parametrization, or reordering stacked axes can create new
identities and therefore new Tests when creation is authorized. Changing project,
namespace, logical test path/name or IDs also changes identity. Keep these inputs
stable for the same logical case, with unique IDs for distinct cases.
For example, this test has ordered parameters ['y', 'x'], sorted axes
[['x'], ['y']] and ordered ID components ['why', 'ex']:
@pytest.mark.parametrize('x', [1], ids=['ex'])
@pytest.mark.parametrize('y', [2], ids=['why'])
def test_pair(x, y):
assert x < y
Swapping the two decorators changes the ordered parameters to ['x', 'y'] and
ID components to ['ex', 'why'], producing a different identity even though the
values and assertion are unchanged. Likewise, changing 'x,y' to 'y,x' in one
axis changes identity; reordering rows together with their stable IDs does not.
The initial supported automatic subset is static pytest.mark.parametrize with
explicit unique string IDs on every axis (including pytest.param(..., id=...)
and parametrized fixtures with explicit IDs).
Default positional IDs, callable ID generators, dynamic metafunc.parametrize
are currently rejected rather than guessed.
Search requires exactly one matching identity label and verifies project, issue type, Generic type and full definition. Missing/moved/modified mapped issues fail; no replacement or overwrite is automatic. Jira search visibility is not a uniqueness constraint. Cross-host concurrency and Xray-specific permissions cannot be proven by this plugin. No live compatibility claim is made for Xray 8.5.3-j10.