Adding results error #251
Unanswered
aburdukov-clgx
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys!
Im sending test result to TestRail using trcli in TFS pipeline. All test results successfully sent to TestRail but in Pipeline I see the weird error which causing build to fail:
2024-08-01T07:42:26.4096778Z TestRail CLI v1.9.5
2024-08-01T07:42:26.4096778Z Copyright 2024 Gurock Software GmbH - www.gurock.com
2024-08-01T07:42:26.4096778Z Parser Results Execution Parameters
2024-08-01T07:42:26.4096778Z > Report file: TestResults.xml
2024-08-01T07:42:26.4096778Z > Config file: None
2024-08-01T07:42:26.4096778Z > TestRail instance: https://test.testrail.io/ (user: [email protected])
2024-08-01T07:42:26.4096778Z > Project: My Project
2024-08-01T07:42:26.4096778Z > Run title: Project Unit Tests Run
2024-08-01T07:42:26.4096778Z > Update run: No
2024-08-01T07:42:26.4096778Z > Add to milestone: No
2024-08-01T07:42:26.4096778Z > Auto-create entities: True
2024-08-01T07:42:26.4096778Z Parsing JUnit report.
2024-08-01T07:42:26.4336859Z Processed 28 test cases in section Project.Test.dll.
2024-08-01T07:42:26.4367920Z Processed 62 test cases in section Project2Tests.dll.
2024-08-01T07:42:35.5766527Z Checking project. Done.
2024-08-01T07:42:37.3508725Z Creating test run. Test run: https://test.testrail.io/index.php?/runs/view/174
2024-08-01T07:42:38.9730998Z ##[error]Adding results: 0/90
Adding results: 50/90
Adding results: 90/90
Adding results: 90/90, Done.
Adding results: 90/90, Done.
2024-08-01T07:42:38.9887501Z No attachments found to upload.
2024-08-01T07:42:38.9887501Z Submitted 90 test results in 12.5 secs.
2024-08-01T07:42:39.2326093Z ##[error]Process completed with exit code 0 and had 1 error(s) written to the error stream.
2024-08-01T07:42:39.2326093Z ##[section]Finishing: Send to TestRail
I tried to increase batch, disabling multithreading but still the same error in pipeline.
PowerShell script Im using:
trcli -y
-h $(TestRailUrl)
--project "$(TestRailProject)"
-u $(TestRailUserName)
-k $(TestRailApiKey)
parse_junit
--title "Project Unit Tests Run"
--suite-id $(TestRailSuiteId)
--section-id $(TestRailSectionId)
-f TestResults.xml
Beta Was this translation helpful? Give feedback.
All reactions