gurock / trcli

TR CLI (trcli) is a command line tool for interacting with TestRail.
Mozilla Public License 2.0
48 stars 43 forks source link

Did not created test run after uploading test result using trcli #273

Open Louie-O opened 1 month ago

Louie-O commented 1 month ago

TestRail CLI Version

1.9.7

CLI Environment

No response

TestRail Version

8.0.5

TestRail Instance Type

Enterprise Cloud

Current behavior

I'm integrating our testNG framework, running the trcli command below. It did not created test run but created a test suite with no test case in it.

*Case IDs are existing test cases

GFI00348:gcash-regression marclouie.omampo$ trcli -y -c "trcli-config.yml" parse_junit --case-matcher "name" --suite-id=70 --case-fields "custom_scenario:1" --case-fields "custom_qualityprinciples:1" --case-fields "custom_segmentation:1" --case-fields "custom_testing_type:1" --case-fields "custom_test_development_unit:0" --case-fields "custom_capability:1" --case-fields "custom_component_s:[1]" --case-fields "custom_testing_phase:[1]" --case-fields "custom_testing_activity:1" -f "./target/surefire-reports/TEST-TestSuite.xml" TestRail CLI v1.9.7 Copyright 2024 Gurock Software GmbH - www.gurock.com Parser Results Execution Parameters

Report file: ./target/surefire-reports/TEST-TestSuite.xml Config file: trcli-config.yml TestRail instance: https://myntfintech.testrail.io/ (user: qa.practice+AF01@gcash.com) Project: TESTING SANDBOX Run title: TestRail Integration Update run: No Add to milestone: No Auto-create entities: True Parsing JUnit report. Processed 36 test cases in section TestSuite. Checking project. Done. Found 34 test cases without case ID in the report file. Nonexistent case IDs found in the report file: [2268] Error occurred while checking for 'missing test cases': 'Case IDs not in TestRail project or suite were detected in the report file.' Adding missing sections to the suite. Removing unnecessary empty sections that may have been created earlier. Removed 1 unused/empty section(s). Creating test run. Field :case_ids contains unrecognized case IDs. Unable to delete created section: Field :section_id is not a valid section.

Desired behavior

No response

More Details

No response

aaleshin commented 1 month ago

same problem