Automating UI Tests for WPF Applications
Learn how to create a maintainable automated test suite for your WPF application. This course guides you through the process of building one with real-world code examples as well as tips and best practices along the way.
What you'll learn
Automating UI tests for WPF applications is not an easy task, especially if you have a large project with reach functionality. Nevertheless, it is possible to create a set of simple and maintainable UI tests which can become a great supplement for your development process. In this course, we will walk through the process of creating a full-fledged automated UI test suite. Along the way, we will use simple yet telling WPF applications with functionality close to that of real-world enterprise applications.
Table of contents
- Introduction 1m
- Automation Frameworks at First Glance 2m
- Comparison Overview 1m
- Demo: Getting Started with Coded UI 6m
- White's Architecture 3m
- Demo: Getting Started with White 7m
- Comparing the Ease of Getting Started 1m
- Performance Demo 2m
- Performance Demo Results 1m
- Generated vs. Handwritten Tests 5m
- Object Model Comparison 3m
- Maintainability Comparison 1m
- Comparison Results 1m
- Summary 1m
- Introduction 1m
- Why We Should Build a Domain-specific Framework 1m
- The Architecture of the Domain-specific Framework 3m
- Starting with Basic Smoke Test 5m
- Introducing Window Objects 4m
- Refactoring Window Objects 7m
- Refactoring Window Objects: Recap 2m
- WPF Controls Lifetime 2m
- Refactoring the Second Smoke Test 5m
- Introducing a Base Test Class 3m
- Working with Grids 5m
- Adding an Employee Smoke Test 8m
- Summary 1m
- Introduction 1m
- Moving Towards the Business Rules 1m
- Adding a First Project Test 5m
- Using Coded UI Test Builder to Determine Search Criteria 1m
- When to Reuse the Window Object Classes 1m
- Organizing Tests in the Solution 2m
- Automated UI Tests and Branching 1m
- Creating the Remaining Project Tests 3m
- Introducing Workflows 4m
- The First Employee Test 9m
- When to Use Workflows 3m
- The Second Employee Test 5m
- A Dashboard Test 3m
- Running the Tests Together 1m
- Summary 1m
- Introduction 1m
- Acceptance Tests vs. UI Tests 2m
- Why Create Automated Acceptance Tests 2m
- When to Create Automated Acceptance Tests 1m
- Our New Architecture 1m
- Introducing SpecFlow and Gherkin 3m
- Getting Started with SpecFlow 1m
- Department Feature 8m
- Don't Program Against the Scenario Steps! 1m
- Projects Feature 1m
- Project Promotion Feature 3m
- Assigning an Employee a Project 1m
- Dashboard Feature 4m
- Summary 1m