Comments (7)
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:
- 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
- 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.
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.
@d-rede please help
from trcli.
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.
@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.
@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.
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)
- support Robot Framework 7.0 new output.xml format HOT 1
- --case-fields not working when I attempt to push data to some of the fields (i.e. Type, custom-field in Testrail ) HOT 7
- Test plan name for test runs HOT 3
- unable to import results for test cases having a very long title HOT 2
- Test plan name for test runs HOT 3
- Set automation_id case field when using --case-matcher: "property" HOT 1
- TRCLI failed on the ci cd HOT 5
- not able to upload results when report contains some chars in comment HOT 5
- Parsing testrail_case_field in Junit XML fails when using value but text is not empty
- Unable to parse field title in TestRailCase tag. Title is empty. HOT 15
- Please add parsing "Elapsed" time to parse_robot command. HOT 6
- Empty sections created while using matching based on automation_id
- Empty sections created while using matching based on automation_id HOT 1
- Network error when importing test case from a specific test suite HOT 4
- Connection error while uploading test results HOT 14
- Add options to import stdout/stderr from junit test as comment HOT 2
- not able to upload results when report contains some chars HOT 4
- Unable to update test results generated in junit format from pytest in CircleCI HOT 1
- Unable to update test results generated in junit format from Cypress in CircleCI
- With code first approach, trcli creates duplicates of test cases then chokes on deadlock trying to cleanup and fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trcli.