Introduction to Coded UI Tests with Visual Studio

Course Summary

This introductory course is designed to familiarize testing professionals with the basics of the Coded UI tests in Microsoft Visual Studio. Testers can build, enhance, and run automated test scripts in Visual Studio. In addition to class lecture, you will be asked to complete labs to reinforce critical concepts and tool functionality. The focus is on the practical application of the Visual Studio Coded UI tests to resolve common functional testing challenges. This course focuses on getting started with Coded UI testing with Visual Studio.

Intended Audience

  • Testing professionals
  • Quality assurance practitioners
  • Managers
  • Team leaders

At the end of the course, you will be able to:

  • Create and execute coded UI tests using the recorder and import functionality.
  • Understand the basics of Coded UI testing, UI Map and the Coded UI test structure.
  • Navigate the Microsoft Visual Studio interface as it pertains to Coded UI tests.
  • Modify scripts to extend the capability to test the application using UI control locator and code.
  • Modify scripts to extend the capability to test the application using the UI control locator and enhancing the code.
  • Learn to troubleshoot and debug tests to correct common maintenance issues.
  • Learn to create data-driven tests

Introduction to Automated Functional Testing

  • Benefits of Test Automation
  • Visual Studio Interface Overview

Creating a Coded UI Test

  • Recording Test Steps
  • Using the Recorder Controls
  • Method Generation
  • Importing Action Recordings

Adding Assertions to the Test

  • Assertions using UI Locator
  • Selecting Objects with the UI Locator
  • Using Coded UI Comparators
  • Manually Coding Assertions

Understanding the UI Map

  • Accessing the UI Map
  • Understanding Control Names and Parent Windows
  • UI Map Maintenance

Test Executing & Evaluating Results

  • Running Coded UI Tests
  • Evaluating Log Files
  • Understanding Assertion Failures
  • Collection Files

Understanding Coded UI Test Structure

  • Test File Types
  • Understanding File Relationships

Debugging and Troubleshooting

  • Evaluating Assertion Statements
  • Storing Expected Results
  • Updating Control Statements
  • Debugging Process

Data-driven Testing

  • Creating DataSources
  • Creating Data-Driven Tests
  • Modifying Assertions with Data Driven Tests

To benefit from this course, you should have:

  • Basic understanding of Microsoft Windows applications and of the testing process
  • Some software development experience (beneficial, but not required)
  • Knowledge of C# programming language (beneficial, but not required)

Students also registered for...

Microsoft

Coded UI Immersion with Visual Studio

Learn More
Microsoft

Advanced Coded UI Tests with Visual Studio

Learn More
Microsoft

C# for Coded UI Tests with Visual Studio

Learn More