Exercise 6.2: Testing the Web application

Before you begin, you must complete Exercise 6.1: Restarting the server.

First you test the customer list page and then you test the update record and update complete pages.

Testing the customer list page

To test the customer list page:

  1. Right-click inquiry.jsp and click Run > Run on Server on the pop-up menu.
    inquiry.jsp
  2. Click the Find link.

    The Customer list page opens.

  3. Select the first entry on the list.
    Customer List page
  4. Click the Get Customer Number button.
    inquiry.jsp page with customer number 0010100
  5. Click the Submit button.

    The Customer details page opens showing the details of the selected customer.
    Customer Details page -- Zip highlighted

Testing the update record and update complete pages

To test the update record and update complete pages:

  1. When the information is displayed, click the Update Customer Record button.
  2. Change some of the fields and click the Submit button.
    Update Customer Record -- Zip modified

    You should see the confirmation page with the new values.
    Update Complete page -- new Zip applied

  3. Click the Back to Customer List link and you will return to the customer list page.

You have tested the update record page and the update complete page.

Module recap

You have completed Module 6. Running the Web application. You have learned how to:

Finish the tutorial by reviewing the materials in Summary.