-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--section-id not working while import junit report #199
Comments
Can we get an update on this as we are kind of blocked because of this issue. |
@bitcoder can you check this? |
Hi @dibyaranjan-pg , https://github.com/gurock/trcli/releases/tag/v1.4.3 As the report can contain multiple |
Hi @bitcoder, thank you for reply. Yes the dummy sample you did is as expected. Sorry, maybe i am not being clear enough for my case. Hope the image above helps.
now it seems that it look for existing section with name Dashboard and upload the test cases there. So in this case the section-id is being ignore. my sample xml file. <testsuites tests="2" failures="0" errors="0" skipped="0" time="24.799"><testsuite name="Root Suite" timestamp="2024-01-15T08:42:53" tests="0" file="cypress/e2e/smokeTests/desktop.cy.js" time="0" failures="0" errors="0" skipped="0">
</testsuite>
<testsuite name="Agent - Smoke test" timestamp="2024-01-15T08:42:53" tests="0" time="0" failures="0" errors="0" skipped="0">
</testsuite>
<testsuite name="Dashboard" timestamp="2024-01-15T08:43:02" tests="2" time="24.799" failures="0" errors="0" skipped="0">
<testcase name="Agent - Smoke test Dashboard View subscription page: - verify H1, url" time="15.103" classname="View subscription page: - verify H1, url">
</testcase>
<testcase name="Agent - Smoke test Dashboard View credit usage history page: - verify H1, url, table headers - able filter data" time="9.696" classname="View credit usage history page: - verify H1, url, table headers - able filter data">
</testcase>
</testsuite>
</testsuites> i tried upload other xml with test suite name that is not exists, with section-id=975 and it able to create/upload correctly. |
thanks @chooiyeewoon , I confirm the behaviour you described and I was able to replicate it. |
I made a very preliminary fix but it needs:
It's a part of the code that I don't have a full understanding, so it may be not the best option.. needs more time. You can try it out: python3 -m pip uninstall trcli -y
python3 -m pip install dist/trcli-1.9.0.tar.gz What I tested (using the sample Junit XML you provided):
|
hi @bitcoder, great! i tried and it created under section that specified now. |
TestRail CLI Version
1.8.0
CLI Environment
No response
TestRail Version
8.0.1
TestRail Instance Type
Professional Cloud
Current behavior
I am trying to import Cypress test result (Junit xml report) to TestRail and the test cases to be in a desired section.
I specify the
--section-id
but it doesn't work.Sample command:
Expectation:
i want the test case to be located to below section. I did check via API and it returned correctly as per section id of 975
/index.php?/api/v2/get_section/975
What happens now:
the test case have been uploaded to other section named
Dashboard
instead. looks like it is taking the<testsuite name="Dashboard"
in my junit report and upload the test case to an existing Dashboard section.How can i resolve this?
Desired behavior
when specify section id, it should upload the test cases to the specific section instead of matching the testsuite name in Junit xml report.
More Details
No response
The text was updated successfully, but these errors were encountered: