Smart Testing Glossary

Coded UI Testing

Coded UI testing is an automated testing approach that drives application interfaces through recorded or programmatically defined user interactions, verifying UI behavior and state via assertion points against expected outcomes.

Coded UI testing works by capturing user actions—clicks, keystrokes, form inputs—through a test builder recorder or by writing code directly against a control abstraction layer. The resulting test script uses a UI Map to reference interface elements by stable locators, decoupling tests from visual layout changes and making the suite easier to maintain as the application evolves.

During playback, a playback engine replays the recorded actions against the live application, resolving each control reference through the UI Map before executing the next step. Synchronization points handling ensures the engine waits for controls to become ready rather than failing on timing mismatches, which is a common source of flakiness in UI automation.

The approach supports data-driven Coded UI patterns, where the same interaction sequence runs against multiple input sets, and can be structured using a page object model to group related UI interactions. Assertion points scattered through the script confirm intermediate states, not just the final screen, giving finer-grained failure diagnosis. Coded UI testing sits naturally in end-to-end testing scenarios where verifying the full user journey across integrated components matters most.

Also known as: CUIT, Coded UI test automation

Related terms