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
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".
- Tests.cs (VB: Tests.vb)
- Program.cs (VB: Program.vb)
Enhance WinForms Application Reliability with UI Test Automation
(you will be redirected to DevExpress.com to submit your response)