Skip to content

TRCLI-230: Support for passing quality rating values using --result-fields option#416

Open
acuanico-tr-galt wants to merge 4 commits intorelease/1.14.2from
feature/TRCLI-230
Open

TRCLI-230: Support for passing quality rating values using --result-fields option#416
acuanico-tr-galt wants to merge 4 commits intorelease/1.14.2from
feature/TRCLI-230

Conversation

@acuanico-tr-galt
Copy link
Copy Markdown
Collaborator

Solution description

Allow users now apply quality ratings globally to all test results using the --result-fields CLI option for AI Evaluation Template

Changes

  • Enhanced TestRailResult.add_global_result_fields() to handle quality_rating specially
  • Parses and validates quality_rating from --result-fields using QualityRatingParser
  • Test-specific quality ratings (from XML/JSON properties) always take precedence over CLI global ratings

Potential impacts

None.

Steps to test

See updated README Line 579-641

Behavior:

  • Tests without quality_rating property → Get CLI global rating
  • Tests with quality_rating property → Keep their specific rating (override CLI)
  • Invalid CLI rating → Immediate error before upload
  • Invalid property rating → Log warning, continue upload

PR Tasks

  • PR reference added to issue
  • README updated
  • Unit tests added/updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant