Exercise 2: Running a Manual Test Plan

In this exercise, you will learn how to run the manual test plan we created in the first exercise.

  1. From the top menu, click the Test button to enter test mode.

    Figure 1

    Test button location

  2. In the left pane, expand the tree to find the End-to-End Tests node and select it.
  3. In the right pane, select the test titled “Confirm that receipt number appears after successful order” and click the Run with options button by first selecting the dropdown arrow next to the Run button.

    Figure 2

    Run button location [test case ID listed may not match screenshot]

  4. In the Run Options window, change the test settings to Full Diagnostics.

    Figure 3

    Selecting Full Diagnostics option for test

  5. At this point, the Microsoft Test Runner is launched and provides the option to record the actions taken by the tester. This is a key feature as it enables “fast forwarding” for future test runs and records more details for reviewing tests later. Check the Create action recording box and click Start Test.

    Figure 4

    Running the manual test with action recording

  6. Wait until the Test Runner has completed initialization and then launch Internet Explorer from Windows Quick Launch bar.
    Note:
    There is a known bug that may result in the Internet Explorer process crashing on slower machines. This can be worked around by waiting an additional 15 seconds after initialization is complete before launching Internet Explorer.
  7. Copy and paste the https://WIN-GS9GMUJITS8:8000 address from the “New Test Case.txt” file into the address bar in Internet Explorer and press Enter. It will take a few moments for the site to load and run.
  8. After the site has loaded, the first step of the test has been completed successfully. Click Ctrl+Windows+Q to indicate that the test has passed. Alternatively, you can select the Pass option from the test result dropdown next to the step itself. It’s not a requirement to pass or fail tests other than those that require validation (such as with “expected results”), but it does help when correlating tester actions with steps. Note that when you pass a test, it automatically sets the next step as active, so you don’t need to click back and forth between the runner and the browser.

    Figure 5

    Manually passing a test step

    Note:
    To use the Ctrl+Windows+Q shortcut you may need to run the VM in full screen mode.
  9. In Internet Explorer, click the Model Airplanes button and press Ctrl+Windows+Q if successful.
  10. Click the Northwind Trader link and press Ctrl+Windows+Q if successful.
  11. Click the Add To Cart button and press Ctrl+Windows+Q if successful.
  12. Click the Checkout button and press Ctrl+Windows+Q if successful.

    Note:
    In the event that your action recording does not go according to plan, you can always reset and record again.

    Figure 6

    Location of Reset button

  13. Click in the “First” text box and press Ctrl+V to paste the first iteration’s First variable into the box. This action will bind the variable from the test with the text box in the website, as evidenced by the databound icon that is shown next to the variable. Future iterations of the test will be able to take advantage of this association.
    Note:
    There is a known issue that can sometimes prevent focus from automatically returning to the text boxes in the website after databinding with test data. For example, after filling in a text box and pressing Tab, focus will not be set in the next textbox as you would expect. This issue occurs when running the virtual machine on slower hardware. To work around this issue, simply click a second time in the textbox you want to set focus to.
  14. Repeat the process of pasting the variables for “Last”, “Email”, “Address”, and so on. Skip the Address 2 text box. In the end, each of the variables should be databound.

    Note:
    You will have to select values from dropdown boxes for Country and State even though they may already display a value. 

    Figure 7

    Databound test variables

  15. Press Ctrl+Windows+Q to indicate the order form step passed.
  16. Click the Review Order button and press Ctrl+Windows+Q if successful.
  17. Click the Place Order button and press Ctrl+Windows+Q if successful.
  18. Confirm that the order page has a receipt number. Press Ctrl+Windows+Q to indicate that the step passed.

    Figure 8

    Order page showing receipt number

  19. Close the Internet Explorer window as instructed and press Ctrl+Windows+Q if successful.
  20. You are now at the end of the first test iteration. Click the End iteration and move to next link to move onto iteration 2.

    Figure 9

    Location of “End iteration and move to next” link

  21. In this iteration, we will not create an action recording as it will overwrite the original one that we just created. Instead, we’re going to use the version that we just recorded to aid in the running of this iteration. Click the Start Test button to start iteration 2.
  22. Step 1 should already be selected. Hold down the Shift key and click the “Click Place Order” step to select all steps leading to it, inclusively.

    Figure 10

    Selecting all steps up to “Click Place Order”, inclusively

  23. Click the Play button to automatically run the selected steps. Using the mouse or keyboard during test automation can interfere, so don’t use them again until the automation of the selected test steps is complete.
    Note:
    This automated process uses the data specified for the second test iteration of the test in order to complete the registration form.
  24. After the Test Runner finishes running the steps that you selected, it will stop on the “Confirm order page has receipt #” test so that you can manually verify. Press Ctrl+Windows+Q to indicate that step passed.
  25. You are now at the end of the second test iteration. Click the End iteration and move to next link to move onto iteration 3.
  26. Follow the same process that you did for iteration 2.
  27. Since we are on the last iteration, click the “End iteration” link shown after the last step.
  28. Click the Save and Close button to save the test results.

    Figure 11

    Location of “Save and Close” button

Next Step

Exercise 3: Analyzing Manual Test Results