< Previous | Next >

Lesson 4.1: Add a manual test script to a test case

In lesson 3.1, you logged in as the test manager and created a new test case to cover a requirement. In this lesson, you log in as the tester to create a manual test script and add it to the test case. A manual test script is a series of test instructions, called statements, that guide a tester through a manual test.
To begin test script development:
  1. Log in as the tester (Userid: tony, Password: tony) when prompted with the login dialog box. Tony's dashboard opens.

    Notice that the work item created in the previous lesson is now listed in the tester's My Tasks viewlet:

    My Tasks viewlet for the tester

  2. To open the work item, from the My Tasks viewlet, click Test Case is ready for manual test script. Click the Overview tab of the work item. You can see that the tester is instructed to create the test script:

    Work item for tester to add test script

  3. Return to the dashboard by clicking Back to Home at the upper, left corner of the page.
  4. To open the test case, click New Customer Order Test Case in the Artifacts column of the My Tasks viewlet.
  5. To create a new manual test script for testing the ordering function:
    1. Click the Test Scripts section.
      Important: You can use the installed manual test script sample to decrease the time it takes you to complete this lesson. Click the Add Existing Test Scripts icon (Add). In the View Builder window, deselect My test scripts only, and click Run. From the list of test scripts, select New Customer Order Test Script (Sample), and click OK. Click the name to open it, and then skip steps b through e.
    2. Click the Add New Test Scripts icon (Add new test script), type the name as New Customer Order Test Script and the description as Manual script to test ordering functionality of the Classics Java application.
    3. Select Tony, Tester as the owner, click OK, and then click Save.
    4. To open and begin editing the test script, click the test script name. The Manual Test editor opens.
    5. Click Click to add and type the following statements. Press Enter to advance to the next step.
      1. Start the Classics Java A application.
      2. Did the Classics CD window open?
      3. Expand the Bach folder.
      4. Click Violin Concertos.
      5. Click the Place Order button.
      6. Did the Member Login dialog box open?
      7. Make sure Existing Customer is selected.
      8. In the Full Name field, type Trent Culpito.
      9. In the Password field, type 1234567.
      10. Click OK.
      11. Was the order placed correctly?
      12. In the Card Number field of the Place an Order dialog box, type 5555 1212 5555 1212.
      13. For the card type, select Visa.
      14. In the Expiration Date field, type 10/09.
      15. Click the Place Order button.
      16. Was the credit card information processed?
      17. Did the Message dialog indicate that your order had been received?
      18. Click OK to close the message box.

      The test script will look similar to the following image:

      Manual test script

      Note: In the above image, most of the statements are Execution Steps. Execution Steps are actions that you want the tester to perform when running the script. Notice that steps 2, 6 11, 16, and 17 have different icons. These are verification points. Verification points ask questions about the application that you are testing. Steps 11 and 16 are reporting points. Reporting points are higher-level verification points and might summarize the result of several verification points.
  6. Change the statement types:
    1. Change the statement types of steps 2, 6, and 17 to verification points by clicking the statement, clicking the down arrow next to the Step icon (Step), and selecting Verification Point Verification point from the list.
    2. Change the statement types of steps 11 and 16 to reporting points by clicking the statement, clicking the down arrow next to the Step icon (Step), and selecting Reporting Point Reporting point from the list.
  7. You can also add pictures inline for clarification when testing. To add pictures:
    1. Click the statement to add the image to.
    2. Click the Insert Image icon (Attach image) on the editor toolbar.
    3. When the dialog box opens, click Browse.
    4. Browse for the file, and click Open. The image is added to the statement.
    Note: Images are displayed in a manual test script when a test is running. You can also add attachments, comments, and verification text by clicking the appropriate icon in the toolbar.
  8. When you are finished with the script, click Save.
In the next lesson, you continue as the tester and add test data to the manual test script.
< Previous | Next >

Feedback