




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Introduction to Software Engineering: A Generic view of Process: Software Engineering, Process Framework, CMM Process Patterns, Process Assessment. Process Models: Prescriptive Models, Waterfall Model, Incremental Process Models, Evolutionary Process Models, Specialized Process Models, The Unified Models, Personal and Team Process Models, Process Technology, Product and Process. An Agile view of Process: Introduction to Agility and Agile Process, Agile Process Models.
various processes and functions. ” Now-a-days software acts both as product (Application Software) and vehicle for delivering a product (System Software). As product, software delivers computing potential embodied by computer hardware (or) by a network of computers that are accessible by local hardware. As the vehicle used to deliver product, software acts as basis for control of PC (OS), Communication of information (Networks) and Creation and Control of other programs (Software Tools, Environments). Software Development : “It is a creative activity, where a software system is developed from initial concept through a working system”. Software Maintenance: “Process of changing a developed system once it is delivered”. Software Evolution: “Evolutionary process where software is conceptually changed over its lifetime in response to the changing requirements”. Software Characteristics:
application of a systematic, disciplined, quantifiable approach to the development, operation and maintenance of software i.e., application of engineering to software. Software engineering is a layered technology. The foundation for software engineering is the process layer. The software engineering process is the glue that holds the technology layers together and enables timely development of software. Process defines a framework that must be established for effective delivery of software engineering technology. The software process forms the basis for management control of software projects and establishes the context in which technical methods are applied, work products (models, documents, data, reports, forms, etc.) are produced, milestones are established, quality is ensured , and change is properly managed. Software engineering methods provide the technical how-to’s for building software. Methods encompass a broad array of tasks that include communication, requirements analysis, design modeling, program construction, testing, and support. Software engineering tools provide automated or semi automated support for process and the methods. When tools are integrated so that information created by one tool can be used by another, a system for the support of software development, called Computer Aided Software Engineering (CASE) , is established. Fig: Software Engineering Layers A Process Framework: “ It establishes a foundation for complete software process by identifying a small number of framework activities and umbrella activities that are applicable to all software projects. ” Each framework activity is populated by a set of Software Engineering actions (Ex: Design) – collection of related tasks. Each action is populated with individual work tasks. Software is determinate if order and timing of inputs, processing and outputs is predictable, otherwise it is referred an indeterminate. Framework Activities:
1. Communication: It involves heavy communication and collaboration with customer and other stakeholders. It encompasses requirements gathering and related activities. 2. Planning: It plans for Software Engineering work that follows. It describes technical tasks to be conducted, resources that will be required, likely risks, work products to be produced and a work schedule. 3. Modeling: This activity focuses on creation of models that allow stakeholders (customer, developer) to better under software requirements and design that will achieve requirements.
over- reliance on process is also dangerous.
current process, organize work tasks, controls and monitor progress, manage technical quality”.
for a successful software engineering. Approaches: CMM-Based Appraisal for Internal Process Improvement (CBA IPI): It provides a diagnostic technique for assessing the relative maturity of a software organization; uses the SEI CMM as the basis for the assessment SPICE: S oftware P rocess I mprovement and C apability d E termination. SCAMPI: S tandard C MMI A ssessment M ethod for P rocess I mprovement. It provides a five step process assessment model that includes: Initiating, Diagnosing, Establishing, Acting, and Learning. ISO 9001:2000 for software: Generic standard to improve the overall quality of products, system and services of software organization. It adopted a plan-do-check-act cycle for continuous process improvement
Capability Maturity Model Integration is a maturity model used to rank software development organizations. It is proposed by Software Engineering Institute (SEI). It represents process model as 1.Continuous Model 2.Staged Model CMM: “ It is maturity framework strategy that focuses on continuously improving the development and management of organization workforce. ” Capability Levels: The Capability levels depend on Key Process Areas (KPA). These are given as:
1. Level 0 (Incomplete): The process area (Ex; Requirement Management) is not performed or does not achieve all goals and objectives defined by CMMI for level 1 capability. 2. Level 1 (Initial/Performed): All specific goals of process area have been satisfied. Work tasks required to produce defined work products are being conducted. 3. Level 2 (Repeatable/Managed): All level 1 criteria have been satisfied. All work related to PA is up-to-date with organization expectations. All people doing work have access to adequate resources to get the job done i.e., stakeholders are actively involved. Work task and work products are “monitored, controlled, reviewed and evaluated”. 4. Level 3 (Defined): All level 2 criteria are achieved. “The process is tailored from organization’s set of standard other processes and contributes work products, measures and other process improvement information to organizational process assets” 5. Level 4 (Quantitatively managed): All level 3 criteria are satisfied. Quantitative objectives for quality and process performance are established and used as criteria in managing the process. 6. Level 5 (Optimized): All level 4 criteria are satisfied. Process Area (PA) is adapted and optimized using quantitative needs to meet changing customer needs and continually improve efficiency of Process Area.
SEI has associated key process areas (KPAs) with each of the maturity levels. KPAs describe those software engineering functions (e.g., software project planning, requirements management) that must be present to satisfy good practice at a particular level. Each KPA is described by identifying the following characteristics: Goals —the overall objectives that the KPA must achieve. Commitments —requirements (imposed on the organization) that must be met to achieve the goals or provide proof of intent to comply with the goals. Abilities —those things that must be in place (organizationally and technically) to enable the organization to meet the commitments. Activities —the specific tasks required to achieve the KPA function. Methods for monitoring implementation —the manner in which the activities are monitored as they are put into place. Methods for verifying implementation —the manner in which proper practice for the KPA can be verified. Eighteen KPAs are defined across the maturity model and mapped into different levels of process maturity. The following KPAs should be achieved at each process maturity level: Process maturity level 2 Software configuration management Software quality assurance Software subcontract management Software project tracking and oversight Software project planning Requirements management Process maturity level 3 Peer reviews Intergroup coordination Software product engineering
Each software engineer can create a process that best fits his or her needs. A team can also create a process that meets narrower needs of individuals and broader needs of organization. Personal Software Process (PSP): Every developer uses some process o build the computer software. The process may be Adhoc, may change daily and may not be efficient. PSP process model defines 5 framework activities :
Prescribes set of process elements such as framework activities, Software Engineering actions, tasks, work products, assurance and charge control mechanism. Each process model prescribes a work flow. Various Prescriptive models include: 1) THE WATERFALL MODEL: This model is proposed by Winston Royce. It is also called as classic life cycle. It is the oldest paradigm (model) in Software Engineering. It suggests a systematic, sequential approach to software development that begins with customer specification of requirements and progresses through planning, then with Modeling, construction and deployment. Fig : Waterfall Model.
The framework activities of the Waterfall model include:
1. Communication: It involves heavy communication and collaboration with customer and other stakeholders. It encompasses requirements gathering and related activities. 2. Planning: It plans for Software Engineering work that follows. It describes technical tasks to be conducted, resources that will be required, likely risks, work products to be produced and a work schedule. 3. Modeling: This activity focuses on creation of models that allow stakeholders (customer, developer) to better under software requirements and design that will achieve requirements. 4. Construction: It combines code generation and testing to uncover errors in the code. (Manual, automated actions). 5. Development: The software (completed/partial increment) is delivered to the customer for evaluation and feedback of it. Problems: Real projects rarely follow the sequential flow. It’s often difficult for customer to state all requirements explicitly. Working version of program(s) will not be available until late in project time-span. So, customer must have patience. A variation in the representation of the waterfall model is called the V-model. The V-model depicts the relationship of quality assurance actions to the actions associated with communication, modeling, and early construction activities. As software team moves down the left side of the V, basic problem requirements are refined into progressively more detailed and technical representations of the problem and its solution. Once code has been generated, the team moves up the right side of the V, essentially performing a series of tests (quality assurance actions) that validate each of the models created as the team moved down the left side. In reality, there is no fundamental difference between the classic life cycle and the V-model. The V-model provides a way of visualizing how verification and validation actions are applied to earlier engineering work. Fig: The V – Model
3. Modeling: This activity focuses on creation of models that allow stakeholders (customer, developer) to better under software requirements and design that will achieve requirements. 4. Construction: It combines code generation and testing to uncover errors in the code. 5. Development: The software (completed/partial increment) is delivered to the customer for evaluation and feedback of it. Fig: RAD Process model. Advantages: Project with 2-3 months deadline opt for RAD. Task is divided among teams to fasten development process. Disadvantages: Large projects using RAD may not work. If high performance is an issue, RAD may not work. RAD may not be appropriate when technical risks are high.
These models are specially designed to accommodate a product that evolves over time. These are iterative and enable software engineers to develop more complete software versions. 1) PROTOTYPING: Prototyping model is used when customer defines a set of objectives, but does not identify detailed input, processing output requirements, developer is unsure of efficiency of algorithm, adaptability of operating system etc, where phased model is inappropriate. Prototyping model can be used as a standalone process model. Prototyping paradigm assists the software engineer and customer to better understand what is to be built when requirements are fuzzy. Prototype helps to identify software requirements. Prototyping paradigm begins with communication, then quickly planning the prototyping iteration, modeling quick design, construction of prototype, and the prototype is deployed and then evaluated by the customer/user. Feedback is used to refine requirements for the software. Prototype can serve as “the first system”, where users get a feel of actual system and developers get to build something immediately.
Fig: Prototyping Model Prototyping can be problematic for following reasons: Developers may not consider overall software quality. (Few “fixes” are applied to satisfy customer). The developer often compromises in the implementation to get a prototype working quickly. The key is to define the rules of the game at the beginning; i.e., customer and developer must both agree that prototype is built to serve as a mechanism for defining requirements. 2) THE SPIRAL MODEL: The Spiral model is proposed by “Boehm”. This model was developed to encompass the best features of waterfall model and prototyping. It is a risk-driven process model with the risk analysis feature. Features:
All activities (communication/modeling/construction etc) exist concurrently but reside in different states. State is an externally observable mode of behavior). For example, early in a project, the communication activity has completed its first iteration and exists in the awaiting changes state. Modeling activity which was in none state will now move to under development state. This model defines a series of events which will trigger transition from state to state for each of Software Engineering activities, actions/tasks. Advantages: Applicable to all types of software development, provides accurate picture of current state of a project. The software engineering activities, tasks and actions are defined as a network of activities, rather than sequence of events. Evolutionary Models Drawbacks: Prototyping poses a problem to project planning because of uncertain number of cycles required to construct product. Do not establish maximum speed of evolution. May not give flexibility and extensibility for the software process.
These models are used when a narrowly defined Software Engineering approach is chosen.
1. COMPONENT-BASED DEVELOPMENT: Commercial Off-The-Shelf (COTS) software components are used when software is to be build. These components provide targeted functionality so that component to be integrated into the software. It incorporates many characters of the spiral model. It is evolutionary in nature, composes applications from pre-packaged (COTS) software components. Steps:
3. ASPECT-ORIENTED SOFTWARE DEVELOPMENT (AOSD): As modern computer based systems become more sophisticated and complex, some concerns (security, fault tolerance, memory management etc) span the entire architecture. When concern cut across multiple system functions, features and information, they are referred as crosscutting concerns. Aspectual Requirements define those crosscutting concerns that have impact across the software architecture. AOSD, often referred to as Aspect-Oriented Programming (AOP), is a relatively new software engineering paradigm which provides a process for defining, specifying, designing and constructing aspects (crosscutting concerns). Presently there is no distinct Aspect-Oriented Process. If such an approach is developed, then it must integrate the characteristics of both spiral and concurrent model, because of their evolutionary and parallel natures respectively.
Unified Process refers to a methodology of extracting the most essential activities of conventional software development phases (communication, planning, Modeling, construction and deployment) and characterizing them, so that they can be applied in the Agile (highly valued) software development. History: Jacobson, Rumbaugh and Greedy Booch developed the Unified Process, a framework for Object- Oriented Software Engineering using UML. Today, Unified Process and UML are used on Object- Oriented projects of all kinds. The iterative, incremental model proposed by the Unified Process can and should be adapted to meet specific project needs. Phases of the Unified Process:
1. Inception Phase: The Inception Phase encompasses both customer communication and planning activities. By collaborating with customer and end-users, business requirements are identified and described through a set of use cases [sequence of actions that are performed by an actor (Ex: A person, machine, and another system). As actor interacts with the software, use cases provide project scope. The Inception Phase must: i. Produce a business case. ii. Identify business requirements, business and process risks. iii. Give overall vision for the project, as the outputs result in various documents/work products. Work Products: 1) Vision Documents 5) Initial Risk Assessment 2) Initial use-case model 6) Project Plan [Phases and Interaction] 3) Initial Project Glossary 7) Business Model (if necessary) 4) Initial Business case 8) One or more Prototypes 2. Elaboration Phase: The Elaboration Phase encompasses planning and Modeling activities. This phase refines and expands preliminary use-cases that were developed in inception phase. The Elaboration Phase expands the architectural representation to five views: 1) Use case Model, 2) Analysis Model, 3) Design Model, 4) Implementation Model, 5) Deployment Model. Elaboration Phase creates an “executable architectural baseline” that represents “first cut” executable system-prototype. Architectural baseline provides viability of the project but not all features and functions required to use the system. Modifications to the plan may be made at this time.
4. Transition Phase: The Transition Phase encompasses latter stages of construction and first part of deployment activities. Software is given to end-users for beta testing and user feedback about both defects and necessary changes. Software team creates necessary support information (Ex: user manuals, installation procedures) required for release. Work Products:
Q: How do we create a process that can manage unpredictability? Ans: Agile process must be adaptable, to have process adaptability. An agile software process must adapt incrementally. Customer feedback will make the process effective. Software increments must be delivered in short time periods, so that adaption keeps pace with change (unpredictability). Human Factors: Agile development focuses on the talents and skills of individuals, modeling the process to specific people and teams. Traits that must exist among people of Agile Team:
1. Competence: It encompasses innate talent, specific software knowledge of the process which the team applies. Skill and knowledge of process should be taught to all agile team members. 2. Common Focus: Although, Agile team members perform different tasks and bring different skills to be project, all should be focused on one goal-to deliver a working software increment to the customer within the time promised. 3. Collaboration: Team members must collaborate with one another, with customer and with business managers, as Software Engineering is 1) Assessing, analysing, using information that is communicated to software team. 2) Creating information that will help customer. 3) Building information (DBs) that provides business value for customer. 4. Decision Making Ability: Agile team is given autonomy decision making authority for both technical and project issues. 5. Fuzzy Problem-Solving Ability: Agile team will continually have to deal with ambiguity and changes. Lesson learned any problem solving activity benefits the team later in the project. 6. Mutual Trust and Respect: Agile team should be a “Jelled” team. Jelled team exhibits the trust and respect requirement for the project. 7. Self-Organisation : It implies 3 things: a) Agile team organises itself for the work to be done. b) Agile team organises the process to best accommodate its environment. c) Agile team organises the work schedule to achieve project delivery.
1) EXTREME PROGRAMMING (XP): XP uses Object-Oriented approach for development. The four Framework activities are: Planning, Design, Coding and Testing.
1. Planning: Planning begins with creation of a set of stories that describe required features and functionality for software to be built. Each story is written by customer and is placed on an index card. Customer assigns a value (priority) to it based on business value of it. XP team members then assess each story and assign a cost measured in development weeks to it. If the story will require more than 3 development weeks, customer is asked to split it into smaller stories, assignment of value and cost will occur again. Once a basic commitment (agreement on stories to be included, delivery date and other project matters) is made for a release, XP team orders stories that will be developed in one of three ways: 1. All stories will be implemented immediately. 2. Stories with highest value will be implemented first. 3. Riskiest stories will be moved up in schedule and implemented first.
As pair programmers complete their work, their code is integrated within the work of others. This “Continuous Integration” helps to avoid compatibility and interfacing problem and provides a “smoking testing/ smoke testing” environment that helps to uncover errors early.
4. Testing: The unit tests that are created should be implemented easily and repeatedly. This encourages a Regression Testing strategy whenever code is modified. Regression Testing is the re-execution of same subset of tests that have already been conducted to ensure that changes have not propagated unintended side effects. Integration and validation testing can occur on a daily basis. XP acceptance tests, also called customer tests are specified by the customer and focus on overall system features and functionality. 2) ADAPTIVE SOFTWARE DEVELOPMENT (ASD): This model was proposed by Jim HighSmith. This is the best technique for building complex software and systems. ASD focus on human collaboration and self-organization. ASD life cycle has 3 phases: 1. Speculation: Project is initiated and adaptive cycle planning is conducted. Adaptive cycle planning uses customer is mission statement, project constraints (delivery dates etc) and basic requirements to define set of release cycle in the project. 2. Collaboration: Motivation of people to work together in a way that multiples their talent and creative output. Collaboration is not easy, as it is not just communication. It is a matter of trust. People working together must trust one another to: a. Criticize without animosity (strong dislike) b. Assist without resentment (feeling of displeasure) c. Work as harder as they do d. Have the skill set to contribute to the work at hand e. Communication problems (concerns in a way that leads to effective action). Fig: Adaptive Software Development
3. Learning: Software development may often over estimate their own understanding and learning will help them to improve their level of real understanding. ASD teams learn in 3 ways: a) Focus Groups: The customer lends users provide feedback on software increments that are being delivered. This provides direct indication of whether the product is satisfying business needs or not. b) Formal Technical Reviews (FTRS): ASD team members review the software components that are developed, improving quality and learning as they proceed. c) Post-mortems: ASD team becomes introspective (self thinking) addressing its performance and process. (With the intent of learning and then improving its approach). 3) DYNAMIC SYSTEMS DEVELOPMENT METHOD (DSDM): This approach “provides a framework for building and maintaining systems which meet tight time constraints through the use of incremental prototyping in a controlled project environment”. Ex: 80% of an application can be delivered in 20% of time it takes to deliver complete application. Like XP, ASD, DSDM also suggests an iterative software process. DSDM approach to each iteration follows 80% rule, where much of the detail can be completed when more business requirement/changes are known. DSDM Consortium is worldwide group of member companies, which uses DSDM approach. DSDM lifecycle defines 3 different iterative cycles, preceded by 2 additional life cycle activities.