Step 4: Test the dynamic context relationship

In this step, you will test the new dynamic context relationship that you have created.

  1. Start the WebSphere Portal Test server:
    1. At the bottom of the window, click Servers.
    2. Select the WebSphere Portal Test server. Right click. From the menu, select Start.
    3. After the server starts, do the following:
      1. At a command prompt change directory to the WebSphere Commerce Developer install directory.
      2. Change the directory to CommercePortal\Portal\Config.
      3. Type the following: wpsconfig enable-wcep-portal-server-b2c
      4. Wait until the command completes.
  2. In the Project Navigator, locate the project you created when you installed and configured the development environment.
    1. Right click on the project. From the menu, select Run on Server. The Server Selection window displays.
    2. Select the WebSphere Portal server. Click Finish. When the server finishes running, the Winstons store displays in the Web browser.
  3. In the Winstons store, click My Shopping Cart, then select Edit Page. The Edit Layout page displays.
  4. In the Edit Layout page, accept the default layout of the page. You will add the new Product Info Display portlet to the page.
  5. Click Add portlets. A search page displays.
  6. Search for the Product Info Display portlet you created. In the Search for field, type Product Info. Click Search. The Product Info Display portlet displays in the portlet list.
  7. Select the Product Info Display portlet and click OK, then Done. The Winstons store redisplays.
  8. Add a product or two to your shopping cart. Select any products you like.
  9. View your shopping cart.
    1. Select MyCarts.
    2. In the shopping cart, click on the item you added to your shopping cart.
    3. An image and description of the product displays in the Product Info Display portlet.

Congratulations! You have completed the tutorial.


Feedback