Test the MyOrderItemAddCmdImpl command

In this lesson, you test your new command in the storefront. To verify that your command customization is complete, ensure that you cannot add more items into your shopping cart than the maximum number of allowed unique items.

Procedure

  1. Start or restart the WebSphere Commerce Test Server.
  2. In a web browser, open your development environment store.
  3. Browse through your store catalog and and add five items to your shopping cart.
  4. Select another product and add the product your shopping cart. If your customization is successful, the product is not added to your cart. Instead, your new error message displays.
    This error message can resemble the following image.
    Screen capture that shows error message that more items cannot be added to the cart.

    If your error message displays, your customization is complete.