Eshop Product Line Use Case Document
Eshop Product Line Use Case Document
Contents
1. Introduction..................................................................3 2. eShop Use Case Model..........................................................4 2.1 Use Cases...................................................................4 2.1.1 UC_01 Proceed to purchase..............................................4 2.1.2 UC_02 Search products..................................................4 2.2 Aspects.....................................................................5 2.2.1 ASP01 Buy good.........................................................5 2.2.2 ASP02 Buy good with shopping cart......................................6 2.2.3 ASP03 Search products..................................................6
1. Introduction
This document presents an example of the use case model structure proposed for managing varibilities in requirements documents. The scenarios shown here, which were also presented at AOSD 09, describe part of the specifications for an electronic commerce product line.
Main Flow
SC_01 Description: This behavior corresponds to the last steps required to confirm a purchase. From Step: START To Step: END Step Id 1M 2M User Action Fill in the requested information. Select one of the available ({SM}) shipping methods. Confirm the purchase. System State System Response Request the shipping method and address. Calculate the Shipping costs. Execute the order and send a request to the Delivery System, in order to dispatch the products. @CustomerPreferences
3M
Setup:
Main Flow
SC_01 Description: Search for products From Step: START To Step: END Step Id 1M 2M User Action Select the advanced search option. Inform the search criteria. System State System Response Request the customer to inform the search criteria. Retrieve the products that satisfy the search criteria. Show a list with the corresponding products. @CustomerPreferences Execute the order and send a request to the Delivery System, in order to dispatch the products. @CustomerPreferences
3M
2.2 Aspects
This section contains the aspects that introduce variable behavior to the product line use cases.
Main Flow
ADV01_1 Description: Buy a specific product Type: BEFORE Pointcut: UC_01#1A
Step Id
User Action
System State
System Response
1R
2R
Present the selected product. The user can change the quantity of items he wants to buy. Request payment information.
Main Flow
ADV02_1 Description: Buy products using a shopping cart Type: BEFORE Pointcut: UC_01#1A
Step Id 1R
System State
2R
System Response Present the selected product. The user can change the quantity of items he wants to buy. Request payment information.
Main Flow
ADV03_1 Description: Register user preferences Type: AFTER Pointcut: @CustomerPreferences
Step Id 1R
User Action -
System State
System Response Update the customer preferences based on the search results or purchased items.