Exercise 1: Authoring a Manual Test Plan
In this exercise, you will learn how to create a manual test plan and populate it with steps. The plan can later be run to confirm the expected behavior of your software.
- Log in as Abu Obeida Bakhach (Dev) if you have not already done so. The password is P2ssw0rd (capital letter P, the number two, the letter s, the letter s, the letter w, the number zero, the letter r, and the letter d). Please see “Working with the Visual Studio 2010 Virtual Machine” for instructions on how to log into the VM.
- Open Microsoft Test Manager from Start | All Programs | Microsoft Visual Studio 2010 | Microsoft Test Manager 2010. This is a new tool dedicated to manual software testing that has been built from the ground up for Visual Studio 2010.
- In this lab we’re going to focus on creating a new manual test case and running it. We will focus on the other aspects of managing test cases and test plans in another lab.
- Select the Plan activity button at the top of the Test Manager window.
In the left pane, highlight End-to-End Tests and click the New button in the right pane.
Figure 1
Creating a new manual test
- In the Title box, type “Confirm that receipt number appears after successful order”. Alternatively, you can open the “New Test Case.txt” file from the Code Snippets folder on the desktop of the VM and copy and paste the title from there.
- At this point, we’re ready to add steps to this manual test. Each step includes an Action, which describes the action the tester needs to perform. Optionally, a step can include an Expected Result, which describes the expected result of the given action.
- In the Steps panel, create a step for each of the following Actions, only one of which has an Expected Result. See the next paragraph for an alternate, faster way to add the actions.
Open https://WIN-GS9GMUJITS8:8000 |
|
Click Model Airplanes |
|
Click Northwind Trader |
|
Click Add to Cart |
|
Click Checkout |
|
Enter @First, @Last, @Email, @Address, @City, @Country, @State, @PostalCode |
|
Click Review Order |
|
Click Place Order |
|
Confirm order page has receipt # |
Receipt # should appear at top of order confirmation page |
Close Browser |
|
An alternative method to manual entry of each step is to copy and paste all steps from the “New Test Case.txt” file to add them all at once. In order to do this, select the first blank Action cell and press the Escape key so that the cell has dotted lines surrounding it, then paste in all steps.
Figure 2
Steps are ready to be pasted
At this point, the Steps panel should look similar to the following:
Figure 3
Steps for new manual test
Adding a value in the Expected Result column for a manual test step adds a checkbox next to the step action so that the tester is required to manually validate that the test passed.
- Note the “Enter @First, @Last, @Email, @Address, @City, @Country, @State, @PostalCode” step. In this step, we used the @ sign to indicate that there were iteration-specific variables to be used during the manual test pass. We can define which variables to use by scrolling down to the Parameter Values section of this form and entering them for each iteration. Use the following table to set up values for three iterations (or use the copy and paste method from the “New Test Case.txt” file once again):
Michael |
Affronti |
Michael@Contoso.com |
One Microsoft Way |
Chris |
Barry |
Chris@Tailspin.com |
Two Tailspin Trail |
Robin |
Wood |
Robin@Northwind.com |
Nine Northwind Street |
Redmond |
USA |
Washington |
98052 |
Springfield |
USA |
Illinois |
11135 |
North Wind |
USA |
North Dakota |
99909 |
The Parameter Values section should now look like this:
Figure 4
Parameter values for manual test
Save test case by clicking the Save icon in the top-right corner of the window.
The test case is saved as a project work item.
Figure 5
Save button location
Next Step
Exercise 2: Running a Manual Test Plan
|
|