Question

Part 1: Software Testing (6 marks): Assume that you are building a web-based grocery shopping system...

Part 1: Software Testing (6 marks): Assume that you are building a web-based grocery shopping system (similar to the ones that Woolworths and Coles provide).

The system allows customers to add grocery items to a (virtual) shopping cart and pay online. They will then be notified when the order is ready for pick-up in the selected store.

1. Identify one functional and one non-functional requirement related to that system (2 marks).

2. Describe how you would test those two requirements (2 marks).

3. For the item counts in the shopping cart, describe what equivalence classes and boundary values you would choose when creating the corresponding unit tests (2 marks).

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1. Functional requirement - When the customer clicks on the "Add Item" button, the item should be visible in the customer's shopping cart.

Non-functional requirement - After the customer has added 100 different items in the shopping cart and wants to view the cart by clicking on the shopping cart icon, the shopping cart page should be loaded within 2 seconds.

2. In order to test the functional requirement, following steps should be taken:

a. Open the website.

b. Select an item and click on "Add Item".

c. Open the shopping cart.

d. The Item selected in step b above should be visible in the cart.

In order to test the non-functional requirement, following steps should be taken:

a. Open the website.

b. Select and add 100 different items in the shopping cart.

c. Click on the shopping cart icon and log the time in ms, say T1.

d. As soon as the page is loaded log the time in ms again, say T2.

e. T2 - T1 should be less than or equal to 2000ms or 2 secs.

3. There should a ShoppingCart class which will keep a reference to a List of Items that have been selected by the customer. The size of this list will determine the count of items in the cart. The following test cases should be incorporated to test the item count:

a. When no item is selected by the customer, the item count should be zero.

b. When "n" items have been added by the customer, the item count should be n.

c. If the user selects "n" items and checks out/pays for n-m items, the item count should be n-m

d. If the user selects "n" items and pays for n items, the item count should be zero.

Add a comment
Know the answer?
Add Answer to:
Part 1: Software Testing (6 marks): Assume that you are building a web-based grocery shopping system...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Part 1: Software Testing (6 marks): Assume that you are building a web-based grocery shopping system...

    Part 1: Software Testing (6 marks): Assume that you are building a web-based grocery shopping system (similar to the ones that Woolworths and Coles provide). The system allows customers to add grocery items to a (virtual) shopping cart and pay online. They will then be notified when the order is ready for pick-up in the selected store. 1. Identify one functional and one non-functional requirement related to that system (2 marks). 2. Describe how you would test those two requirements...

  • Software Engineering Part 2: Software security: (7 marks) Assume you are performing preliminary security risk assessment....

    Software Engineering Part 2: Software security: (7 marks) Assume you are performing preliminary security risk assessment. 1. The first step in performing a preliminary risk assessment is asset identification. List down three assets you identify in an in-store automated supermarket shopping system when conducting the preliminary risk assessment. (3 marks) 2. Identify two possible security risks associated with an in-store supermarket shopping system and propose a system requirement that might reduce each of those risks. (4 marks)

  • 1. Consider a grocery supermarket planning to computerize their inventory management. The items on shelves will...

    1. Consider a grocery supermarket planning to computerize their inventory management. The items on shelves will be marked with Radio Frequency Identification (RFID) tags and a set of RFID reader-devices will be installed for monitoring the movements of the tagged items. Each tag carries a 96-bit EPC (Electronic Product Code) with a Global Trade Identification number, which is an international standard. The RFID readers are installed on each shelf on the sales floor. The RFID system consists of two types...

  • . Spring Breaks ‘R’ Us (SBRU) is an online travel service that books spring break trips...

    . Spring Breaks ‘R’ Us (SBRU) is an online travel service that books spring break trips to resorts for college students. The basic idea is to get a group of students to book a room at a resort for one of the traditional spring break weeks. SBRU contracts with dozens of resorts in key spring break destinations in Florida, Texas, the Caribbean, and Mexico. Its Web site shows information on each resort and includes prices, available rooms, and special features....

  • Mashaweer is the first personal service company in Egypt. It’s purely dedicated to saving its clients’...

    Mashaweer is the first personal service company in Egypt. It’s purely dedicated to saving its clients’ time and effort by offering a personal assistant 24 hours a day. The personal assistant is a rider with a motorcycle who runs any errands for individual clients or corporations at any given time. The most common service they provide is buying groceries or other goods from stores, paying bills, and acting as a courier. Mashaweer’s success relies heavily on their flexibility, and they...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT