Skip to content

TRCLI-135: Added support for multiple case ids in single test execution for parse junit#390

Open
acuanico-tr-galt wants to merge 2 commits intorelease/1.13.1from
feature/TRCLI-135
Open

TRCLI-135: Added support for multiple case ids in single test execution for parse junit#390
acuanico-tr-galt wants to merge 2 commits intorelease/1.13.1from
feature/TRCLI-135

Conversation

@acuanico-tr-galt
Copy link
Collaborator

@acuanico-tr-galt acuanico-tr-galt commented Feb 13, 2026

Issue being resolved: #130 #343

Solution description

Implemented support for mapping multiple TestRail case IDs to a single JUnit test execution. When a testwith multiple case IDs executes, all mapped cases receive the same result status, elapsed time, comments, and attachments. This allows teams to combine multiple test scenarios into one automation test while still having the option to update all corresponding TestRail cases.

Changes

  • trcli/data_classes/data_parsers.py: Added support for parsing multiple IDs from test names (bracket and underscore formats)
  • trcli/readers/junit_xml.py: Added _parse_multiple_case_ids() method and updated _parse_test_cases() to create separate TestRailCase objects for each ID
  • README.md: Added usage examples for multiple case IDs in both matching modes
  • Tests: 70 tests total (39 property-based, 31 name-based) - all passing

Potential impacts

None. The changes are backwards-compatible.

Steps to test

  1. Property-based (comma-separated):
    XML:
    trcli parse_junit -f test.xml --case-matcher property

  2. Name-based (bracket format):
    XML:
    trcli parse_junit -f test.xml --case-matcher name

PR Tasks

  • PR reference added to issue
  • README updated
  • Unit tests added/updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant