Fáceis de enteder (escritos na linguagem do problema) Ajuda a unificar critérios Estimula o pensamento Ajuda no treinamento Ajuda no rastreamento Ajuda na identificação de requisitos nãofuncionais. Cenários são situações 1
Mundo Real Universo de Informações Situações Lista de Situações 2
Características de Situações Propósito - uma situação trata da satisfação de um objetivo. Atores - uma situação envolve um número identificado de atores (pessoas ou aparatos ou organizações). Recursos - elementos que são necessários numa situação. Tempo - representam um momento específico. Lugar - acontecem em um contexto geográfico. Restrições - podem existir pre-condições Independentes em ponto pequeno - precisam ser entendidas por si só. Inter-relacionadas em ponto grande - são relacionadas com outras situações, mas independentes. Concretas - são ancoradas na realidade. Alternativas - podem levar a ações alternativas. 3
Fáceis de enteder (escritos na linguagem do problema) Ajuda a unificar critérios Estimula o pensamento Ajuda no treinamento Ajuda no rastreamento Ajuda na identificação de requisitos nãofuncionais. 4
5
Título: Loja confere ficha cadastral Objetivo: Verificar se as informações da ficha cadastral estão corretas Contexto: Cliente entrega ficha cadastral e apresenta carteira de identidade e CPF para loja Atores: loja. Recursos: carteira de identidade, CPF, ficha cadastral Restrição: deve ter precisão de propriedade e precisão de valor. Episódios Loja preenche os campos da ficha cadastral não informados pelo cliente com a sigla NE (não existente) Restrição: ficha cadastral deve ter precisão de propriedade, sendo a estratégia de satisfação validação Loja verifica o número da identidade presente na ficha cadastral com a carteira de identidade do cliente Restrição: ficha cadastral deve ter precisão de valor, sendo a estratégia de satisfação validação Loja verifica o número de CPF presente na ficha cadastral com o CPF do cliente Restrição: ficha cadastral deve ter precisão de valor, sendo a estratégia de satisfação validação Loja verifica o endereço e o telefone de contato presentes na ficha cadastral, ligando para o telefone de contato Restrição: ficha cadastral deve ter precisão de valor, sendo a estratégia de satisfação validação 6
Situation Characteristics PURPOSE a situation is about the fullfillment of one (or more) goals. ACTORS involves a number of identified actors (people or virtual) RESOURCE there is usually information or phisical elements relevant to the situation TIME represent a specific moment in time PLACE happen in a geographical context CONSTRAINED there may be pre conditions INDEPENDENT ON THE SMALL high coesion independent chunks must be understood if read separetely INTERELATED ON THE LARGE coupling not entirely dependent on the rest of the scenarios CONCRETE anchored in reality ALTERNATIVE COURSES OF ACTION 7
Scenarios x Use Cases Use cases are ways to use the sytem. The set of use cases represents everything the user can do with the system Jacobson Scenarios Use Cases situation view the world as it is. functional view the world as we want it to be. action, actors, environment, intent action, actors problem biased solution biased can be used to elicit the requirements hinders important aspects of elicitation textual graphical (if more detail is needed, a non structured textual representation is used) depend on the representation padronized relationships 8
Derivar identificar atores identificar cenários criar candidatos Descrever utilizar representação seguir dicas juntar cenários Organizar reorganizar definir integrar Verificar Validar Cenários 9
Dicas Frases curtas Maximize o uso de símbolos do Léxico Use apenas um verbo por frase Atores e recursos devem ser símbolos do léxico Cenários The use of more than one verb per sentence should be avoided. Actors and Resources should be preferentially lexicon symbols. The goal must be precise and concrete. At least one of the sub-components of the context must be filled. The component Resources should list those involved in the episodes or implicitly referred to the episode verb, excluding trivial resources. Style Guidelines The component Resources should not include those needed in sub-scenarios. The component Actors should list those involved in the episodes. The component Actors should not include those needed in sub-scenarios. The verb of each episode should be precise and concrete, specifying the final action and avoiding ambiguity and vagueness. Every episode must be enacted within the geographical and temporal location described by the scenario Context. The present tense should be preferred in describing episodes. Avoid using should, can, may, must in episodes. 10