Testing your customization

This sections explains how to test your customization by performing a shopping flow.

Procedure

  1. Ensure that your WebSphere Commerce Test Server is running by selecting the Servers tab in the Properties view. If it is stopped, select the server then select Start server.
  2. Once the server is started, open your internet browser and go to http://localhost/webapp/wcs/stores/servlet/Madisons2/index.jsp.
  3. Click Tableware > Wine Glasses.

    Tableware, Wine Glasses
  4. Add both the Villagois Wineglass and the Hawthorne Wineglass to your shopping cart by dragging and dropping the icons to the Quick Cart.
  5. Click the Shopping Cart tab at the top of the page.
  6. Under Villagois Wineglasses, fill in the engraving information and then click the Save button. Refresh the browser and repeat this for procedure for the Hawthorne Wineglasses.

    Filling in and saving the engraving information
  7. Refresh the browser again, you will notice that your new inputs are still there. These attributes have been saved and then retrieved from the WebSphere Commerce database.
  8. Check database to ensure that engraving information was saved.
    1. Open another internet browser and go to http://localhost/webapp/wcs/admin/servlet/db.jsp.
    2. Insert the following SQL statement.
      SELECT * FROM pattrvalue WHERE OrderItems_id IS NOT NULL;
      
    3. Check the table for your orderItems and make sure that the values you entered in the Madisons store have persisted to the PATTRVALUE table as shown in the following screen capture.
      PATTRVALUE table