Overview

Introduction

The Detecting Software Defects module provides you with the instructions and devices to develop your hands on skills in the following topics.

  • Creating Test Methods by Recording User Actions and Automating a Test Case
  • Install and Configure Test Agent and Test Controller
  • Deploying Code to Lab Environment
  • Running Automated Tests using Tcm
  • Assigning Roles to a Test Controller and Test Agent for Automated Testing in Visual Studio

Exercise 1 - Creating Test Methods by Recording User Actions and Automating a Test Case

Visual Studio allows you to automate the system tests that you performed manually by recording your actions and simulating your actions using coded UI test (CUIT). You can create a CUIT using Visual Studio by recording your actions while you test your application manually. The CUIT creates test methods that you can link to your test case.

In this exercise, you will create a test method by creating a CUIT that simulates user actions by recording your manual test that you will perform on an existing Web application. You will then link the automated CUIT with a test case.

Exercise 2 - Install and Configure Test Agent and Test Controller

You need to use a test controller and test agents to manage and run tests using Microsoft Test Manager. Test agents perform tasks such as running tests and collecting test data. Test Controllers enable you to distribute tests and manage test that runs remotely by coordinating with test agents that are installed on each test machine.

In this exercise, you will install a test agent and a test controller for a team project collection. Configuring a test controller for a team project collection enables you to create a lab environment for that team project collection.

Exercise 3 - Deploying Code to Lab Environment

In this lab, you will create a build definition for a team collection and run automated tests on it in a standard lab environment.

Exercise 4 - Running Automated Tests using Tcm

Visual Studio allows you to run automated test cases from the command line using tcm.exe

In this exercise, you will gather information in order to run an automated test from the command line.

Exercise 5 - Assigning Roles to a Test Controller and Test Agent for Automated Testing in Visual Studio

In this exercise you will configure a test setting and assign roles to a test controller and test agents.

Comprehensive Learning

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