Skip to content

TRCLI-234: Strip <p> </p> tags from Automation ID value when doing case matching in Code-first workflow#394

Merged
acuanico-tr-galt merged 3 commits intorelease/1.13.2from
fix/TRCLI-234
Feb 24, 2026
Merged

TRCLI-234: Strip <p> </p> tags from Automation ID value when doing case matching in Code-first workflow#394
acuanico-tr-galt merged 3 commits intorelease/1.13.2from
fix/TRCLI-234

Conversation

@acuanico-tr-galt
Copy link
Collaborator

When the TestRail automation_id custom field is configured as Text type, TestRail's HTML editor automatically wraps the content in <p> tags when users view or edit test cases. This causes automation_id matching to fail and could duplicate test case uploads.

Solution description

Added method to strip leading and trailing html tags, handle white space and preserve values in AutomationIDMatcher.

Potential impacts

None.

Steps to test

  • Create a new Automation ID custom case field with Text as type and assign to project.
  • Upload test results using Code First Approach (automatic matcher and generation of case IDs)
  • Once uploaded, view and edit the case in TestRail
  • Try to upload the same test results again, it should properly match the edited case in TestRail with whats in the file.

@acuanico-tr-galt acuanico-tr-galt merged commit 5a4b475 into release/1.13.2 Feb 24, 2026
2 of 3 checks passed
@acuanico-tr-galt acuanico-tr-galt deleted the fix/TRCLI-234 branch February 24, 2026 10:58
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