Internal Acceptance Testing - stacc-dasso/woocommerce-extension GitHub Wiki

Internal Acceptance Testing

Internal acceptance testing will test both of our Use Cases.

Use Case 1

I am on the front page of the shop, logged in as admin (Preconditions filled)

Front page Recommender Box case

  • These are the settings for the Front Page Recommender Box
  • The data received from the API (Notice that the block_id's match):
  • Box on the Front Page (The recommendations given by the API are preset IDs 10 and 11):

Clicked on a product I liked from the Recommender Box (Big Beanie) (Product View catching)

  • URL of the product (ID is 10):
  • Info about the product that the API received:
  • We are on the page of the product:
  • Settings of the box present on the page:
  • Data sent back by the API:
  • Recommendation Box in the Product View:

Added Big Beanie to cart (Add to Cart catching)

  • Prompt that I have added the product to cart:
  • Data about the object that was sent to API:

Went to see my cart

  • My cart:
  • Cart box settings:
  • Data sent back by the API:
  • Cart Box:

Proceeding to checkout and making the payment

  • After payment:
  • Data sent to the API:

Alternative Scenario Tests

  1. When API is Offline
  • No Recommender Box is present
  • Logging that a Recommender Box didn't receive any products.

Use Case 2

API Endpoints used

Successful credential checking

Unsuccessful credential checking

API Offline