[PR #10886] [MERGED] Improve UIA movement testing methodology #28284

Open
opened 2026-01-31 09:27:31 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10886
Author: @carlos-zamora
Created: 8/6/2021
Status: ✅ Merged
Merged: 8/19/2021
Merged by: @undefined

Base: main ← Head: dev/cazamor/a11y-7000/testing


📝 Commits (2)

📊 Changes

6 files changed (+4038 additions, -56 deletions)

View changed files

📝 .github/actions/spelling/allow/allow.txt (+2 -0)
➕ src/interactivity/win32/ut_interactivity_win32/GeneratedUiaTextRangeMovementTests.g.cpp (+3171 -0)
📝 src/interactivity/win32/ut_interactivity_win32/UiaTextRangeTests.cpp (+355 -56)
➕ tools/TestTableWriter/GenerateTests.ps1 (+164 -0)
➕ tools/TestTableWriter/README.md (+90 -0)
➕ tools/TestTableWriter/UiaTests.csv (+256 -0)

📄 Description

Introduces a new methodology to maintain tests for UI Automation. This includes...

  • UiaTests.csv: an excel spreadsheet designed to store UIA movement tests in a compact format
  • GeneratedTests.ps1: a PowerShell script that imports UiaTests.csv and outputs a C++ TEST_METHOD for `UiaTextRangeTests.

This new system can be used to easily add more UIA movement tests.

Read https://github.com/microsoft/terminal/blob/dev/cazamor/a11y-7000/testing/tools/TestTableWriter/README.md for more details.

Follow-up work items:

  • #10924 Failing Tests: this found some failing tests. We should make them not fail.
  • #10925 Missing Tests: Word navigation: Word navigation is missing.
  • #10926 MoveEndpoint Tests: an additional column can be added to the CSV "EndpointTarget", which can be "start", "end", or "both". This will allow us to test MoveEndpoint in addition to Move.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/10886 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 8/6/2021 **Status:** ✅ Merged **Merged:** 8/19/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/cazamor/a11y-7000/testing` --- ### 📝 Commits (2) - [`1a15d8e`](https://github.com/microsoft/terminal/commit/1a15d8ec803da88a58838cc2ca082ddb6384289e) Improve UIA movement testing - [`5e3d85c`](https://github.com/microsoft/terminal/commit/5e3d85cb936f22580bbcaea55a44550c3f1158c7) spell check ### 📊 Changes **6 files changed** (+4038 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/spelling/allow/allow.txt` (+2 -0) ➕ `src/interactivity/win32/ut_interactivity_win32/GeneratedUiaTextRangeMovementTests.g.cpp` (+3171 -0) 📝 `src/interactivity/win32/ut_interactivity_win32/UiaTextRangeTests.cpp` (+355 -56) ➕ `tools/TestTableWriter/GenerateTests.ps1` (+164 -0) ➕ `tools/TestTableWriter/README.md` (+90 -0) ➕ `tools/TestTableWriter/UiaTests.csv` (+256 -0) </details> ### 📄 Description Introduces a new methodology to maintain tests for UI Automation. This includes... - `UiaTests.csv`: an excel spreadsheet designed to store UIA movement tests in a compact format - `GeneratedTests.ps1`: a PowerShell script that imports `UiaTests.csv` and outputs a C++ TEST_METHOD for `UiaTextRangeTests. This new system can be used to easily add more UIA movement tests. Read https://github.com/microsoft/terminal/blob/dev/cazamor/a11y-7000/testing/tools/TestTableWriter/README.md for more details. Follow-up work items: - #10924 **Failing Tests**: this found some failing tests. We should make them not fail. - #10925 **Missing Tests: Word navigation**: Word navigation is missing. - #10926 **MoveEndpoint Tests**: an additional column can be added to the CSV "EndpointTarget", which can be "start", "end", or "both". This will allow us to test `MoveEndpoint` in addition to `Move`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:27:31 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28284