Skip to content

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

License

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)