Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 2.68 KB

File metadata and controls

38 lines (26 loc) · 2.68 KB

How to Create UI Automation Tests for a DevExpress-powered WinForms Application

This example uses Visual Studio 2022 and UI Automation to test a DevExpress-powered Windows Forms application ("UIAutomationTestingExample"). The application includes the following data forms:

  • LogIn - Simulates a call to an authorization service that asynchronously returns a user's login result (with a delay).
  • Customers – Includes a DevExpress WinForms Data Grid used to display customer information on-screen. The "Name" column displays customer names from a data source. The "Is Modified" unbound column indicates whether the user modified customer information.

The TestRunner project includes 3 tests:

  • ExistingUsernameLoginTest
  • NonExistingUsernameLoginTest
  • ModifiedCustomerTest

Run Tests

In the Solution Explorer, expand the project with tests ("TestRunner"), right-click the Tests.cs (or Tests.vb) file to invoke the context menu, and click "Run Tests".

Files to Review

See Also

Enhance WinForms Application Reliability with UI Test Automation

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)