Hands-On Lab

Exploratory Testing using Microsoft Test Manager 2015

Lab version: 14.0.23107.0

Last updated: 9/11/2015

Table of Content

Exploratory Testing using Microsoft Test Manager 2015 1

Overview 3

Prerequisites 3

About the Fabrikam Fiber Scenario 3

Exercises 3

Exercise 1: Exploratory Testing Introduction 4

Task 1: Starting Exploratory Testing 4

Task 2: Working with the Test Runner Client 8

Task 3: Creating Bugs and Test Cases 18

Task 4: Continuing the Exploratory Testing Workflow 21

Task 5: Including Repro Steps 23

Task 6: Viewing Results of Exploratory Testing 26

Overview

In this lab, you will learn about the exploratory testing capabilities provided in Microsoft Test Manager 2015. You will learn about how exploratory testing (also called XT, or agile testing) has become a first-class experience in the toolset. This allows a tester to more flexibly test the underlying software without relying solely on formal test cases. Meanwhile, Microsoft Test Manager will continue to capture rich diagnostics about the application being tested which can be delivered to the development team if a bug is discovered. You’ll also learn about some of the other fit-and-finish features in Microsoft Test Manager, such as the ability to use rich text when authoring test cases.

Prerequisites

In order to complete this lab you will need the Visual Studio 2015 virtual machine provided by Microsoft. For more information on acquiring and using this virtual machine, please see this blog post.

About the Fabrikam Fiber Scenario

This set of hands-on-labs uses a fictional company, Fabrikam Fiber, as a backdrop to the scenarios you are learning about. Fabrikam Fiber provides cable television and related services to the United States. They are growing rapidly and have embraced Windows Azure to scale their customer-facing web site directly to end-users to allow them to self-service tickets and track technicians. They also use an on-premises ASP.NET MVC application for their customer service representatives to administer customer orders.

In this set of hands-on labs, you will take part in a number of scenarios that involve the development and testing team at Fabrikam Fiber. The team, which consists of 8-10 people, has decided to use Visual Studio application lifecycle management tools to manage their source code, run their builds, test their web sites, and plan and track the project.

Exercises

This hands-on lab includes the following exercises:

1.  Exploratory Testing Introduction

Estimated time to complete this lab: 30 minutes.

Exercise 1: Exploratory Testing Introduction

In this exercise, you will learn about some of the exploratory testing capabilities of Microsoft Test Manager 2015 that make exploratory testing easier on the software tester.

Task 1: Starting Exploratory Testing

1.  Log in as Adam (VSALM\Adam). All user passwords are P2ssw0rd.

2.  Launch Microsoft Test Manager from the taskbar. Microsoft Test Manager allows testers to work with test plans, author and organize manual test cases, execute test cases, file bugs, and post results back to Team Foundation Server.

3.  Connect to the FabrikamFiber team project. You will need to press the Home button and the Change Project button to get to the team project selection window (as shown in series of screenshots below).

Figure 1

Home button

Figure 2

Change Project button

Figure 3

Connecting to the FabrikamFiber team project

4.  In the Testing Center window, select the Add button to create a new test plan.

Figure 4

Adding a new test plan

5.  Enter “Exploratory Testing” as the name of the new plan and then select the Add button.

Figure 5

Adding a new test plan

6.  Select the Select Plan button to open it.

Figure 6

Opening the new exploratory testing plan

7.  You should now be in the Testing Center and connected to the Exploratory Testing test plan.

Figure 7

Testing Center showing exploratory testing plan

8.  Right-click on the Exploratory Testing test plan node and select the Explore option from the context menu.

Figure 8

Starting exploratory testing

Note: You may notice a message stating that desktop screen recording is currently disabled. This is simply an informational message that informs the tester that the test settings currently in use have not included the Screen and Voice Recorder diagnostic adapter. If desired, the test settings can be modified in Plan | Run Settings underneath the Manual runs section.

Task 2: Working with the Test Runner Client

1.  Select the Settings button in the bottom-right corner of test runner window.

Figure 9

Location of test runner settings button

2.  Note that we can modify screenshot settings and select an audio recording device here. Since this virtual machine does not support audio, we will not attempt to make a selection. Select the Escape key to continue.

Figure 10

Viewing current settings

3.  Select the green Start button to start an exploratory testing session.

Figure 11

Starting the test runner for exploratory testing

4.  Launch Internet Explorer and load the Fabrikam Fiber intranet portal by clicking on the FF Intranet link in the favorites bar. You should now see the dashboard page.

Figure 12

Launching the Fabrikam Fiber intranet portal

5.  Select the Tickets menu link of the Fabrikam Fiber intranet portal site to view all the service tickets.

Figure 13

Navigating to Tickets screen

6.  Select one of the service ticket links to view the details.

Figure 14

Selecting a service ticket to view details

7.  Note that the Created By and Assigned To fields currently show appropriate values.

Figure 15

Viewing service ticket details

8.  Select the Edit link near the bottom of the ticket details page (you may need to scroll down).

Figure 16

Editing a service ticket

9.  Note that the Created By property still shows an appropriate value.

Figure 17

Edit page for service ticket

10.  Select the Save button. As expected, Created By and Assigned To properties are still the same as they were before.

Figure 18

Saving ticket details

11.  Select the Delete button to delete the ticket.

Figure 19

Deleting a service ticket

12.  In the Delete confirmation page, note that the Created By and Assigned To properties are now set to None, which is not what we were expecting. In the comments box of the test runner, enter the text “CreatedBy and AssignedTo are blank when viewing Delete confirmation page.” Press the Enter key twice to leave room for a screenshot.

Figure 20

Delete confirmation page showing unexpected values

13.  Select the Add Screenshot button to add a screenshot of the Delete confirmation page to provide some context.

Figure 21

Location of screenshot button

14.  By default, this will allow you to draw a rectangle to define the area that you wish to capture. Hold the left mouse button down and move the mouse until you highlight the important part of the Delete confirmation page.

Figure 22

Selecting the area of the screenshot

Figure 23

Test runner window showing inserted screenshot

Note: You can double-click on the screen capture to edit it in a paint program to provide additional annotation if desired. By default, MS Paint is used, but you can use your tool of choice by configuring this in the settings dialog that you saw at the beginning of this exercise.

Task 3: Creating Bugs and Test Cases

1.  Select the Create Bug button to file a new bug.

Figure 24

Creating a new bug

2.  For the title, enter “CreatedBy and AssignedTo are blank when viewing Delete confirmation page” and assign the bug to Julia Ilyiana. Note that your observations, repro steps and diagnostic data are automatically included.

3.  Select the Save and Create Test button to finish filing the new bug.

Figure 25

Creating a new bug as the result of exploratory testing

4.  In the New Test Case window, enter a title of “Confirm that AssignedTo and CreatedBy fields appear on Delete confirmation page.

5.  In the Steps section of the New Test Case window, locate the row that starts with “Click ‘Delete’ link” and add the following text in the Expected Result column:

AssignedTo and CreatedBy fields should have appropriate values when viewing Delete confirmation page

Figure 26

Adding notes to the Expected Result column for a step

6.  Select the Save and Close button.

Figure 27

Save and close the new test case

Task 4: Continuing the Exploratory Testing Workflow

1.  After the new test case is saved, we are automatically returned to our exploratory testing task and can continue looking for more bugs. Let’s start by clearing out the observations from the previous bug that we just saved. Press Ctrl+A and then the Delete key.

2.  In the Internet Explorer window, select the Dashboard menu link.

Figure 28

Navigating to the dashboard

3.  Select one of the service ticket links to view the details.

Figure 29

Selecting a service ticket to view details

4.  Select the Escalate button (you may need to scroll to the right).

Figure 30

Escalating a service ticket

5.  The result of the attempt to escalate the service ticket is a HTTP 404 server error.

Figure 31

Escalating the service ticket results in an error

6.  Select the Create Bug button to file a new bug.

Figure 32

Creating a new bug

7.  For the title of the bug, enter “Escalate service ticket results in a HTTP 404” and assign it to Julia Ilyiana.

Figure 33

Creating a new bug as the result of exploratory testing

Task 5: Including Repro Steps

1.  In the Steps To Reproduce section of the new bug, note that there is a link that allows you to easily scope the repro steps. Select the Change Steps link.

Figure 34

Changing the scope of the repro steps

2.  In the Change Steps window, note that the steps that you took most recently are already highlighted (those starting with the click on Dashboard hyperlink). This represents the recent actions taken to reproduce the error we just saw. You could optionally change the selected steps if needed.

3.  Click the Select button to continue.

Figure 35

Selecting the repro steps

4.  Select the Save and Create Test button.

Figure 36

Creating a new bug as the result of exploratory testing

5.  In the New Test Case window, enter a title of “Ensure that ticket escalation page works” and then select the Save and Close button.

Figure 37

Save and close the new test case

Task 6: Viewing Results of Exploratory Testing

1.  Select the End Testing button in the test runner window.

Figure 38

End the exploratory testing session

2.  In the session summary window for the exploratory test, select the Save and Close button to return to the Plan tab of the Testing Center.

Figure 39

Save and close the exploratory testing session

3.  Note that there are now two formal test cases that are part of the Exploratory Testing suite. By formally capturing these test cases, we can ensure that we test for them in the future. This enables us to use a blend of approaches, both exploratory testing and formal testing, to improve our overall application quality.

Figure 40

Formal test cases were created as part of the exploratory testing session