GithubHelp home page GithubHelp logo

Comments (7)

d-rede avatar d-rede commented on August 14, 2024 1

Hello @Testinator-X

I see your issue is different from what I initially thought it was, thanks for re-surfacing it.

There are two separate points here though:

  1. Currently the CLI expects all IDs in the report to be integers, but it isn't really using them, so I will provide a fix to fully ignore the IDs
  2. You are requesting to specify the ID of sections (<testsuite> elements in the XML), but we currently don't have plans to support that. The sections are matched by name, so the CLI will look for a section with the same name as the <testsuite> element or it will create a new section. The --suite-id argument is for multisuite type projects, where you have to specify the suite you want your results in.

from trcli.

Testinator-X avatar Testinator-X commented on August 14, 2024

@d-rede

Thanks to the updated README, I have since found out that the id "Test Suites/Functional Tests Suite" that I removed does not seem to define the suite to import into, but instead defines the section within the suite. Is there a commandline parameter that can be used to overwrite in which section(s) it should be imported?

from trcli.

Testinator-X avatar Testinator-X commented on August 14, 2024

@d-rede please help

from trcli.

d-rede avatar d-rede commented on August 14, 2024

Hello @Testinator-X

As originally designed, the CLI maps testsuite XML elements to TestRail sections and tries to match the id against the ID of a section in TestRail. This behavior does seem like something that may be undesirable, so I will analyze it and consider a potential fix.

from trcli.

d-rede avatar d-rede commented on August 14, 2024

@Testinator-X this was in fact undesired behavior and a fix was applied in v1.4.3. The id attributes are no longer being considered, only the command line value is now assumed for the suite_id.

from trcli.

Testinator-X avatar Testinator-X commented on August 14, 2024

@d-rede I've updated to TestRail CLI v1.4.3 but I still can't import the .xml file I provided in the description. I'm still getting the error "ValueError: invalid literal for int() with base 10: 'Test Suites/Functional Tests Suite'"

I still have to manually replace the ID in the line

<testsuite name="Functional Tests Suite" tests="2" failures="0" errors="0" time="150.939" skipped="0" timestamp="2022-05-18 14:57:42" hostname="localhost - computername" id="Test Suites/Functional Tests Suite">

With an Section ID that exists in my project eg.

<testsuite name="Functional Tests Suite" tests="2" failures="0" errors="0" time="150.939" skipped="0" timestamp="2022-05-18 14:57:42" hostname="localhost - computername" id="9">

How to overwrite the group ID via command line?
Btw. Is there an easy way to get the Section ID I want to import into via TestRail web frontend and not via API?

This is the command I use for import

trcli -h https://mytestrailinstance.testrail.io --project Test -u [email protected] -k my.APIkey -y parse_junit -f "C:\Path\To\File\results.xml" --title TestRailCLI --milestone-id 4 --case-fields custom_affected_companies:[1,2] --result-fields version:TestRailCliVersion

but even with the parameter --suite-id 1 it still doesn't work

from trcli.

d-rede avatar d-rede commented on August 14, 2024

Hello again @Testinator-X

Just letting you know that point number 1 on the last comment has been fixed. Also, since point number 2 is not a bug and it's not something we intend to support, I'm closing this bug.

Cheers

from trcli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.