[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655906-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-655906-en":130,"doc-similar-655906":163},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","software-engineering-lecture-8-use-cases-and-scenarios","Softwaretechnik/Software-EngineeringLecture 8 - Use Cases and Scenarios","","Lecture 8 in a Software Engineering course focuses on requirements engineering through positive and negative scenarios, emphasizing customer-driven example usages and undesired behaviors. It introduces scenario notations and explains how user stories, use case diagrams, and sequence diagrams (live sequence charts) support specification. The lecture demonstrates user story structure, including role, goal, benefit, priority, and acceptance test cases, then formalizes use case definitions with actors, participants, preconditions, postconditions, and exceptional cases using an ATM authentication example.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/software-engineering-lecture-8-use-cases-and-scenarios/655906/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/software-engineering-lecture-8-use-cases-and-scenarios/655906.png","ImageObject",300,407,{"name":42,"@type":43},"dbqoiu","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"How do positive and negative scenarios help in requirements engineering?","Question",{"text":63,"@type":64},"They approximate desired requirements by asking for example usages and for behaviors the system must not show. From these scenarios, exceptional and corner cases are refined and generalized.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What elements are included in a user story and how is it tested?",{"text":68,"@type":64},"A user story is written in the form “As a [role] I want [something] so that [benefit]” and is supported by acceptance test cases that describe how to verify the story has been realized.",{"name":70,"@type":61,"acceptedAnswer":71},"What are the key parts of a use case definition?",{"text":72,"@type":64},"A use case includes participants (the system and at least one actor), roles for actors, and structured fields such as goal, preconditions, postconditions, post-conditions in exceptional cases, and actor/open questions.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},655906,1793073250,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},3985747862462,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","8=2017-05-01=main  \n\n| VL6   | ·Introduction   |  |\n| --- | --- | --- |\n| -**  \u003Cbr>VL7  \u003Cbr>VL8   | ● Requirements Specification  \u003Cbr>-○ Desired Properties  \u003Cbr>○ Kinds of Requirements  \u003Cbr>Analysis Techniques   |  |\n|  | ● Documents   |  |\n|  | Dictionary,Specification   |  |\n|  | Specification Languages  \u003Cbr>1Natural Language  \u003Cbr>Decision Tables   |  |\n|  | ● Syntax,Semantics  \u003Cbr>Completeness,Consistency,…  \u003Cbr>Scenarios   |  |\n| ··  \u003Cbr>VL9   | e User Stories,Use Cases   |  |\n|  | Live Sequence Charts  \u003Cbr>o Syntax,Semantics   |  |\n|  | Working Definition:Software   |  |\n|  | ● Discussion   |  |\n\n8=2017-05-01-Sbloc koonert  \n# Softwaretechnik/Software-EngineeringLecture 8:Use Cases and Scenarios\n\n2017-06-01  \nProf.Dr.Andreas Podelski,Dr.Bernd Westphal  \nAlbert-Ludwigs-Universität Freiburg,Germany  \nTopic Area Requirements Engineering:Content  \n\"8-207L066-min-  \n-8-207066-5somet-  \nContent  \n3/46  \n-nim-060LU02-8,  \n8-2017-06-01-Sscen-  \n## Scenarios\n\nRecall:The Crux of Requirements Engineering  \nOne quite effective approach:  \ntry to approximate the requirements with positive and negative scenarios.  \n● Dear customer,please describe example usages of the desired system.Customer intuition:“If the system is not at all able to do this,then it's not what I want.”  \n● Dear customer,please describe behaviour that the desired system must not show.Customer intuition:“If the system does this,then it's not what I want.”  \n● From there on,refine and generalise:what about exceptional cases?what about corner-cases?etc.  \n● Prominent early advocate:OOSE(lacobson,1992)  \n5/46  \n●Positive scenario:Buy a Softdrink  \n(i)Insert one 1euro coin.  \n(ii)Press the softdrink'button.  \n(ii)Get a softdrink.  \n·Positive scenario:Get Change  \n(i)Insert one 50 cent and one 1euro coin.  \n(ii)Press the softdrink'button.  \nii)Get a softdrink.  \n(iv)Get 50 cent change.  \n·Negative scenario:A Drink for Free  \n(i)Insert one 1euro coin.  \n(ii)Press the softdrink'button.  \niii)Do not insert any more money.  \n(iv)Get two softdrinks.  \n7/46  \n8=2017-05-01-Scen  \n## Notations for Scenarios\n\n● The idea of scenarios(sometimes without negative or anti-scenarios)  \n(re-)occurs in many process models or software development approaches.  \n● Inthe following,we will discuss two-and-a-half notations(in increasing formality):  \n·User Stories(part of Extreme Programming)  \n● Use Cases and Use Case Diagrams(OOSE)  \n● Sequence Diagrams(here:Live Sequence Charts(Damm and Harel,2001))  \n8=2017=06-01=Sscen  \n-nim-060LU02-8,  \nPer user story,use one file card with the user story,e.g.following the pattern:  \nand in addition:  \n·unique identifier(e.g.unique number),  \n·priority (from1(highest)to 10(lowest))assigned by customer,  \n● effort,estimated by developers,  \nProposed card layout(front side):  \n=8=20-001-5eases-  \n## User Stories\n\n9/46  \n“A User Story is a concise,written description of a piece of functionality  \nthat will be valuable to auser (orowner)of the software.\"  \nAs a [role]I want [something]so that [benefit].  \n● back side of file card:(acceptance)test case(s),  \ni.e.,how to tell whether theuserstory has been realised.  \n\n| priority   | unique identifier,name   | estimation   |\n| --- | --- | --- |\n| As a[role]I want [something]so that [benefit].   |  |  |\n| risk二   |  | real effort   |\n\nNatural language requirements can be(tried to be)written as aninstance ofthe pattem“(A〉(B〉(C〉〈D〉《E》(F).”(Geman grammar)where  \n\n|  |  |\n| --- | --- |\n| A   | clarifies when and under what conditions the activity takes place   |\n| B   | is MUST (obligation),SHOULD(wish),or WILL(intention);  \u003Cbr>also:MUST NOT (forbidden)   |\n| C   | is either \"the system\"or the concrete name of a(sub-)system   |\n| D   | one of three possibilities:  \u003Cbr>·\"does\",desciption of asystem activity,  \u003Cbr>·“offers”,description of a function offered by the system to somebody,  \u003Cbr>·“”is ableif,  \u003Cbr>usage of a function offered by a third party,unde certain conditions   |\n| E   | extensions,in particular an obje","cbCaipqjOV000OwT","https://ap.wps.com/l/cbCaipqjOV000OwT","pdf",2658018,31,"English","# Scenarios\n## Notations for Scenarios\n# User Stories\n## User Stories:Discussion\n# Use Cases\n## Use Case:Definition","[{\"question\":\"How do positive and negative scenarios help in requirements engineering?\",\"answer\":\"They approximate desired requirements by asking for example usages and for behaviors the system must not show. From these scenarios, exceptional and corner cases are refined and generalized.\"},{\"question\":\"What elements are included in a user story and how is it tested?\",\"answer\":\"A user story is written in the form “As a [role] I want [something] so that [benefit]” and is supported by acceptance test cases that describe how to verify the story has been realized.\"},{\"question\":\"What are the key parts of a use case definition?\",\"answer\":\"A use case includes participants (the system and at least one actor), roles for actors, and structured fields such as goal, preconditions, postconditions, post-conditions in exceptional cases, and actor/open questions.\"}]","Softwaretechnik/Software-EngineeringLecture 8 - Use Cases and Scenarios | PDF",1792964718,78,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e1bc2bcc1d1047f9ffde9751ec7f3f83.webp",983,1272,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/48ce4b2e446b66f4e20f0f3a3f7941c2.webp",982,1270,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f03efbf730a61354a0d2426c02104124.webp",981,1269,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/96befaedc00e4719f04688f1deade862.webp",980,1268,{"list":164,"token":11},[165,171,177,183,189,195,201,207,214,220],{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":55,"category_name":29,"create_tm":170},657649,"Modelling Scenarios & Use Cases - Structured natural language and UML Sequence Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975648607/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=RqqXQRc0L3U6%2FEmTf9sjkvU%2FfvE%3D","modelling-scenarios-use-cases-structured-natural-language-and-uml-sequence-diagrams",1792985781,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":123,"category_name":29,"create_tm":176},655775,"LAB 5 - Interaction Diagram - UML Communication Diagram - Lab Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776825/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=9khb6fxTG8XymKhpinha92j50j0%3D","lab-5-interaction-diagram-uml-communication-diagram-lab-notes",1792963729,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":111,"category_name":29,"create_tm":182},656235,"System Sequence Diagrams - Lecture Design Road - Simple cash-only Process Sale scenario","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974787077/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=DElun1sT1ChpfiTiRr03w1amC%2FI%3D","system-sequence-diagrams-lecture-design-road-simple-cash-only-process-sale-scenario",1792967122,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":102,"category_name":29,"create_tm":188},665502,"Automated use case diagram generator using NLP and ML","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983859384/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=i%2FQ2Rw8oH7s%2F04RQ8%2BH8ebw2kCA%3D","automated-use-case-diagram-generator-using-nlp-and-ml",1793304523,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":55,"category_name":29,"create_tm":194},655968,"Data Flow and Use Case Diagrams - CIS311 - System Analysis and Design","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974781121/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=f5nD%2Bv%2BQhD7D6S5GOd0Lw2eWbWU%3D","data-flow-and-use-case-diagrams-cis311-system-analysis-and-design",1792965199,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":115,"category_name":29,"create_tm":200},655697,"UML Sequence Diagram: An Alternative Model - paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288081/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=Otp7vitS9fK0ULrYhEuSCFL5idQ%3D","uml-sequence-diagram-an-alternative-model-paper",1792963365,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":123,"category_name":29,"create_tm":206},656165,"Architecture Design & Sequence Diagram - Week 7 - Announcement - Reminder","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975302083/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=lNRVtezaaISKxBGDAC%2F0827vPw0%3D","architecture-design-sequence-diagram-week-7-announcement-reminder",1792966820,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":29,"create_tm":213},655943,"Model Checking and Code Generation for UML State Machines and Collaborations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974780629/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=IwgldSxGPMs2NX7KElu%2FFaEDItI%3D","model-checking-and-code-generation-for-uml-state-machines-and-collaborations",13,1792965028,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":55,"category_name":29,"create_tm":219},655760,"Extending UML Use Case Diagrams to Represent Non-Interactive Functional Requirements","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776564/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=YkQKEe5DgycmuqwemDOLIILYnJo%3D","extending-uml-use-case-diagrams-to-represent-non-interactive-functional-requirements",1792963620,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":111,"category_name":29,"create_tm":225},364091,"ATM Variants and Breast Cancer Risk in North Macedonia - Focus on the Regionally Enriched p.(Leu2492Arg) Variant","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229913389168/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112119&Signature=RwnUAHRk80o854mW9FT6RpALrvo%3D","atm-variants-and-breast-cancer-risk-in-north-macedonia-focus-on-the-regionally-enriched-pleu2492arg-variant",1790155591]