rcereno / REDX

0 stars 0 forks source link

Test results (Tarj Mecwan) #13

Open TarjMecwan opened 1 month ago

TarjMecwan commented 1 month ago

New Test Cases

  1. Search Catalog with Filter

    • User Story: As a gamer, I want to search for games in the catalog based on specific filters.
    • Scenario: Emily wants to find co-op games with a rating of "E10" and average review above 4.

    Request

    curl -X 'GET' \
    'https://redx-brri.onrender.com/catalog/search/?genre=Co-op&rating=E10&avg_review=4&sort_col=release_date&sort_order=desc' \
    -H 'accept: application/json'

    Response

    [ { "sku": "it_takes_two_0", "name": "IT TAKES TWO", "publisher": "Hazelight Studios", "price": 21, "genre": "Co-op", "platform": "PC", "avg_review": NOT YET REVIEWED, "rating": "E10", "release_date": "2021-03-26" } ]

  2. Add Game to Cart with Quantity

    • User Story: As a gamer, I want to add multiple copies of a game to my cart at once.
    • Scenario: John wants to buy three copies of "OVERCOOKED" for a game night with friends.

    Request

    curl -X 'POST' \
    'https://redx-brri.onrender.com/carts/9/items/overcooked_0?quantity=3' \
    -H 'accept: application/json' \
    -H 'access_token: redx' \
    -d ''

    Response

    • "OK"
  3. View Account Reviews

    • User Story: As a gamer, I want to view the reviews I've submitted for games.
    • Scenario: Eugene wants to check the reviews he has given for previously purchased games.

    Request

    curl -X 'GET' \
    'https://redx-brri.onrender.com/accounts/23/reviews' \
    -H 'accept: application/json' \
    -H 'access_token: redx'

    Response

    { { "sku": "gyat_iv_0", "name": "GYAT IV", "publisher": "Emans Recipes", "price": 100, "genre": "Adventure", "platform": "PC", "avg_review": -1, "rating": "A0", "release_date": "2023-07-18" }, { "sku": "banana_bread_battle_0", "name": "BANANA BREAD BAKING BATTLE ROYALE", "publisher": "Yeast Entertainment", "price": 25, "genre": "Shooter", "platform": "Nintendo", "avg_review": -1, "rating": "E10", "release_date": "2024-03-14" } }

Testing Results Summary