Professional Documents
Culture Documents
Student ID 21038298
Class C206-2D-E66Q-A
I declare that:
This submission is my original work – all sources have been properly referenced and
acknowledged.
I have neither received nor rendered any assistance (either paid or unpaid) on work
that requires individual effort.
I have fully complied with the RP rules and regulations for students pertaining to
IMPORTANT: Non-compliance to these clauses will result in unconditional rejection of your submission.
OFFICIAL (CLOSED) \ NON-SENSITIVE
Project Description
Campus Online Auction Shop (COAS)
Motivation and benefits: It will be convenient for RP students on campus to buy and sell items, reduce the
wastage, and be more environment friendly.
Detailed description of the project:
This project aims to create an online auction system which can be used for students on campus to buy and
sell items. The application also allows administrator of the system to manage the categories of the shop
inventory and block fraudulent users.
Users need to register and login to the site in order to access the auction features.
Sellers to upload an item to the auction site to sell. Following information is compulsory to provide:
Item name and description
The image or document of the item
The minimum bidding prices
Auction start and end date
Bid increment
Sellers can edit an item by uploading a new image, uploading a document, changing the bid increment,
change the auction end date and whether to give notifications of the incoming bid. Sellers have a ‘Seller
rating’ based on the numbers of successful sells, this minimises the chance of online scamming.
Buyers may select a category and browse all the items for sale in the category, or search by categories (CD,
book, electronic accessories etc.) or search any item via keyword. The item page contains following
information of an item:
Item title and description
The image or attached document of the item (if any)
The seller’s name, contact information and the rating of the seller
The minimum bid price and bid increment provided by the seller (if any)
The current bidding price
A link to view the history of previous bids and competitive buyers
A button to put a new bid
After the end date of the auction, the deal or transaction is confirmed. The system shall inform both the
buyer and seller. One transaction should have the following information:
The Seller and Buyer’s name and contact information
The item name and description
The transaction price
However, if there are no bidders, the application will notify the Seller to lower the price.
Member Sprint 1
1 Add user account (name, role, email, password)
OFFICIAL (CLOSED) \ NON-SENSITIVE
Sprint 1 Execution
Instructions:
• Perform Test Driven Development by the entire Scrum Team
1. Design Java class/method
2. Design unit test cases
3. Write the test class (in Junit)
4. Code the Java class/method
5. Refine the Java class until it passes the test
Commit and push to GitHub repository
User Story:
As a buyer, I want to be able to view the item title and description so that I would know what the item is about and see if the
item is of my interest. Given that I am logged into the account, when I clicked the ‘name’ of the item, then the title and
description of the item will be shown to me.
User Story:
User Story: As a seller, I want to delete item so I can have any items that I do not want, to be removed from my auction list.
Given that I am at the inventory list page, when I click on ‘delete item’ , then the I will be prompted to key in item name
before I can delete the item from the list.
Priority:
Acceptance Criteria:
Test if an item can be deleted if the wrong item name is keyed.
Test that an item can be deleted after keying in the name that matches the item you want , removed.
No. Functional Test Case (include Steps and Test data) Expected Results
1. (Error) “No such item found in item list” error will be
Seller inputs an item name that is not in the item list displayed.
arraylist
2. (Normal) “Item successfully deleted” message will be
Seller enters valid item name that can be found inside displayed
the item list
3. (Boundary) “This item does not belong to you” message will
User enters an item that is registered by another seller be displayed
OFFICIAL (CLOSED) \ NON-SENSITIVE
User Story:
As a seller, I want to add item into auction (name, description, minimum bid price, auction start and end date, bid increment)
So I can let the buyers bid on them. Given that I am on the listing page, when I click “add item”, then I will be prompted to fill
in the item particulars before adding.
No. Unit Test Case Junit Assertion Method
6. Test if it is possible to add item if account assertFalse(itemsize);
is invalid
User Story:
User Story: As a seller, I want to delete item so I can have any items that I do not want, to be removed from my auction list.
Given that I am at the inventory list page, when I click on ‘delete item’ , then the I will be prompted to key in item name
before I can delete the item from the list.
No. Unit Test Case Junit Assertion Method
7. Test if seller is able to delete item assertTrue(CAOS.sellerdeleteitem());
OFFICIAL (CLOSED) \ NON-SENSITIVE
Write JUnit Test Case & Code Java Class for Sprint 1
Instruction: After you have completed writing the Junit Test methods and Java Class/methods, take screen print of
the following in Eclipse and paste in the respective row of the table below:
Java Class / Method code
Corresponding Junit Test method Code
Junit Test Result
Use 1 table for 1 Java Class/Method. Made copy of the table if necessary
result
Class /
Method
Your User Stories from Product Backlog for Sprint 2 (After P12)
Take screen capture of the user stories you wrote in the product backlog and paste in the box below
User Story:
As a seller, I want to update item, so I can edit whichever information I need about an item anytime. Given that I am on the
item page, when I click on “Update item” button, then a new window will be displayed asking users to key in whichever
OFFICIAL (CLOSED) \ NON-SENSITIVE
User Story:
As a buyer, i want to browse all items in category, so i can view what are the items available within a certain category. Given
that i am at the browsing page, given that i am at the browsing page, when i select a specific category, then only items of
those category will be displayed.