TRCLI-262: Added new results command to list and update test results from TestRail#424
Merged
Merged
Conversation
…, also updated uploading attachments to use threadpool executor to parallelize and speed up uploading.
…achment processing and uploading logic
…xisting test results
…, also updated README with guides
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Solution description
Implemented a comprehensive results command group to manage test results in TestRail. The results list subcommand retrieves test results with flexible filtering (by test ID, run ID, or case ID), pagination support, and multiple output formats (line-by-line, JSON, or detailed with all fields). The results update subcommand updates existing test results with support for standard and custom fields.
Changes
Updated core API methods in ResultHandler with get_results(), get_results_for_run() and get_results_for_case(). Also added results update in cmd_results class.
Potential impacts
None. All changes are backwards compatible. Test results updating is supported in TestRail 10.4 or later.
Steps to test
Happy path to test implemented scenario
PR Tasks