Sei sulla pagina 1di 4

Section 2: Test Case Writing

Test cases for the feature: On the desktop, adding an image to a product from the file system is
a "must have."
Workflow
1. Clicking "Browse Images" to add an image to a Product prompts the user to select from the
filesystem.
2. A standard file selector allows the user to multi-select and add images.
3. If the total of selected files would result in more than 12 images, LightSpeed disregards
remaining
selected images.

Common Workflow
1. The user can cancel adding images and return to the product page or image selection sheet.
2. After selecting one or more photos, the user must confirm adding them to a product with a
tap or
a click.
3. The user will see a progress bar for each image upload, indication of remaining images to
upload,
and clear confirmation once an image has been added.
4. While an upload is in progress, the user will still see image adding controls.

Business Rules
1.Each product may have up to 12 images.
2.Images should be displayed in a square format.
3.The Featured Image is not replaced if other images are added
4.If a product has no images and the user multi-selects images to add, the first image selected
in the list is considered the Featured Image.
5.User should be able to upload duplicate images (same file name)
6.User should be able to upload jpg, png image type

Test cases:
Assuptions:
- The functional test cases are written at the beginning of the inception of the feature.
The QA writes the test cases according requirements and makes it available to the
developer before the actual coding begins
- System here refers to LightSpeed
- The feature is getting tested on a desktop
Notes: Test cases 1,2,3 should be performed in ascending order of their ids, test cases 4, 5 and
6,7 can be performed in no particular order.
Test id 1:
Test title User can browse images
Description User can click on Browse images to add
images to a product
Test Path 1. User clicks on browse images
2. System opens a file selector which
allows user to multi-select files
3. Even if there are no images , file
selector shows up with no images
which is self explanatory warning to
the user

Test id 2:
Test title User can multi-select up to 12 images
Description User can click multi-select images from the file
selector
Test Path 1. User selects up to 12 images
2. System is normal
3. User tries to select more than 12
images
4. System gives warning that the extra
images will be disregarded

Test id 3:
Test tile Selected images can be added
Description Selected images from the file selector can be
uploaded and added into a product
Test Path 1. User needs to confirm with a click or a
tap to the system to begin uploading
images
2. System will display a progress bar
during uploading displaying clear
confirmation once an image is
uploaded and metrics for remaining
images
3. User can still see image controls during
the operation

Test id 4:
Title Featured image status
Description 1.Uploading additional files doesnt change
the status of featured images
2. If there is no featured image, then the first
image which gets uploaded will become the
featured image

Preconditions Product X with a featured image, Product Y
with no featured image
Test path For product X with a featured image
1. User selects additional images to be
added using the file selector and
confirms the action
2. Upload proceeds normally
3. Featured image remains the same
For product Y with no featured image
1. User selects images to be added using
the file selector and confirms the
action
2. Upload begins and after the first
images addition is confirmed, it
becomes the featured image



Test id 5:
Test Title Selected images can have same names
Description User can add images with the same names for
a product
Preconditions Images with the same name in file selector
Test path 1. User multi-selects images with the
same name in the file selector and
confirms the action
2. Addition of these files to a product
proceeds normally



Test id 6:
Test Title Images of type .jpg, .png can only be uploaded
Description User can add images with file type .jpg or .png
only
Preconditions Files with file type other than .jpg or .png in
the file selector
Test path 1. User multi-selects images in the file
selector and confirms the action of
addition
2. Addition of the files gets interrupted
with a warning to the user that only file
types of .jpg and .png can be added
into the system

Test id 7
Test Title Image should be displayed in a square format
Description Added images should be displayed in a square
product in the product page
Preconditions Images are added to a product in the system
Test path 1. User clicks to see products images
2. Images are displayed in a square
format

Potrebbero piacerti anche