TRCLI-207 Fix test run cases deletion issue in update_run_in_plan_entry #375
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue being resolved: #372
Solution description
Fixed a critical bug where uploading JUnit XML results to existing test runs (with configs in a test plan) was failing with error: "case unknown or not part of the test run". The root cause was that trcli wasn't sending the include_all parameter when calling update_run_in_plan_entry, causing TestRail to deselect all test cases from the run.
Changes
Updated: trcli/api/api_request_handler.py (lines 471-486) changed the update_run() method to:
contract)
Potential impacts
None
Steps to test
Upload JUnit results to an existing run with configs in a test plan (the original bug scenario) -> verify case existing cases are
preserved -> Test with --run-include-all runs to ensure they still work in add_run command
PR Tasks