Unit Testing


To execute the Book Store Administrator application:

  1. Execute the BookStoreAdministrator.exe file. This file is located in the /bin folder of the BookStoreAdministrator folder. The Application Manager window appears, as shown in Figure 3-11:

    click to expand: this figure shows the application manager window that provides options to naviagate through the book store adminstrator application.
    Figure 3-11: The Application Manager Window

  1. Select Books->Add Book Category to add a new book category. The Books Category window appears, as shown in Figure 3-12:

    click to expand: this figure shows the books category window that displays available categories for books.
    Figure 3-12: The Book Category Window with Categories

  1. Specify the Category Id and Category for the new book category, as shown in Figure 3-13:

    click to expand: this figure shows information about the new book category that an administrator specifes to add that book category.
    Figure 3-13: Information for the New Book Category

  1. Click the Add category button to save the information about the new book category. The information about the new book category is added to the Existing Book Categories list, as shown in Figure 3-14:

    click to expand: this figure shows the existing book categories list after the administrator adds the information about the new book category.
    Figure 3-14: Existing Book Categories List

  1. Click the Close button to close the window.

  2. Select Books->Add Book to add a book. The Books Information window appears, as shown in Figure 3-15:

    this figure shows the books information window where an administrator can specify information about a new book and add that book to an available category.
    Figure 3-15: The Books Information Window

  1. Select a Book Category and specify the required information for the new book, as shown in Figure 3-16:

    this figure shows the information about the new book that an administrator specifies to add that book to the selected category.
    Figure 3-16: The Information for the New Book

  1. Click the Add Book button to add the information about the new book in the database.

  2. Click the Close button to close the Books Information window.

  3. Select Books->View Books to view the available books. The View Books Information window appears, as shown in Figure 3-17:

    click to expand: this figure shows the available books in the book category that an administrator selects.
    Figure 3-17: The View Books Information Window with Book Information

  1. Select the book that you added in Step 8 and click the Modify button to modify the information about that book. The Modify Book Information window appears, as shown in Figure 3-18:

    this figure shows the modify book information window that displays the information about the book, which the administrator selects in the view books information window.
    Figure 3-18: The Modify Book Information Window with Book Information

  1. Enter 15 in the Price text box and click the Update button to update the information. The Modify Book Information window closes and the information in the View Books Information is updated, as shown in Figure 3-19:

    click to expand: this figure shows the modified information of the book that an administrator selects to modify.
    Figure 3-19: The Modified Book Information

  1. Click the Close button to close the View Books Information window.

  2. Close the Application Manager window.

To execute the Online Book Store Web application:

  1. Open Internet Explorer.

  2. Specify the URL in the Address Bar as http://localhost/OnlineBookStore/Login.aspx. The Login Web page appears, as shown in Figure 3-20:

    click to expand: this figure shows the login web page that displays the user name and password fields, which an end user uses to log on to the application.
    Figure 3-20: The Login Web Page

  1. Click the Register button to register information. The Customer Registration Web page appears, as shown in Figure 3-21:

    click to expand: this figure shows the customer registration web page that provides the fields to enter the information required to register.
    Figure 3-21: The Customer Registration Web Page

  1. Specify the required information and click the Submit button to register and access the application. The Book Store Web Page appears, as shown in Figure 3-22:

    click to expand: this figure shows the book store web page that displays the available book categories and books in these categories.
    Figure 3-22: The Book Store Web Page

  1. Click the Add to Cart link for any book to add to the shopping cart. The View Cart link appears, as shown in the Figure 3-23:

    click to expand: this figure shows the view cart link using which an end user adds books to the shopping cart.
    Figure 3-23: The Book Store Web Page that Displays the View Cart Link

  1. Add some more books to the shopping cart.

  2. Click the View Cart link to view the books and the total amount in the shopping cart. The View Cart Web page appears, as shown in Figure 3-24:

    click to expand: this figure shows the books in the shopping cart.
    Figure 3-24: The View Cart Web Page

  1. Click the Place Order button to place the order for the books in the shopping cart. The Place Order Web page appears, as shown in Figure 3-25:

    click to expand: this figure shows the place order web page that displays credit card information fields.
    Figure 3-25: The Place Order Web Page

  1. Specify the credit card information and click the Submit button to place the order. The Order Confirmation Web page appears, as shown in Figure 3-26:

    click to expand: this figure shows the order confirmation web page that displays the confirmation message and the order id for the order placed by an end user in the place order web page.
    Figure 3-26: The Order Confirmation Web Page

  1. Click the Book Store button to navigate to the Book Store page or click the Logout button to log out from the session and navigate to the Login page.

Run the BookStoreAdminstrator.exe file to view and update the order placed by the end user using the Online Book Store Web application. To run the file:

  1. Select Orders->View Orders to view and update the pending orders. The View Orders window appears, as shown in Figure 3-27:

    click to expand: this figure shows the view orders window that displays pending orders.
    Figure 3-27: The View Orders Window with. Order Information

  1. Select an order from the Pending Orders list and click the View Information button to view the information about books in that order. The View Order Information window appears, as shown in Figure 3-28:

    click to expand: this figure shows the information about the books in an order that the end user selects in the view orders window.
    Figure 3-28: The View Order Information Window

  1. Click the Close button to close the View Order Information window.

  2. Select an order from the Pending Orders list and click the Update Order button to update the status of that order.

  3. Click the Close button to close the View Orders window.

  4. Close the Application Manger window.




NET InstantCode. UML with Visio and Visual Studio .NET
NET InstantCode. UML with Visio and Visual Studio .NET
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 49

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net