Write testing procedure to use case flow of events

You can define the steps needed to complete a use case. Furthermore, you can create test cases around the steps, to make sure the use case will be completed correctly in any situations. In this tutorial, we will create test case for a use case named Logic.

February 22, 2010
User Rating: / 5
Views: 5,664
PDF Link Add comments
Edition: Standard or above (Edition comparison)

  1. Download the project file Webmail System.vpp attached to this tutorial.
  2. Start Agilian in a new workspace.
  3. Open Webmail System.vpp.
  4. Open use case diagram Webmail System Use Case Model. You should see this:
    use case diagram
  5. We need to edit the test case of a use case. To do so, open the Use Case Details on use case Logic by right clicking on it and selecting Use Case Details from the popup menu.
    open use case details
  6. Open the page of Flow of Events. The use case Logic is formed by a number of simple steps - enter username and passowrd, and click Submit. What we need to do is write test case to make sure this three steps will work as expected in the final product.
    open flow of events
  7. Move the mouse pointer to the right hand side of the flow of events, click on the drop down menu (Menu) and select Main. This drop down menu is for selection of test case. Main is the default one.
    select main
    Now, the flow of events page is divided into three columns - Steps, Procedures and Expected Results. By walking through the steps, the use case is said to be completed. Procedures and expected results are made for testing purposes. Procedures are the steps needed to test a step, while expected results are the outcome expected by performing the testing procedures.
    three cols
  8. We want to start by writing a valid test case. In step one, we shall test the entering of username by entering peter, assuming that peter is a valid and existing user, and expect to have name peter show on the username field. Enter Fill in peter as username in Procedures cell of step 1. There is no doubt that entering text in a field will have the text appear on the field, so we simply omit expected results here. If you like you can still enter Text "peter" show in username field, but just look a bit cumbersome.
    enter proc step1
  9. For step two Enter password, specify Fill in mypwd as password in Procedures cell. In order to make sure a proper password field is used, we need to specify the expected results by entering Five asterisk (i.e. *) characters are shown in Expected Results cell.
    enter proc step2
  10. For step three, specify Click [Submit] in Procedures cell. Enter Peter's Inbox is shown in expected results.
    enter proc step3
  11. The naming of test case Main is not descriptive enough. Let's change it. Click on the ... button next to the drop down menu Main.
    edit test case
  12. In the Testing Procedures dialog box, right click Main and select Rename from the popup menu. Enter Logic with valid username and password as name.
    rename main
  13. Let's add another test case for testing invalid usage. In the Testing Procedures dialog box, click on the + button, enter Logic without username and password as name. Confirm the changes and go back to the page of flow of events.
    new testing procedures
  14. The test case is now Login without username and password. Let's fill in the procedures and expected results as shown below:
    Steps Procedures Expected Results
    Enter username Do not enter anything  
    Enter password Do not enter anything  
    Click [Submit] to open the Inbox page Click [Submit] Warning : "Please specify username and password" appear. Login aborted.
  15. Save the project. This ends the tutorial.

Resources

  1. Webmail System.vpp

Rate this Article

Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).

You may be interested in

  1. Representing end-to-end enterprise architecture with ArchiMate
    Tagged:
  2. From Business Process to Use Case
  3. Drawing Business Motivation Model (BMM) diagram
  4. Organize enterprise design with Zachman Framework
  5. Importing Visio drawing as stencil
    Tagged:
Tags of this article:

Comments (0)

Write comment

Rating

Comment

Enter the calculation result

security code