gurock / trcli

TR CLI (trcli) is a command line tool for interacting with TestRail.
Mozilla Public License 2.0
47 stars 42 forks source link

Support for template_id from junit XML results #115

Closed kkudarav closed 1 year ago

kkudarav commented 1 year ago

What would you like the TestRail CLI to be able to do?

When using multiple templates, we need a way to specify template_id in the JUnit XML results file under tag, to pass the template_id setting (and others) to pass through to the POST request to add new test case using trcli.

Why is this feature necessary on the TestRail CLI?

This would allow to enable trcli support for the non-default "Test Case" templates as well.

<testsuites name="Mocha Tests">
  <testsuite failures="0" errors="0" skipped="1" tests="1" time="0.05" name="tests.LoginTests">
    <properties><property name="setting1" value="True"/></properties>
    <testcase classname="tests.LoginTests" name="test_case_2" time="650" template_id=2>
    </testcase>
  </testsuite>
</testsuites>

More details

No response

Interested in implementing it yourself?

No