You are on page 1of 8

77211017 1.

There then is a way needed to set up the id number with a password so there can be anonymous access to the system. o Partitioning: - I will input into their system a name and password, and the system will then test the strength of the password and the uniqueness of the username to let the user know they have set up an account successfully or not. o Basis password testing: - Strong Password - Weak Password - Acceptable Password o Basis for username uniqueness: - not available - available o Password Testing: Test Case(Input) Basis: Password Strength Weak Acceptable Strong Expected Output Weak Password, Please choose a password with at least one number and one letter and a minimum of 6 letters total X X Accepted Password Strong Password Weak Password, Please choose a password with at least one number and one letter and a minimum of 6 letters total Notes

(1234)

(hello1) (dontworry7823)

(0000000)

o Username Uniqueness: Test Case(Input) Basis: Username Uniqueness Available Not Available

Expected Output

Notes Common names are usually taken Common names are usually taken

(johndoe)

Please chose a different Username, this one is already taken Please chose a different Username, this one is already taken

(sarah123)

77211017 (ilikepie37) (iaminjail786) X X Available!

2. Items are successfully added to the correct category for easy access by the prisoners o Partitioning: - The input will be the item, and the system should automatically put it in the correct category if there are any items with similar descriptions. Otherwise, there should be a prompt that appears that asks for a category to be chosen manually or a request for a new category be put created. o Basis: - Data was added into the correct category - Data was not added into the correct category - Data was not added into any category o Testing: Test Case(Input) Basis: Categorization Expected Output Notes Correct Incorrect Not Category Category Added to Category Chips has successfully (chips, food) X been added to the food category Alternate category: (soda, food) X Beverages Shirt has successfully (shirt, clothes) X been added to the clothes category superman action figure with (superman action customizable cape has figure with not been added to any X customizable cape alternate category. clothes, ) Would you like to request a new category? o 3. The system also needs a way that prisoners can efficiently deliver their goods and make a trade that can be monitored by the warden. o Partitioning: - The input will be an item, and it will be checked that it is a legal item by searching the description or name of the item being bartered, and see if it matches any of the illegal keywords in the database (such as gun, drug, etc.). If the item is illegal, a notification should be sent to the warden who will then take action accordingly. o Basis: - Illegal Item - Legal Item

77211017 - Double Check (sends notification to warden to monitor) o Testing: Test Case(Input) Basis: Password Strength Expected Output Illegal Legal Double Check

Notes

(one chips, speed, one soda)

Notification sent to staff to double check transaction/locker

Since speed is a nickname for a drug, the staff is asked to double check (is this referring to drug or deodorant?)

(one chip, one soda) (gun) (bagel, cream cheese, knife) X

Passed Notification sent to warden Notification sent to warden Knife is illegal weapon in prison

4. The delivery needs to be made within 24 hours o Partitioning: - The input will be the collected from the lockers that the item is to be delivered at. When the item is in the locker, a signal should automatically be sent to the system that indicates the item was delivered and then chooses the correct time period it was delivered in. If it has been 48 hours and the good has still not been delivered, there will be a notification sent to the warden and both parties in regard to the situation. o Basis: - Goods were delivered within 24 hours - Goods were not delivered within 24 hours - Goods were not delivered at all o Testing Test Case(Input) Basis: Password Strength Expected Output Notes Delivered Delivered Not within 24 not in 24 delivered Hours hours (2 hours) (26 hours) () X X X Successful Notification sent to staff/warden about penalty Notification sent to staff/warden

(100)

Notification sent to staff/warden

77211017 Only waits 48 hours until marking the item as undelivered

5. There needs to be a way to verify that the trade was successful and that both parties were satisfied. o Partitioning: - The input will be collected from a button available to both parties that indicate that they are satisfied with the condition their product came in (not the trade) and if a party is unsatisfied, then a notification will be sent to a staff member or warden, who can then sort out the the situation. The first item in the bracket represents party 1, and the second item represents party 2. XXX Means no response o Basis: - Party 1 satisfied/Party 2 satisfied - Party 1 unsatisfied/Party 2 unsatisfied - Party 1 unsatisfied/Party 2 satisfied - Party 1 satisfied/Party 2 unsatisfied - One or more Parties have not responded o Testing: Test Basis: Password Strength Expected Notes Case(Input) Output Both Both No P1 P2 is
satisfied unsati sfied respo nse unsa tisfie d unsatis fied

(Satisfied, Satisfied) (Unsatisfied, Satisfied) (Satisfied, Unsatisfied) (Unsatisfied, Unsatisfied)

X X X X

Successful Transaction Notification Sent to Warden Notification Sent to Warden Unsuccessful, return good Wait 24 hours for respons e, otherwis e, if the party that did respond is satisfied, the

(XXX, Satisfied)

Successful

77211017 transacti on was successf ul. If one party is unsatisfi ed, no matter what the respons e of party 2 is, it will still send a notificat ion Wait 24 hours for respons e, otherwis e, if both parties did not respond, mark as successf ul

(Unsatisfied, XXX)

Notification sent to warden

(XXX, XXX)

Successful

o 6. The system should also allow the prisoners set an exchange rate and accept or reject offers. (Used for BONUS) o Partitioning: 1. Allow the prisoners to press an accept or reject offer by pressing a button and based on the result, send a message to the other party. The first item in the parenthesis represents the response of party 1 and the second item is the response of party 2. The second bracket after rejected, represents that a counter offer is being made. o Basis: - Offer accepted at current - Offer rejected and counter offer is given - Offer is rejected and no counter offer given o Testing: Test Case(Input) Basis: Offer Acceptance Expected Output Notes Accepted Rejected/counter Rejected offer Trade was successful! (accepted, accepted) X Please Deliver goods accordingly.

77211017 (accepted, rejected) X Message sent to Party 1 that party 2 has rejected your offer and is no longer interested in the good Trade unsuccessful! Here, the response to the counter offer will be sent to Party 2 only and if it is accepted, then the trade was successful message shows up.

(rejected, rejected)

(rejected{two sodas}, accepted)

Message sent to Party 2 that Party 1 has rejected your current offer and gives a counter offer of two sodas. Would you like to accept or reject this new offer.

Partitioning: 2. Input will be an exchange rate set, and that rate will be compared to the rest of the rates to see if the trade is an acceptable number or not. The first item in the bracket represents party ones item they want to trade, and the second represents party twos item they want to trade. This ensures that no prisoner is being cheated (because some may be unaware of the fraud due to their education level) o Basis: - Acceptable Trade - Unacceptable Trade o Testing: Test Case(Input) Basis: Offer Acceptance Expected Output Notes Acceptable Trade Unacceptable Trade o (1000 sodas, 1 soda) (2 sodas, 2 sodas) X X Too many items being traded for too little items! No trade progress being made

(3 bottle caps, 1 pair Acceptable exchange X of shoes) rate. o Partitioning: 3. Input will be the number of items being traded, if it is empty, it will automatically reject the offer. This is to test the boundaries of the items being trade o Basis: - Valid Entry - Invalid Entry o Testing: Test Case(Input) Basis: Offer Acceptance Expected Output Notes

77211017 Valid Entry (3 chips, ) (,2 sodas) (2 sodas, 3 shoes) (1 eraser, 7 pens) o X X Invalid Entry X X Invalid Entry! Party 2 has no response. Invalid Entry! Party 1 has no response. Valid! Valid!

Partitioning: - Input into the system the system will only be the exchange rate, the first bracket holds the exchange rate for the item by party one and the second bracket is the response from party 2 (if it is the same as the one given by party one, it means the trade was accepted. The entry is invalid if there is no response, or it is not in the correct format. If a party enter 0,0 that means that they have rejected the offer o Basis: - Offer accepted at current - Offer rejected and counter offer is given - Offer is rejected - Invalid Entry o Testing: Test Case(Input) Basis: Offer Acceptance Expected Output Notes Accepted Rejected, Rejected Invalid counter ({1 soda, 1 chips}, {1 X Offer Accepted! soda, 1 chip}) Message to party 1: Your offer was ({1 soda, 1 chips}, {2 X rejected, a counter soda, 1 chip}) offer was made: 2 sodas for one chips ({1 soda, 1 chips}, {1 Message sent to party X soda}) 2: Invalid format! Message to Party 1: Your offer was ({1 soda, 1 chips}, {0, X rejected! Party 2 is 0}) not interested in your item

77211017

Assignment 5: IN4MATX 43 Term: Fall 2012

Name:Minaal Malik Student ID: 77211017 Email: msmalik@uci.edu

You might also like