Docsity

capitulo 2 engenharia de requisitos, Resumos de Engenharia de Requisitos

Pré-visualização parcial do texto

Baixe capitulo 2 engenharia de requisitos e outras Resumos em PDF para Engenharia de Requisitos, somente na Docsity!

Requirements Engineering Processes Contents Process models Actors in requirements engineering processes Process support Process improvement Summary s chapter is a general introduction to requirements engineering processes. Es the scene for the more detailed process descriptions in the following chapters. We introduce the general notion of processes, describe the xs and outputs to requirements engineering processes and explain why processes often vary from one organisation to another. Different ches to modelling requirements engineering processes are suggested we explain why human, social and organisational factors are important ces on these processes. We briefly describe tool support for require- engineering then go on to cover more general process improvement Finally, we introduce the notion of requirements engineering process cy and explain how this can be used as the basis of an improvement requirements engineering processes. e s is an organised set of activities which transforms inputs to outputs. are part of all aspects of life and are an essential mechanism for h complexity in the world. Descriptions of processes are very because they allow knowledge to be reused. Once someone has E how to solve a problem, they can document they way in which was derived as a process. This then helps other people faced ar problems to get started on their own solutions. 26 REQUIREMENTS ENGINEERING PROCESSES Processes are fundamental to human activities and we often communicate details of these activities by describing the associated processes. 1. An instruction manual for a Kitchen dishwasher describes the process of using that machine to clean dishes. The input to this process is a pile of dirty dishes and a dishwasher; the output is a dishwasher full of clean dishes. 2. A cookery book describes a set of processes to prepare and cook various different types of meal. The inputs to these processes are raw ingredi- ents; the outputs are cooked meals. 3. A procedures manual in a bank describes the ways in which different banking processes such as agrecing a personal loan, correcting errors, etc. should be carried out. The inputs and outputs here are less tangible. The input, perhaps, is a customer request for some service plus various customer details; the output is the delivered service although it may be difficult to separate this from the process itself. 4. A quality manual for software development describes the processes which should be used to assure the quality of the software. It may include descriptions of standards which are the basis for the quality checking. [he inputs here are documents and programs to be checked and the quality standards which must be followed; the outputs are reports of the quality assurance activities. In some cases, processes are defined at a very finc level of detail and the steps in the process must be carried out exactly as described. However, this usually only applies to very simple processes such as making a telephone call from a payphone (lift receiver, insert coins or card, dial number). For more complex processes, the description is usually less detailed and it is up to the person or team who are executing the process to carry it out (enact the process) in their own environment. Different people usually enact the process in different ways. Sometimes the same person will enact the same process in different ways at different times. The reason for this is that enacting the different activities in the process depends on the background of the people involved and the particular circum- stances in which the process is enacted. For example: 1. People with experience may change the order of stages in a process or combine stages because they understand the consequences of what they 28 REQUIREMENTS ENGINEERING PROCESSES Figure 2.1 Existing Inputs and systems ourputs of the information requirements engineering Stakeholder ra EN Agreed process. needs o [———*| requirements a Requirements Organisational ; E [Ls System RR = engineering process apeoiteition System Regulations RR models Domain information input er output Type Description Existing system information Input Stakeholder needs tapur Organisational standards tnpor Information alhout the funictionalioy of systéms to be renlaced or other systems which interace with the system being specified Daseriprioas of what system stakeholders riced from the system. EO support their work Standards used in an organisaton regarding syatem development. practice, qualicy management, ate. - External regulasions such as health and safecy regulations which Regulations tnpur : apply to the system. Domain informadon trpus General information about the application domain ef the system Agrees requirements Oueput À description af the system requirements which is understandabie by stakeholders and which has baen agreed by them System specification Output This ya more detailed specification of the system funcrionality which may be produced in some cases System modeis Output À set Gf models such as a data-flow model an object model, à process model, ste. which describes che system from different Figure 2.2 Tigure 2.2 expands on Figure 2.1 by providing more detail of the inputs Inpur/output and outputs of the requirements engineering process. Although the require- description. ments engineering process inevitably varies from one organisation to another and may even vary within the same organisation, the inputs and outputs are similar in most cases. SUMMARY To make this more concrete, let us look at some examples of the different “Eypes of information which may be inputs to the requirements engineering process. These have been taken from a library information system (LIS). 1. Existing system information Assume that the system has to interface with a bar code reader system which has already been installed and which generates a queue of bar codes for processing and associated transaction requests. An example of a requirement from this system might be: The LIS shall poll the bar code reader system and process all of the transaction requests every two seconds. 2. Stakehnlder needs Assume that the stakcholder is a visitor to the library who has no previous experience of using the system. An example of a stakeholder need might be: The system should provide a help facility which will explain the facilities of the system to new users. This help facility should be accessible from all user interface screens. 3. Organisational standards Assume that the library uses a hardware platform for all of its systems. A requirement from this might be: The system shall run on a Sun server running the Solaris 2.0 operating system. 4 Regulations Regulations such as health and safety regulations are unlikely to have much impact on this type of system. However, data protection laws do apply to it. A requirement for data protection might be: The system shall include a facility to print all of the personal informa- tion which is maintained for a library user. 5. Domain information This is general information which is applicable to all or most library systems. An example of a domain reguirement might be: Books are uniquely identified by an International Standard Book Number which is a IO digit identifier 29 CENTRO DE INFORMA : We have already seen an example of a process model in Chapter 1 where the systems engineering process was described. The model there was one of the most commonty used types of process model namely a coarse-grain activity model which shows the major activities involved in a particular process and their approx imate sequencing. The sequencing is approximate because, in reality, processes overlap and are interleaved — they rarely follow a simple seguential pattern. The types of process model which may be produced depend on the use which you anticipate for these models. You may want to produce a model to help explain how you have organised process information, you may iwant a model in order to understand and improve a process, you may be required to produce a model to satisfy some quality management standards, etc. Examples of different types of model which may describe processes and the areas where they may be used arc: 1. Coarse-grain activity models Figure 2.3 is an example of such a model. It shows the principal require- ments engineering process activities and their (approximate) sequencing. This type of model doesn't tell us how to enact a process but provides an overall picture of the process. This type of model is often constructed as a starting point for a process description wilh separate sections covering each box in lhe model. Coarse-grain activity models describe the context of the different activ- ities in the process. They show other processes which provide inputs to and consume outputs from a specific process. We can see this im Figure 24, which is an example of a software life cycle model which shows the context of the software requirements engineering process in the whole of the software development process. Fine-grain activity models These are more detailed models of a specific process. They may be used for understanding and improving existing processes. We do not include these detailed models in this chapter but later chapters of this section present more detailed models of specific requirements engineering activ- iães within the general requirements engineering process. Role-action models These are models which show the roles of different people involved in he process and the actions which they take. These models may be helpful for process understanding and automation. * Entity-zelation models These models show the process inputs, outputs and intermediate results and the relationships between them. They may be used in a quality * management system and to supplement models of process activities. BIBLIOTECA / UFPÍ PROCESS MODELS 31 32 REQUIREMENTS ENGINEERING PROCESSES elícitation Í Requirements User needs domain information, existing system information, regulations, standards, etc. Figure 2.3 Coarse-grain activity model of the requirements engineering process. Requirements analysis and negotiation, Requirements documentation Requirements validation Requirements document Agread System requirements specification Different organisations tackle requirements engineering in radically different ways. An aerospace company which is specifying very complex hardware/software systems will not use the same requirements engineering process as a company which is building consumer products for personal computers. However, the differences between these processes usually emerge at the level of detailed process description. At an abstract level, most require- ments engineering processes can be described by the coarsc-grain activity model shown in Figure 2.3. In Figure 23, we have shown requirements engineering activities using cloud icons. These have been chosen to indicate that there are no distinct boundaries between these activities. In practice, the activities are interleaved and there is a great deal of iteration and feedback from one activity to another. The activities in the requirements engineering process are as follows. 1. Requirements elicitation The system requirements are discovered through consultation with stakeholders, from system documents, domain knowledge and market studies. Other names for this process are requirements acquisition or requirements discovery. 2. Requirements analysis and negotiation The requirements are analysed in detail and different stakeholders nego- tiate to decide on which requirements are to be accepted. This process is necessary because there are inevitably conflicts between the require- ments from different sources, information may be incomplete or the requirements expressed may be incompatible with the budget available to develop the system. There is usually some flexibility in requirements and negotiation is necessary to decide on the set vf agreed requirements for the system. 34 REQUIREMENTS ENGINEERING PROCESSES System requirements engineering Figure 24 A waterfall model of the software process. Figure 2.5 The context of the requirements engineering process. System requirements specification y Software requiremenis specification Software requirements engineering Software design specification Software desga — , Executable software system Programming and unit testing Completed system System testing System operation requirements engineering and design. Furthermore, requirements engineering is also influenced by a more general systems acquisition or procurement processes which are concerned with the commercial, legal and contractual issues of acquiring a system for an organisation. There are two-way information flows betwcen these processes as they are enacted and the detailed activities in these processes change depending on this information (Figure 2.5). Figures 2.4 and 2.5 illustrate that, even at very abstract levels, there are different ways to look at processes. Neither Figure 2.4 nor Figure 2.5 is an “incorrect' model but each presents different possible ways in which the RE process interacts with other processes. The nature of models is that they hide information. When you try to understand process models you must realise that they will never present a complete (or unbiased) picture of whatever process is being described. System acquisition Requirements engineering System design Activity models of processes such as Figure 2.3 and Figure 2.4 often show a sequence of phases with the implication that phases follow each other. They may show feedback from one phase to another and may suggest that phase boundaries are blurred as in Figure 2.3. As information is fed back from one activisy to another, obviously the phase receiving the information must be re- entered in some way. An alternative way to present activity models which makes this repetition of activities more explicit is as a spiral model as shown im Figure 2.6. Figure 2.6 shows that the different activities im requirements engineering are repeated until a decision is made that the requirements document should be accepted. If a draft of the requirements document is found to have prob- Tems, the elicitation, analysis, documentation, validation spiral is re-entered. This continues until an acceptable document is produced or until external factors such as schedule pressure or lack of resources mean that the require- És engineering process should end. A final requirements document should be produced. Any further changes to the requirements are then part of requirements management process. PROCESS MODELS 35 Figure 2.6 A spiral model of the requirements engineering Informal statement of process. . requirements Decision point: Accept document or re-enter spiral Requirements elicitation [” | Requirements analysis and negotiation (SAN Agreed R N ) / / requirements Requirements validation | 1 Requirements documentation Draft requirements document Role o Description Domain expert. Responsible for providing information about the application domain and rhe specific problem in that domain which is to be solved System end-user Responsible for using the system after delivery Requirements engincer — Responsible for eliciting and specifying the system E requirements Softwará engineer Respansible for developing the prototype software system Project manager Responsible for planning and estimating the protoyping project 2.2.1 Human, social and organisational factors Requirements engineering processes are dominated by human, social and organisational factors because they always involve a range of stakeholders from different backgrounds and with different individual and organisational goals. This is in contrast to other software processes, such as system testing, where the majority of the people involved in the processes have a common technical background and a shared goal of demonstrating that the system meets its specification. Stakeholders in a system may or may not have a technical background. They may come from different engineering disciplines. They may be respon- sible for management and may be internal or extemal to an organisation. Examples of these different stakeholder types are: * — software engineers responsible for system development + — system end-users who will use the system after it has been delivered managers of system end-users who arc responsible for their work external regulators who check that the system meets its legal require- ments domain experts who give essential background information about the system application domain Typically, these people come from different departments in an organisa- and they are usually responsible for many other things apart from the irements engineering of a system. They will not necessarily give priority fhe requirements engineering process. It is likely that each group of stake- Ts will have different goals. They will try to influence the requirements £ their goals are met without necessarily taking the goals of other stake- into account. Whether or not a stakeholder succeeds in influencing ACTORS IN REQUIREMENTS ENGINEERING PROCESSES Figure 2.8 Roles in the prototyping process. 37 38 REQUIREMENTS ENGINEERING PROCESSES the requirements often depends on personality and status and not necessarily un reasoned argument. To illustrate this, consider a simple situation where an end-user has a requirement for some system facility which is clearly difficult to implement. The software engineers responsible for the system may attempt to change that requirement because they think that it will cause them to overrun their agreed development schedule. É the end-user is in a fairly junior position and is opposed by a senior soft- ware manager then it is likely that the software manager's views will prevail. Fowever, ;f the end-user has managerial support and comes from a depart- ment which is politically influential in an organisation then their requirement will probably be accepted. Personalities are also important. IÉ the end-user has an aggressive and persistent personality, the engineers may agree to accept their requirement simply to get rid of them. They may then, however, deliberately give this a low priority so that they can later demonstrate that this was an unreasonable requirement. Within an organisation, different departments and individuals have differ- ing degrees of political influence. This influence depends on the individuals involved, the priorities of the organisation and the suecess or otherwise of the departments and individuals in meeting their goals. People try to influence system requirements so that they can maintain or increase their own political influence in the organisation. For example, in a university, there is a constant tension between administration and academic departments. If a budget infor- mation system is planned, the administration is likely to propose requirements which give them more power. However, the academic departments are likely to oppose this and suggest system requirements which mean that they increase their responsibility for their own financial management. 2.3 Process support The need to provide some automated support for software processes has been recognised since the 1980s. This led to the development of a large number of CASE (Computer-Aided Software Engineering) tools which supported various process activities such as software design, configuration management and testing. Some over-optimistic commentators predicted that this automated process support would lead to orders of magnitude improvement in software productivity. In fact, the scale of improvement was much less than predicted. Although CASE tools have an important role to play in supporting software processes, they rarely lead to very large increases in productivity or quality. CASE tool support has tended to develop around those parts of the soft- ware process iwlúch are common to all organisations and which are relatively well-understood. Therefore, there are mature tools for programming support (editors, compilers, debuggers, etc), for activities such as configuration 40 REQUIREMENTS ENGINEERING PROCESSES Figure 2.9 À requirements management system. Tools for requirements management have been developed because of the problems of managing the large amount of data which is collected during the requirements engineering process and the volatility of the requirements. As well as data storage and retrieval facilities, these tools provide a change management system which can record change proposals, link these to the requirements aífecicd and keep track of the status of the changes. Requirements histories can be constructed, and some traceability support which allows the impact of changes to be assessed is usually provided. At the time of writing, there are several commercial CASE products avail- able for requirements management such as DOORS, RML, RDD-100 and Requisite Pro. Links to the suppliers of these tools are included in the book's web pages. Typically, these systems support interfaces to commercial word processor systems such a Microsoft Word and provide some support for convering natural language requirements into their proprietary database format. Figure 2.9 illustrates some of the facilities which may be provided by a requirements management system. Round-edged rectangles represent system components; rectangular boxes represent data in the requirements manage- ment system. Requirements management tools collect together the system requirements in a database or repository and provide a range of facilities to access the infor- mation about the requirements. These facilities may include: 1. a requirements browser so that readers of the requirements can browse the database 2. a requirements query system so that tool users can retrieve specific requirements or requirements which are related in some way Req. query (reg browser ) ( am NL Trace: yo document database sapeca ge generator Change control) [Requirements system report Traceability report fraceability support system which can be used to generate traceability on (see Chapter 5) more general report generator which can generate various different of reports about the requirements such as requirements from stakeholders, etc. 2 requirements converter and a word processor linker which can convert irements in a word processor document into the requirements data- format and which can maintain links between the database and the al language representation of the requirements change control system which can maintain information about requested quirements changes and links to the requirements affected by the frements management systems have been designed as general tools may be used in many different requirements engineering processes. o not, generally, impose their own model of the requirements engi- process. area of requirements engineering where support is currently very is the area of elicitation. This is a difficult area to support because of e range of different stakeholders who may be involved in the process, ent notations and vocabularies used by these stakcholders and the of the requirements at this stage. There is some scope for using managing unstructured information during the elicitation process ille, Rodden et al., 1993). m practice, however, we have found that a computer between the requirements engineering and the system often inhibits the elicitation process. Process improvement e late 1980s, the importance of processes and their role in a business increasingly widely recognised. In many cases, analyses of busi- ses showed that they included redundant activities, unnecessary of information and inefficient flow of work from one process to another. There may be scope for process “improvement” where ss is modified to meet some improvement objectives. improvement objectives may include the following. y improvement outputs produced by the process are of higher quality. m the case ements, this means that they may contain fewer errors, may be PROCESS IMPROVEMENT a PROCESS IMPROVEMENT 43 methods, you might think that these will necessarily lead to process ents. A good example of this was the widespread investment in technology in the late 1980s and carly 1990s. Many organisations which im CASE tools found that they had no significant effect on the dnctivity or quality of their products. The CASE tools changed the process d not address the real problems (such as requirements engineering prob- ms) faced by these organisations. e are four questions which should be answered when planning process ents. What are the problems with current processes? These may be identifiable problems such as late delivery of products, Budget over-runs, poor quality, products, etc. They may be less tangible problems such as poor staff morale, a reluctance in people to take responsibility or a mecting-dominated process where people spend too much time in meetings. Alternatively, the key problems might be prob- Jems of process understanding — no-one actually knows what processes are followed. What are the improvement goals? These should normally be related to the identified problems. Tor example, if an organisation has quality management problems, its goal may be to improve quality management procedures to satisfy the ISO 9000 certification standard (Ince, 1994). If there are problems with budget-overruns, the goal may be to reduce the amount of rework which is required in a process. Goals must be realistic. There is no point in setting unrealisable goals or having unrealistic expectations about the benefits of new techniques or methods. How can we introduce process improvements to achieve these goals? This involves assessing the existing requirements engineering processes to find out the activities which cause most problems and identifying changes to these which will contribute to the improvement goals. How should improvements be controlled and managed? Procedures to collect feedback on improvements, which may be either quantitative measurements of the process or informal comments on the improvements, must be put in place. You should also ensure that action is taken in response to this feedback to correct any identified problems. quirements engineering processes may suffer from many different kinds em which result in conseguential problems with the system and soft- requirements. Some examples of fairly common problems are as follows. 44 REQUIREMENTS ENGINEERING PROCESSES 4 Lack of stakeholder involvement The process does not identify and take into account the real needs of all of the different stakeholders in the system. This problem can be addressed by including explicit process activities concerned with stake- holder identification and by using viewpoint-oriented methods of requirements engineering as described in Chapter 7. Business needs are not considered The requirements engineering process is seen as a Lechnical rather than a business process and is dominated by technical concerns. This can mean that the requirements do not satisfy the real needs of the business which is acquirimg the system. This problem should be addressed by including am explicit stage where business needs are identified and by the involvement of business stakeholders in the process. Lack of requirements management The process does not include effective techniques of requirements management. This means that changes to the requirements may be intro- duced in an ad hoc way and that a great deal of time and effort may be required to understand and incorporate these requirements changes. These problems can be addressed by introducing a change management process as discussed in Chapter 5. Lack of defined responsibilities The different people involved in the requirements engineering process do not understand their individual responsibilities. This means that some tasks may not be carried out because everyone assumes that some- one else is responsible for it. This can be addressed by developing responsibility or role-action models as part of the RE process. Stakeholder communication problems The different stakeholders in the system (end-users, managers, engineers, etc.) fail to communicate cffectively so that the resulting requirements document is not understandable (and hence checkable) by all stakehold- ers. This results in incorrect or incomplete requirements which may only be discovered after the system has been implemented. This can be addressed by using shared notations for requirements description, defin- ing a glossary explicitly as part of the process, involving all stakeholders in review meetings, etc. There is no standard set of process improvements which should be intro- duced nor is there a standard requirements engineering process which all organisations should be aiming for. Rather, the appropriate improvements