Test web operation

In this step, we will test Web operation.

You can download the image files here to add data to check the operation of the services.

📥 Download Java.png

📥 Download LetGoBook.png

  1. Enter the following links in a new tab in your web browser: http://www.DOMAIN, replace all DOMAIN with your domain name. All those links redirect to the new path, replace http with https. Homepage

  2. Click Create new book.

    • Enter ID: 1.
    • Enter book name: Java.
    • Enter author: Jame Patterson.
    • Enter category: IT.
    • Enter price: 10.98.
    • Enter description: A beginner's guide to learning the basic of Java.
    • Click Choose File button and choose Java.png image that you just downloaded.
    • Click Create button. Create Java book
    • Click OK button when popup opens. OK popup
  3. Back to Homepage, the Java book is now displayed. Homepage with Java book

  4. Create the new book as the previous step.

    • Click Create new book.
    • Enter ID: 2.
    • Enter book name: Let's Go.
    • Enter author: Alex Edwards.
    • Enter category: IT.
    • Enter price: 15.8.
    • Enter description: A step-by-step guide to creating fast, secure web with Go.
    • Click Choose File button and choose LetGoBook.png image that you just downloaded.
    • Click Create button. Create Let’s Go book
    • Click OK button when popup opens. OK popup
  5. Back to Homepage, both books are now displayed. Homepage with both books

  6. Click Add to cart button to add both 2 books to the cart. Then, click on Cart icon in the upper right corner. Add to cart and Cart icon

  7. At Cart Items page.

    • Click Checkout button. Cart Items page
    • Then, click OK button. Checkout successfully popup
  8. Open Amazon SQS console.

    • Click Queues on the left menu.
    • Click checkout-queue queue.
    • Click Send and receive messages button. SQS checkout-queue page
    • At Send and receive messages page, click Poll for messages button. Poll for messages
    • Then, click on the showing message. Messages showing 1 message
    • Check the Message: … popup and click Done button. Message popup with body
  9. Open the email that you have subscribed to receive the notification. Email notification from SNS

  10. Back to the application tab.

    • Click Orders and check the books you added to the cart. Orders page - 1 order unprocessed
  11. Next, repeat the 7th step to add some more orders as you want.

  12. Open the application tab.

    • Click Orders and check the books you added to the cart. Orders page - 3 orders unprocessed
    • Click Handle button on the order you want to process. Handle button highlighted
    • Click OK button on the popup. Handle successfully popup
    • The handled order status changes to Processed. Orders page - order Processed status
  13. Open AWS DynamoDB.

    • Click Tables on the left menu.
    • Choose OrdersTable table. DynamoDB Tables - OrdersTable
    • At OrdersTable page, click Explore table items button. OrdersTable detail - Explore table items
    • You could see the items in the order that you clicked the Handle button before. OrdersTable items returned
  14. Back to the application tab.

    • Click Orders and check the books you added to the cart.
    • Next, click Delete button on the order you want to delete. Delete button highlighted
    • Click OK button on the popup. Delete successfully popup
    • The deleted item is no longer displayed. Orders page - deleted item removed