Open mhajhassan opened 1 month ago
@mhajhassan
1) to be able to reproduce the issue, can you please share the report file you used and the exact trcli
command line?
2) how did you generate the JUnit XML report? Did you use Junit5 together with the testrail-junit-extensions library?
@bitcoder
unfortunately I can't share the file, but yes used Junit5 together with the testrail-junit-extensions and the command was used it :
trcli -y --insecure -c "trcli-config.yml" parse_junit \ -f "./target/TEST-junit-jupiter.xml" \ --run-description "description" \ --case-matcher "property" \ --title "title"
it was working all the time, but we saw that after some failing test cases, saw that it's related to some chars
the TEST-junit-jupiter.xml is always generated, I can see it in target folder
@bitcoder unfortunately I can't share the file, but yes used Junit5 together with the testrail-junit-extensions and the command was used it :
trcli -y --insecure -c "trcli-config.yml" parse_junit \ -f "./target/TEST-junit-jupiter.xml" \ --run-description "description" \ --case-matcher "property" \ --title "title"
it was working all the time, but we saw that after some failing test cases, saw that it's related to some chars
Without a concrete example to replicate it there isn't much "we" can do
TestRail CLI Version
1.9.5
CLI Environment
macOS
TestRail Version
8.0.1 Early Access (1029)
TestRail Instance Type
Enterprise Server
Current behavior
while trying to upload the results, I am getting this error: `Adding results: 0/397 No attachments found to upload. Field :results contains one or more invalid results (case C815 unknown or not part of the test run)
**** API Call method: POST url: https://domain/testrail/index.php?/api/v2/delete_run/254 response status code: 200 response body: b''
**** API Call method: POST url: https://domain/testrail/index.php?/api/v2/delete_section/290 response status code: 400 response body: {'error': 'Field :section_id is not a valid section.'}
Deleted created run Unable to delete created section: Field :section_id is not a valid section.
I checked the sections and also test cases, all exist and correct, and after checking I saw that in request
index.php?/api/v2/add_results_for_casesI got response code
response status code: 400 response body: {'error': 'Field :results contains one or more invalid results (case C815 unknown or not part of the test run)'}` but the test case is known and a part of the test run, but because it's the first test case of the payload,at the end I saw that in TEST-junit-platform-suite.xml we have for one test case the following: `
` it looks like same issue with ticket https://github.com/gurock/trcli/issues/212
Desired behavior
No response
More Details
No response