You are on page 1of 32

Ta Van Co ID: GCS15329 Class: GCS0404

Critical review:
If user login is Manager, they can:
- View report by week and date.
- View report by week, date range and date for stores.
- View report by week, date range and date for staffs.
If user login is Staff, they can:
- Create Order
Difficult in my project:
+ Make function Update, Remove, Delete All in Cart
+ Make report function
Advantage:
+ Write code may be clear
+ Search function
+ Easy to use

Test Case:
Reviewer/Approver: Ta Van Co
Function Description
Login Enter Username and Password into login form.
Add product to cart Enter Product Id and quantity that customer want to buy and add to cart.
Make Payment Make payment for customer.
View report for staff on date Select a staff and chose date to view report.
View report for staff on date Select a staff and chose date range to view report.
range
View report for staff on week Select a staff and chose date to view report by week.
View report for store on date Select a store and chose date to view report.
View report for store on date Select a store and chose date range to view report.
range
View report for store on Select a store and chose week to view report.
week

OBJECT HERE 1
Ta Van Co ID: GCS15329 Class: GCS0404

Test Result:
Test Total Test function Expected outcome Actual outcome Result Date
number Test
1 10 Staff login and Check username, Login success and go Pass 10/10/2017
Manager login password and role to Cart page if user
(username, is Staff and go to 13/10/2017
password) Staff report by date
if user is Manager
2 3 Logout User logout and User logout and Pass 13/10/2017
Exit to Login page Exit to Login page
3 13 Add some product Products to appear Products to appear Pass 15/10/2017
to cart in the shopping in the shopping cart,
cart, total of cart is total of cart is 17/10/2017
calculated. calculated.
4 4 Update quantity in The amount of a The amount of a Pass 17/10/2017
Cart product change and product change and
unit price is unit price is
updated. updated.
5 4 Remove a product Product is removed Product is removed Pass 17/10/2017
in cart to cart to cart
6 4 Delete all All product is All product is Pass 17/10/2017
product in cart removed to cart removed to cart
7 12 View Staff Report Show all products Show all products Pass 17/10/2017
By Date that staff sold in that staff sold in date
date
8 12 View Staff Report 18/10/2017
By Date Range
9 12 View Staff Report Show all products Show all products Pass 19/10/2017
By Week that staff sold in that staff sold in
week week
10 12 View Store Report Show all products Show all products Pass 20/10/2017
By Date that store sold in that store sold in
date date
11 12 View Store Report Show all products Show all products Pass 21/10/2017
By Date Range that store sold in that store sold in
date range date range
12 12 View Store Report Show all products Show all products Pass 22/10/2017
By Week that store sold in that store sold in
week week

OBJECT HERE 2
Ta Van Co ID: GCS15329 Class: GCS0404

Problem logs:
No. Test Function Details of failure Fix applied Date
number
1 1 Login Wrong username Enter correct 12/10/2017
or wrong password username and
password
3 1 Login Do not Enter Enter Username 12/10/2017
Username and and password
password
2 3 Add cart Do not Enter Enter quantity and 17/10/2017
quantity and product id
product id

OBJECT HERE 3
Ta Van Co ID: GCS15329 Class: GCS0404

Questionnaires:

- This is the
program making a business start with asking me to create a program to implement a web service used to
perform transactions with customers to products of goods and generate reports for the products by a date,
a date range. The basis of the answers above, my program to meet the requirements of the company
ABCosmetic, the program was to ensure enough demand.

- The program is very easy to use; most of the information was presented. After all, I will have to improve
the design to make our program look more modern.

OBJECT HERE 4
Ta Van Co ID: GCS15329 Class: GCS0404

- After testing the program, all functions work correctly.

- The response of the function in my program is fast and stable. However, I will find more ways the method
helps to increase the operating time of the system.

OBJECT HERE 5
Ta Van Co ID: GCS15329 Class: GCS0404

- I think that my application was implementation of the requirements for this scenario. However, we need
to add extra functions to make it look more way that is realistic. I have to think about the real-life situation,
not just in this case.

User guide:
Start and exit the GUI:
- To start the session, users need to log on to the web page from the page login:

- Login can function to control user rights log on. So if the user was a Sale Person then after login the
system will automatically move to the Cart page to this person perform transactions with customers:

OBJECT HERE 6
Ta Van Co ID: GCS15329 Class: GCS0404

And if the user is a Manager, the system will move to the page Report For Staff to this person done see the
report on the item:

-After work to get rid of the system, users need to click on the area name in the top right of the screen and
select Sign Out:

OBJECT HERE 7
Ta Van Co ID: GCS15329 Class: GCS0404

OBJECT HERE 8
Ta Van Co ID: GCS15329 Class: GCS0404

Cart:

- Cart is the only used function by multiplying the sales Institute. This is where the sales staff received
requests to buy products of the customer, and then put the information of the product into the system to
calculate the cost and perform transactions with customers.

OBJECT HERE 9
Ta Van Co ID: GCS15329 Class: GCS0404

- To use Cart, you need enter Product Id and Quantity that is customer want to buy into 2 orange textbox
and then Press button Add to cart. This is result after you added some products to Cart:

After added some product to Cart, you can perform some actions on the products in your cart. You can
change quantity and then click Update button to update quantity. In addition, if the customer does not
want to buy the product again, the sales clerk can click the Remove button to remove the product from the
cart. In the worst case is that customers forget bought for money and go about not buying anything else,
employees can click Delete All to empty the cart.

- To make a payment, the employee can see the total cost for existing orders. Click the Submit button to
complete the Payment transaction.

OBJECT HERE 10
Ta Van Co ID: GCS15329 Class: GCS0404

View Report By Date For Staff:


- This is where the Manager can see are reports of all the staffs for each specified date. After selecting a
date, the results displayed the total number sold and the total income of the staff of the day was chosen.

- To view the report, management should choose Date Report from list of staffs like picture below:

then selection field in any day and then press Submit to view the report:

OBJECT HERE 11
Ta Van Co ID: GCS15329 Class: GCS0404

- Results appear are displayed on each product as shown below and manager can search a product,
quantity or money, product id in Search box in top of table.

OBJECT HERE 12
Ta Van Co ID: GCS15329 Class: GCS0404

View Report By Date Range For Staff:


- This is where the Manager can see are reports of all the staffs for a specified date range. After selecting
start date and end date, the results displayed the total number sold and the total income of the item that
staff sold of the date range was chosen.

- To view the report, management should choose Date Range Report from list of staffs like picture below:

management should choose a start date and end date from date selection field in any day and then press
Submit to view the report:

OBJECT HERE 13
Ta Van Co ID: GCS15329 Class: GCS0404

- Results appear are displayed on each product as shown below and manager can search a product,
quantity or money, product id in Search box in top of table:

OBJECT HERE 14
Ta Van Co ID: GCS15329 Class: GCS0404

View Report By Week For Staff:


- This is where the Manager can see are reports of all the staffs according to each specified week. After
selecting a week, results show a list of all the product and the number of items specified how much of the
quantity sold:

- To view the report, management should choose Week Report from list of staffs like picture below:

management should choose a date from date selection field in any day and then press Submit to view the
report:

- To view the report, management should choose a date from date selection field in any day, enter product
id and then press Submit to view the report.

OBJECT HERE 15
Ta Van Co ID: GCS15329 Class: GCS0404

- Results appear are displayed on each staff as shown below and manager can search a staff, quantity or
money in Search box in top of table:

OBJECT HERE 16
Ta Van Co ID: GCS15329 Class: GCS0404

View Report By Date For Store:


- This is where the Manager can see are reports of all the stores for each specified date. After selecting a
date, the results displayed the total number sold and the total income of the stores of the day was chosen.

- To view the report, management should choose Date Report from list of stores like picture below:

OBJECT HERE 17
Ta Van Co ID: GCS15329 Class: GCS0404

then selection field in any day and then press Submit to view the report:

- Results appear are displayed on each product as shown below and manager can search a product,
quantity or money, product id in Search box in top of table.

OBJECT HERE 18
Ta Van Co ID: GCS15329 Class: GCS0404

View Report By Date Range For Store:


- This is where the Manager can see are reports of all the stores for a specified date range. After selecting
start date and end date, the results displayed the total number sold and the total income of the item, that
store sold of the date range was chosen.

- To view the report, management should choose Date Range Report from list of stores like picture below:

management should choose a start date and end date from date selection field in any day and then press
Submit to view the report:

OBJECT HERE 19
Ta Van Co ID: GCS15329 Class: GCS0404

- Results appear are displayed on each product as shown below and manager can search a product,
quantity or money, product id in Search box in top of table:

OBJECT HERE 20
Ta Van Co ID: GCS15329 Class: GCS0404

View Report By Week For Store:


- This is where the Manager can see are reports of all the stores according to each specified week. After
selecting a week, results show a list of all the product and the number of items specified how much of the
quantity sold:

- To view the report, management should choose Week Report from list of stores like picture below:

- To view the report, management should choose a date from date selection field in any day, enter product
id and then press Submit to view the report.

OBJECT HERE 21
Ta Van Co ID: GCS15329 Class: GCS0404

- Results appear are displayed on each store as shown below and manager can search a store, quantity or
money in Search box in top of table:

OBJECT HERE 22
Ta Van Co ID: GCS15329 Class: GCS0404

Technical document:
Introduction:
- The website Abcosmetic is branded, packaged to meet the needs of the company ABCosmetic. They
provide beauty products. Because they have multiple products and number of stores. They wanted to unify
the systems to their shop to be able to record the purchase, create reports for sales for products sold on
daily/weekly (or any specified date range).
Application overview:
- As mentioned in the introduction, this application can create reports and perform registration with the
new order. If people use the site as a sales person, they can receive requests from customers with the
products of the store, the sales person can make the deals to sell the product to the customer to the store
to buy the product. Conversely, if the Department uses as a Manager, they can view the reports for the
employee, the store. See report on the products sold by the employee that is how many sold.

OBJECT HERE 23
Ta Van Co ID: GCS15329 Class: GCS0404

Program flow:
- Login:

Start

Get
Username &
Password
from user
input

Check Username

Username is Alert: Username could


Yes
empty not be empty!

No

Username
Alert: Account invalid! Yes
invalid

No

Check Password

Password is
Yes Alert: Wrong Password!
wrong

No

Role is
Role is Staff Check Role
Manager

Go to Cart page End Go to Report Page

OBJECT HERE 24
Ta Van Co ID: GCS15329 Class: GCS0404

- Cart:

Start

Get Product Id
& Quantity
from user
input

Product id is Alert: Enter Product


Check Product Id Yes
null? Id

Alert: Product id Product id is


Yes No
invalid valid?

No

Alert: Enter Product


Check Quantity Quantity <=0 Yes
Id

No
Add Product to Cart

End

OBJECT HERE 25
Ta Van Co ID: GCS15329 Class: GCS0404

- Date report for staff:

Start

Get Staff Id &


Date from user

Display result

End

- Date Range report for staff:

Start

Get Staff Id &


DateFrom,
DateTo from
user

Display result

End

OBJECT HERE 26
Ta Van Co ID: GCS15329 Class: GCS0404

- Week report for staff:

Start

Get Staff Id &


DateTo from
user

DateFrom =
DateTo.AddDay(-7)

Display result

End

- Date report for store:

Start

Get Store Id &


Date from user

Display result

End

OBJECT HERE 27
Ta Van Co ID: GCS15329 Class: GCS0404

- Date Range report for store:

Start

Get Store Id &


DateFrom,
DateTo from
user

Display result

End

- Week report for store:

Start

Get Store Id &


DateTo from
user

DateFrom =
DateTo.AddDay(-7)

Display result

End

OBJECT HERE 28
Ta Van Co ID: GCS15329 Class: GCS0404

Error handling and reporting:


- Login:

OBJECT HERE 29
Ta Van Co ID: GCS15329 Class: GCS0404

- Add cart:

Data validation:

- When user input quantity less than 1, user will receive a warning: Value must be greater than or equal to
1!.

OBJECT HERE 30
Ta Van Co ID: GCS15329 Class: GCS0404

Testing plan used:


Function Description
Login Enter Username and Password into login form.
Add product to cart Enter Product Id and quantity that customer want to buy and add to cart.
Make Payment Make payment for customer.
View report for staff on Select a staff and chose date to view report.
date
View report for staff on Select a staff and chose date range to view report.
date range
View report for staff on Select a staff and chose date to view report by week.
week
View report for store on Select a store and chose date to view report.
date
View report for store on Select a store and chose date range to view report.
date range
View report for store on Select a store and chose week to view report.
week

Test results:
Test Total Test function Expected outcome Actual outcome Result Date
number Test
1 10 Staff login and Check username, Login success and go Pass 10/10/2017
Manager login password and role to Cart page if user
(username, is Staff and go to 13/10/2017
password) Staff report by date
if user is Manager
2 3 Logout User logout and User logout and Pass 13/10/2017
Exit to Login page Exit to Login page
3 13 Add some product Products to appear Products to appear Pass 15/10/2017
to cart in the shopping in the shopping cart,
cart, total of cart is total of cart is 17/10/2017
calculated. calculated.
4 4 Update quantity in The amount of a The amount of a Pass 17/10/2017
Cart product change and product change and
unit price is unit price is
updated. updated.

OBJECT HERE 31
Ta Van Co ID: GCS15329 Class: GCS0404
5 4 Remove a product Product is removed Product is removed Pass 17/10/2017
in cart to cart to cart
6 4 Delete all All product is All product is Pass 17/10/2017
product in cart removed to cart removed to cart
7 12 View Staff Report Show all products Show all products Pass 17/10/2017
By Date that staff sold in that staff sold in date
date
8 12 View Staff Report 18/10/2017
By Date Range
9 12 View Staff Report Show all products Show all products Pass 19/10/2017
By Week that staff sold in that staff sold in
week week
10 12 View Store Report Show all products Show all products Pass 20/10/2017
By Date that store sold in that store sold in
date date
11 12 View Store Report Show all products Show all products Pass 21/10/2017
By Date Range that store sold in that store sold in
date range date range
12 12 View Store Report Show all products Show all products Pass 22/10/2017
By Week that store sold in that store sold in
week week

Possible improvements:
Current version numbers: version 1.1.3
Date last changed and implemented: 20-10-2017

OBJECT HERE 32

You might also like