You are on page 1of 11

JCREL INVENTORY

TEST CASES
Test Case 1: Stock Quantity Push Notification
Test Case 2: Add New Arrival
Test Case 3: Transfer Item Test Case
Test Case 4: Add Sales
Test Case 5: Admin Login
Test Case 6: View Sales Reports

Test Case 1: Stock Quantity Push Notification


Given: Item is already inputted in the inventory.
Item
Data
Item
Code

Category

Type

Brand

Amplifier

Bass
Amplifier

Boston

Model

Supplier

BP20
20
watts

JB

Store
Code

Supplier
Code

Min.
Req
5

Store
Qty
2

Warehouse
Qty
1

Total
Qty

Store
Cost

When:
When quantity of the item is below the minimum required amount of units of the item.
Then:
A red asterisk appears on the notification icon. When notification icon is clicked, a panel
slides from the left of the screen showing all items that have quantities that need
attention.

Test Case 2: Add New Arrival


Sunny Case
Given:
new arrival has waybill, delivery receipt, date, supplier, items

newly arrived item has code, category, brand, model, quantity, unit cost
New Arrival Data
Date

Delivery Receipt

Waybill

Supplier

Item Code

02/15/14

100200

50287

JB

Item
Data
Item Code

Type

Brand

Model

Quantity

Unit Cost

RSP

Freight

Bass

Boston

BP20;

22

4, 700.00

5,500.00

300.00

Amplifier

20 watts

When the Inventory Maintainer adds new arrival


Add New Arrival
Enter

Date

02/15/14

Enter

Delivery Receipt

100200

Enter

Waybill

50287

Enter

Supplier

JB

Choose

Item Name

Bass Amplifier; Boston;


BP20; 20 watts

Enter

Item Quantity

22

Enter

Item Unit Cost

4, 700.00

Enter

Item RSP

4, 700.00

Press

Submit

Then the newly arrived item is recorded


New Arrival
Item Name

Quantit Unit Cost Freight


y

RSP

Supplier Waybill

Delivery
Receipt

Date

Bass Amplifier;

22

4,700.00

300

5,500.00

JB

50287

100200

02/15/14

Boston; BP20;
20 watts
Rainy Case
Given:
new arrival has waybill, delivery receipt, date, supplier, items

newly arrived item has code, category, brand, model, quantity, unit cost
New Arrival Data
Date

Delivery Receipt

Waybill

Supplier

Item ID

02/15/14

100200

50287

JB

Item
Data
Code

Category

Brand

Model

Quantity

Unit Cost

RSP

Freight

Bass Amplifier

Boston

BP20 20 watts

22

4, 700.00

5,500.00

300.00

When the item name is not on the list, the inventory maintainer will click the add item icon and

there will pop-up an add item form.


Add Item
Code

Category

Brand

Model

Bass Amplifier

Boston

BP20; 20 watts

Add New Arrival


Enter

Date

02/15/14

Enter

Delivery Receipt

100200

Enter

Waybill

50287

Enter

Supplier

JB

Choose

Item Name

Bass Amplifier; Boston;


BP20 20 watts

Enter

Item Quantity

22

Enter

Item Unit Cost

4, 700.00

Enter

Item RSP

4, 700.00

Press

Submit

Then the newly arrived item is recorded


New Arrival
Item Name

Quantit Unit Cost Freight

RSP

Supplier Waybill

y
Bass Amplifier;
Boston;
BP20 20 watts

22

Delivery

Date

Receipt
4,700.00

300

5,500.00

JB

50287

100200

02/15/14

Test Case 3: Transfer Item


Given:
The inventory maintainer has this item.
Item
Data
Item ID Category
1

Amplifier

Type

Brand

Model

Quantity(Warehouse)

Quantity(Store)

Bass

Boston

BP20; 20

20

Amp

watts

When
The inventory maintainer transfers an item.
Transfer
Item
Enter

Date

Choose

Item Data

10/8/15

Category

Description

Brand

Model

Amplifier

Bass Amp

Boston

BP20; 20
watts

Enter

Quantity To Transfer

Press

Submit

10

Then
The quantity of the item in the warehouse and in the store will be updated.
Item ID Category
1

Amplifier

Type

Brand

Model

Quantity(Warehouse)

Quantity(Store)

Bass

Boston

BP20; 20

10

12

Amp
Test Case 4: Add Sales
Given:
Sold item has an item code.

watts

Sold item has quantity.


Item Data
ItemI Catego Typ

Bran

Mod

Suppl store_co

Supplier_co minimum_requi

Store_quant warehouse_qua

store_co

el

ier

de

ity

ntity

st

Bas

Bosto BP20

ry

0001 Amplifi
er

de

red

0001

; 20

Amp

watts

When Finance manager adds Sales:


Add Sales
Enter

Date

01/11/2015

Enter

Product code

001

Enter

Quantity

Press

Submit

Then
Sales with auto-generated total cost will be added in the sales report.
Updated the item quantity in the store.
Report Sales
Date

Product ID

Quantity

Total Cost

10/11/15

0001

3,000

Item Data
Item Categ Typ Bran Mod Suppl store_c
ID

ory

el

000 Ampli Ba

Bost BP2

on

fier

ss

0;

Am

20

watt
s

ier

ode

0001

Supplier_c minimum_req Store_qua warehouse_qu store_c


ode

uired

ntity

antity

ost

1,500

Unrecognizable Product Code


Given that we have all valid item code in our item data.
Item Data
Item Categ Typ Bran Mod Suppl store_c
ID

ory

el

000 Ampli Ba

Bost BP2

on

fier

ss

ier

ode

Supplier_c minimum_req Store_qua warehouse_qu store_c


ode

uired

0001

ntity

antity

ost

1,500

0;

Am

20

watt
s

When the entered Product Code is invalid, inform the finance manager.
Add Sales
Enter

Date

01/11/2015

Enter

Product code

001

Enter

Quantity

Press

Submit

Check

Error_message

Product_Code_Invalid

Test Case 5: Admin Login


Given Admin username
Admin password
Admin Data
Username

Password

Dan

secret

When Admin logins into the system:


Admin Login
Enter

Username

Dan

Enter

Password

Press

Submit

secret

Then redirects to homepage:


Logout
HOME PAGE
Invalid Username or Password
Given Admin username
Admin password
Admin Data
Username

Password

Dan

secret

When Admin logins into the system:


Admin Login
Enter

Username

Dan

Enter

Password

secret

Press

Submit

Check

Error_message

Username_or_Password_is_Invalid

Test Case 6: View Sales Reports


Given
A date period and sales for the particular period that has one record in the database. The
sales record has an item ID.
Date Period
9/23/15
10/23/15
Sales Data
Date

Item ID

Quantity

Unit Cost

Total Cost

9/23/15

1000

1000

Item Data
Item ID

Category

Description

Brand

Model

Amplifier

Electric Guitar Nux

Frontline 15

Amplifier

15 Watts

When
User clicks on sales reports
View Sales Reports
Press

Reports

Sales

Choose

Date

9/23/15

Press

Submit

Then
The sales record will appear on the sales reports table. The data will be aggregated and
combined. The profits for the sales will appear on the table.
Sales Summary
Date PeriodTotal Items

Total Items Sold

Total Sales

P 900

Sold
9/23/15 10/23/15
Sales Reports
Sales ID

Date

9/23/15

Item ID

Category

Amplifier

Description

Electric Guitar Amplifier

Brand

Nux

Model

Frontline 15 15 Watts

Quantity

Unit Cost

1000

Total Cost

1000

Actual Cost

900

Alternative 3a.
Given
No sales record is added in the database for the particular date period.
Date Period
9/23/15 10/23/15
Sales Data
(Zero rows returned)

When
User clicks on sales reports after choosing a date, a message will be displayed.
View Sales Reports
Press

Reports

Sales

Choose

Date

9/23/15

Press

Submit

Check

Message

Then
No results will appear on the reports.

No sales recorded during period.

You might also like