Open gjambaisivanandham opened 1 month ago
We hit this same error when uploading our junit xml results.
At least for us, the issue appears to be how the xml we want to upload is nesting several child testsuite
sections under a parent testsuites
section. It looks like trcli only accepts uploads where all the tests are nested under a single testsuite
section and blows up with the same error outlined in the ticket if there are multiple.
I confirmed the same test suite uploads/reports with no issues after modifying the structure of our xml so all the tests are under a single testsuite
section.
Our temporary work around for this issue is to use a XSLT stylesheet and reformat the merged xml so all tests are in a single testsuite
section with xsltproc
before uploading it with trcli.
TestRail CLI Version
v1.9.5
CLI Environment
python:3.10.5
TestRail Version
8.0.3 Default (3070)
TestRail Instance Type
Enterprise Cloud
Current behavior
Unable to update testrail with the test result from pytest that is run in parallel in CircleCI.
Run command in CircleCI is
circleci tests glob "e2e/tests/**/*.py" | circleci tests split --split-by=timings | xargs pytest --log-cli-level=INFO --junitxml "reports/junit-report-${CIRCLE_NODE_INDEX}.xml"
. This generates multiple junit reports(junit-report-0.xml, junit-report-1.xml etc) depending on the number of parallel runs but processing of the results fails.Step used to process the test results in CircleCI is below
Below is the log when the above job is run in a workflow: