# Functional test case template

Functional tests check that each feature does what its requirement says, one behaviour per row, including what should happen when input is wrong. Link each row to the requirement it covers. Examples are for an example online shop; replace them with your own app's.

## FUN-01: Save an item

Requirement: Users can save items to a wishlist

Preconditions: Signed in

Steps:

1. Open a product
2. Select Save to wishlist

Expected result: The button changes to Saved, and the item appears in the wishlist.

Priority: High

Status: Passed

## FUN-02: Remove an item

Requirement: Users can save items to a wishlist

Preconditions: An item in the wishlist

Steps:

1. Open the wishlist
2. Select Remove on the item

Expected result: The item disappears from the wishlist.

Priority: Medium

Status: Passed

## FUN-03: Saving needs an account

Requirement: Users can save items to a wishlist

Preconditions: Signed out

Steps:

1. Open a product
2. Select Save to wishlist

Expected result: The sign in page opens, and after sign in the item is saved.

Priority: Medium

Status: Failed

## FUN-04: The lowest quantity

Requirement: Quantities from 1 to 10 per item

Preconditions: A product in the cart

Steps:

1. Set the quantity to 1

Expected result: The quantity is 1 and the total is the unit price.

Priority: Medium

Status: Passed

## FUN-05: Above the highest quantity

Requirement: Quantities from 1 to 10 per item

Preconditions: A product in the cart

Steps:

1. Type 11 in the quantity box

Expected result: The box shows a message that the most is 10, and the total does not change.

Priority: High

Status: Passed

## FUN-06: Zero is refused

Requirement: Quantities from 1 to 10 per item

Preconditions: A product in the cart

Steps:

1. Type 0 in the quantity box

Expected result: A message asks for at least 1, or the item is removed after a confirmation.

Priority: Medium

Status: Not run
