The E-Shop

End-to-End Test Scenario

Instructions: This is a complete end-to-end test flow for an e-commerce application. The script should perform the following actions:

  1. Navigate & Browse: Start on this home page and click the "Start Shopping" button.
  2. Product Interaction: On the shop page, click the "Dev-Tshirt" to view its details.
  3. Go Back: Navigate back to the shop page.
  4. Select Another Product: Click the "Pro Gamer Mouse" to view its details.
  5. Configure Product: Select "Black" for the color and "XL" for the size.
  6. Add to Cart: Click the "Add to Cart" button and verify the confirmation message.
  7. View Cart: Navigate to the cart page and verify the correct item, color, and size are present.
  8. Checkout Redirect: Click "Proceed to Checkout". Since the user is not logged in, they should be redirected to the login page.
  9. Login: On the login page, enter the credentials "user" and "password" and submit the form.
  10. Complete Checkout: After being redirected back to the checkout page, fill in all billing and shipping details.
  11. Place Order: Click the "Place Order" button.
  12. Order Confirmation: On the confirmation page, verify the success message and get the order number, storing it in a variable.
  13. Live Chat: Navigate to the live chat.
  14. Simulate Conversation: Use a `while` loop to wait for and verify a 10-message conversation between the user and a support agent, confirming the order number is used in the chat.
Start Shopping