1 / 37

System functionality methods

System functionality methods. Use case description. “Use case description” describe the interaction of the actor with the system in text format. Use case description should have the following sections parts): Use case name Entry condition Scenario Exit condition. Cont….

Télécharger la présentation

System functionality methods

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. System functionality methods . By Musa.D

  2. Use case description • “Use case description” describe the interaction of the actor with the system in text format. • Use case description should have the following sections parts): • Use case name • Entry condition • Scenario • Exit condition By Musa.D

  3. Cont… • A scenariodescribes a set of actions that are performed to achieve a goal under some specified conditions. • Who will perform each action in use case scenario? By Musa.D

  4. Cont… • Generally, a step is some action by the actor (e.g., enter information), • some logical step that the system performs to progress towards achieving its goals (e.g., validate information, deliver information), • or an internal state change by the system to satisfy some goals (e.g., log the transaction, update the record.) By Musa.D

  5. Cont… • Do you think that the interaction of actors with the system will be successful always? • Give example to justify your answer? By Musa.D

  6. Cont… • A scenario that describes the interaction without any failure is called main success scenario. • On the other hand different situations can arise while the system and the actor are interacting which may not permit the system to achieve the goal fully. By Musa.D

  7. Cont… • For these situations, a use case has extension scenarioswhich describe the system behavior if some of the steps in the main scenario do not complete successfully. By Musa.D

  8. Use case terms By Musa.D

  9. Cont… • pre-condition: What validity checks or constraints apply on the inputs (or the internal system as a whole) before the UC begins). • Post-condition: changes the UC makes to the internal system state. By Musa.D

  10. Example • Assume a give group want to build “on-line auction system” in which different persons can sell and buy goods. • Assume that there is a separate financial subsystem through which the payments are made and that each buyer and seller has an account in it. By Musa.D

  11. Cont… • Can you guess the main use cases of the system? By Musa.D

  12. Cont… • The main use cases of the system are: • Put an item up for auction • Make a bid • Complete auction of an item Identify main actors for above use cases? By Musa.D

  13. Cont… • The main actor for the “put items up for auction” is seller • The main actor for the “make a bid” is buyer • The main actor for the “complete auction of the item” is auction system By Musa.D

  14. Cont… • Specify the preconditions for the above actors to use the use cases? By Musa.D

  15. Cont… • Seller should login to the system • Buyer should login to the system • The last date for bidding has been reached for the auction system By Musa.D

  16. Cont… • Can you guess the main success scenario and exception scenario? By Musa.D

  17. Cont… By Musa.D

  18. Cont… By Musa.D

  19. Cont… By Musa.D

  20. Cont… • Are there other use cases that are used by the above mentioned use cases? • If yes mention some of them? By Musa.D

  21. Cont… • A use cases can employ other use cases to perform some of its work. • For example, in UC2 actions like "block the necessary funds" or "Debit bidder's account and credit seller's" are actions that need to be performed for the use case to succeed. By Musa.D

  22. Cont… • Do they need to described in the document? • If these use cases are also part of the system being built, then there must be descriptions of these in the requirements document. • If they belong to some other system, then proper specifications about them will have to be obtained. By Musa.D

  23. Cont… • What do you conclude about use cases? By Musa.D

  24. Cont.. • The use cases are self-explanatory. • they are natural and story-like which makes them easy to understand by both an analyst and a layman. • The name of the use case specifies the goal of the primary actor (hence there is no separate line specifying the goal). By Musa.D

  25. Cont… • The primary actor can be a person or a system • It is worth noting that the use case description lists contains some actions that are not necessarily tied to the goals of the primary actor. By Musa.D

  26. Cont… • For example, the last step in UC 2 is to update the bid price of other bidders. This action is clearly not needed by the current bidder for his goal. Then why it is included? By Musa.D

  27. Cont… • The system and other bidders are also stakeholders for this use case, the use case has to ensure that their goals are also satisfied. By Musa.D

  28. For writing use cases apply general technical writing rules • Use simple grammar • clearly specify who is performing the step • keep the overall scenario as simple as possible. • when writing steps, for simplicity, it is better to combine some steps into one logical step, if it makes sense. By Musa.D

  29. Cont… • For example see the following steps • "user enters his name," • "user enter his age," and • "user enters his address“ • can be easily combined into one step "user enters personal information." By Musa.D

  30. Case study Course schedule • Problem Description The computer science department in a university offers many courses every semester, which are taught by many instructors. These courses are scheduled based on some policy directions of the department. By Musa.D

  31. Cont… • Currently the scheduling is done manually, but the department would like to automate it. • As developer what will be your task? By Musa.D

  32. Cont… • The first task should be to understand the problem and then produce a requirements document based on our understanding of the problem. By Musa.D

  33. Cont… • For analysis, we first identify the parties involved. • Who are they? By Musa.D

  34. Cont… • Client: Chairman of the computer science department. • End Users: Department secretary and instructors. By Musa.D

  35. Cont… • After speaking with the instructors, the department chairman, and the secretary, we find that the system operates as follows. • Each instructor specifies, on a sheet of paper, the course he is teaching, expected enrollment, and his preferences for lecture times. By Musa.D

  36. Cont… • These preferences must be valid lecture times, which are specified by the department. These sheets are given to the department secretary, who keeps them in the order they are received. After the deadline expires, the secretary • does the scheduling. By Musa.D

  37. Cont… • Copies of the final schedule are sent to the instructors. • Draw DFD for the current system By Musa.D

More Related