uc document template msvcm

Upload: mauricio-ama-aline

Post on 05-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 UC Document Template MSVCM

    1/7

    eShop Product Line Use CaseDocument

    Feature Id: 123

    Feature Name: eShop Product Line specification

  • 7/31/2019 UC Document Template MSVCM

    2/7

    Contents

    1. Introduction..................................................................32. eShop Use Case Model..........................................................42.1 Use Cases...................................................................42.1.1 UC_01 Proceed to purchase.............................................. 42.1.2 UC_02 Search products.................................................. 4

    2.2 Aspects.....................................................................52.2.1 ASP01 Buy good......................................................... 52.2.2 ASP02 Buy good with shopping cart...................................... 62.2.3 ASP03 Search products.................................................. 6

  • 7/31/2019 UC Document Template MSVCM

    3/7

    1. Introduction

    This document presents an example of the use case model structure proposed

    for managing varibilities in requirements documents. The scenarios shownhere, which were also presented at AOSD 09, describe part of thespecifications for an electronic commerce product line.

  • 7/31/2019 UC Document Template MSVCM

    4/7

    2. eShop Use Case Model

    The main difference between the current Target use case document and the

    proposal discussed here is that the new version of the use case modelrepresents variant behavior in terms of aspects and advices.

    2.1 Use Cases

    Use cases that allow a customer to search and buy goods. These use casesdescribe the common behavior of the product line.

    2.1.1 UC_01 Proceed to purchase

    This use case describes the common behavior related to confirming a

    purchase.

    Setup:

    Main FlowSC_01

    Description: This behavior corresponds to the last steps required to confirm apurchase.From Step: STARTTo Step: END

    Step Id User Action System State System Response1M Fill in the

    requestedinformation.

    Request the shippingmethod and address.

    2M Select one of theavailable ({SM})shipping methods.

    Calculate theShipping costs.

    3M Confirm thepurchase.

    Execute the order andsend a request to theDelivery System, inorder to dispatch theproducts.

    @CustomerPreferences

    2.1.2 UC_02 Search products

    It describes the behavior that allows a customer to search products.

  • 7/31/2019 UC Document Template MSVCM

    5/7

    Setup:

    Main FlowSC_01

    Description: Search for productsFrom Step: STARTTo Step: END

    Step Id User Action System State System Response1M Select the

    advanced searchoption.

    Request the customerto inform the searchcriteria.

    2M Inform the searchcriteria.

    Retrieve the productsthat satisfy thesearch criteria. Showa list with thecorresponding

    products.@CustomerPreferences

    3M Confirm thepurchase.

    Execute the order andsend a request to theDelivery System, inorder to dispatch theproducts.@CustomerPreferences

    2.2 Aspects

    This section contains the aspects that introduce variable behavior to the

    product line use cases.

    2.2.1ASP01 Buy good

    It describes the behavior that allows a customer to buy a single product.

    Main Flow

    ADV01_1

    Description: Buy a specific product

    Type: BEFOREPointcut: UC_01#1A

    Step Id User Action System State System Response

  • 7/31/2019 UC Document Template MSVCM

    6/7

    1R Select the buyproduct option.

    Present the selectedproduct. The user canchange the quantityof items he wants tobuy.

    2R Select the

    confirm option.

    Request payment

    information.

    2.2.2ASP02 Buy good with shopping cart

    It describes the behavior that allows a customer to buy product using ashopping cart.

    Main Flow

    ADV02_1

    Description: Buy products using a shopping cart

    Type: BEFOREPointcut: UC_01#1A

    Step Id User Action System State System Response

    1R Select the buyproduct option.

    Present the selectedproduct. The user canchange the quantityof items he wants to

    buy.2R Select the

    confirm option.Request paymentinformation.

    2.2.3ASP03 Search products

    Register the user preferences, based on her (his) historical data of searchingand purchasing.

    Main Flow

    ADV03_1

    Description: Register user preferences

    Type: AFTERPointcut: @CustomerPreferences

  • 7/31/2019 UC Document Template MSVCM

    7/7

    Step Id User Action System State System Response

    1R - Update the customerpreferences based onthe search results orpurchased items.