DevExpress-Examples / winforms-app-ui-automation-testing

Create UI Automation tests for a DevExpress-powered WinForms application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Create UI Automation tests for a DevExpress-powered WinForms application.

License:Other


Languages

Language:Visual Basic .NET 51.1%Language:C# 48.9%