Overview

Introduction

The Implement Test Automation module provides you with the instructions and devices to develop your hands on skills in the following topics.

  • Testing User Interface with Automated Coded UI Test
  • Running an Executable using Generic Tests
  • Defining Test Categories to Group Your Tests

Exercise 1 - Testing User Interface with Automated Coded UI Test

Coded UI tests are automated tests that run your application through its user interface (UI). These tests enable you to carry out functional testing of the UI controls. You can also use the test to perform any particular validation or other logic in the UI of your application. These tests are also used for automating an existing manual test. To create a coded UI test, you simply need to perform the required test manually while the CUIT Builder runs in the background. You can also verify the values in UI fields such as text boxes or labels.

In this exercise, you will create a coded UI test to verify the text displayed on a menu bar of a Web page in an existing Web application.

Exercise 2 - Running an Executable using Generic Tests

Generic tests help you wrap external programs and tests that were not designed for use in the Team System testing tools. For example, by creating a generic test, you can wrap up an existing test, program or other custom tests and can run the test from within Visual Studio environment.

In this exercise, you will create and run an executable file of a console application using generic test.

Exercise 3 - Defining Test Categories to Group Your Tests

You can categorize your automated tests with test categories. When you run these automated tests using Visual Studio or Team Foundation Build, you can select the test to run based on the assigned test category. You categorize a test by adding test categories as attributes to your test methods.

Comprehensive Learning

See the full benefits of our immersive learning experience with interactive courses and guided career paths.