Pearson Education 2007 Chapter 9 (RASD 3/e)

Similar documents
Chapter 9 Quality and Change Management

Pearson Education 2005 Chapter 9 (Maciaszek - RASD 2/e) 2

Software Testing Interview Question and Answer

Software Engineering Fall 2015 (CSC 4350/6350) TR. 5:30 pm 7:15 pm. Rao Casturi 11/10/2015

Software Engineering Fall 2014

1 Visible deviation from the specification or expected behavior for end-user is called: a) an error b) a fault c) a failure d) a defect e) a mistake

Software Engineering (CSC 4350/6350) Rao Casturi

Topics. From UI prototype... About user interfaces. ... via design to implementation. Pearson Education 2005 Chapter 7 (Maciaszek - RASD 2/e) 6

Pearson Education 2005 Chapter 7 (Maciaszek - RASD 2/e) 2

Manual Testing. Software Development Life Cycle. Verification. Mobile Testing

Software Testing. Software Testing

Chapter 10. Testing and Quality Assurance

Lecture 15 Software Testing

Chapter 8 Software Testing. Chapter 8 Software testing

INTRODUCTION TO SOFTWARE ENGINEERING

Learning outcomes. Systems Engineering. Debugging Process. Debugging Process. Review

Lecture 20: SW Testing Presented by: Mohammad El-Ramly, PhD

Verification and Validation. Assuring that a software system meets a user s needs. Verification vs Validation. The V & V Process

Pearson Education 2007 Chapter 7 (RASD 3/e)

Why testing and analysis. Software Testing. A framework for software testing. Outline. Software Qualities. Dependability Properties

Sample Exam Syllabus

SOFTWARE ENGINEERING SOFTWARE VERIFICATION AND VALIDATION. Saulius Ragaišis.

Three General Principles of QA. COMP 4004 Fall Notes Adapted from Dr. A. Williams

Bridge Course On Software Testing

Manuel Oriol, CHCRC-C, Software Testing ABB

Examining the Code. [Reading assignment: Chapter 6, pp ]

10. Software Testing Fundamental Concepts

UNIT-2 Levels of Testing

Software Quality Assurance. David Janzen

Chapter 9. Software Testing

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS SOFTWARE ENGINEERING

Terminology. There are many different types of errors and different ways how we can deal with them.

(Complete Package) We are ready to serve Latest Testing Trends, Are you ready to learn? New Batches Info

Integration and Testing. Uses slides from Lethbridge & Laganiere, 2001

Software Testing. Software Testing. in the textbook. Chapter 8. Verification and Validation. Verification and Validation: Goals

Chap 2. Introduction to Software Testing

Facts About Testing. Cost/benefit. Reveal faults. Bottom-up. Testing takes more than 50% of the total cost of software development

Overview. State-of-the-Art. Relative cost of error correction. CS 619 Introduction to OO Design and Development. Testing.

Certified Tester Foundation Level(CTFL)

Software Engineering 2 A practical course in software engineering. Ekkart Kindler

Types of Software Testing: Different Testing Types with Details

People tell me that testing is

Advanced Software Engineering: Software Testing

Software Testing. Testing: Our Experiences

Sample Exam ISTQB Advanced Test Analyst Answer Rationale. Prepared By

Sample Exam. Advanced Test Automation - Engineer

Software Testing CS 408

Software Testing and Maintenance

Chapter 11, Testing. Using UML, Patterns, and Java. Object-Oriented Software Engineering

Testing Theory. Agenda - What will you learn today? A Software Life-cycle Model Which part will we talk about today? Theory Lecture Plan

Topics in Software Testing

Quote by Bruce Sterling, from: A Software Testing Primer, Nick Jenkins

Part 5. Verification and Validation

CS 424 Software Quality Assurance & Testing LECTURE 3 BASIC CONCEPTS OF SOFTWARE TESTING - I

Verification and Validation. Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 1

Diploma in Software Testing (DST)

Diploma in Software Testing 2.0 (HP)

Aerospace Software Engineering

COPYRIGHTED MATERIAL. Index

Software Testing Strategies. Slides copyright 1996, 2001, 2005, 2009, 2014 by Roger S. Pressman. For non-profit educational use only

Feasibility of Testing to Code. Feasibility of Testing to Code. Feasibility of Testing to Code. Feasibility of Testing to Code (contd)

Cursul Aprilie

Certified Software Quality Engineer Preparation On Demand, Web-Based Course Offered by The Westfall Team

Quality Assurance = Testing? SOFTWARE QUALITY ASSURANCE. Meaning of Quality. How would you define software quality? Common Measures.

VETRI VINAYAHA COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

Test Automation. Fundamentals. Mikó Szilárd

Topics. GUI design multidisciplinary. Chapter 7 User Interface Design. (c) Addison Wesley Chapter 7 3

Chapter 11, Testing, Part 2: Integration and System Testing

MIS Week 9 Host Hardening

In this Lecture you will Learn: Testing in Software Development Process. What is Software Testing. Static Testing vs.

Question 1: What is a code walk-through, and how is it performed?

Mind Q Systems Private Limited

Business Requirements Document (BRD) Template

Verification and Validation

Department of Electrical & Computer Engineering, University of Calgary. B.H. Far

Darshan Institute of Engineering & Technology for Diploma Studies

Security Engineering for Software

QA Best Practices: A training that cultivates skills for delivering quality systems

TMap Suite Test Engineer

Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 22 Slide 1

MTAT : Software Testing

(c) Addison Wesley Chapter 3. ! Interviewing customers and domain experts. ! Questionnaires. ! Observation. ! Study of documents and software systems

Defect Based Approach using Defect Taxonomy. Chhavi Raj Dosaj

Module 1 : Fundamentals of Testing. Section 1: Manual Testing

Comparison Study of Software Testing Methods and Levels- A Review

Examination Questions Time allowed: 1 hour 15 minutes

It is primarily checking of the code and/or manually reviewing the code or document to find errors This type of testing can be used by the developer

QUIZ #5 - Solutions (5pts each)

SOFTWARE ENGINEERING IT 0301 Semester V B.Nithya,G.Lakshmi Priya Asst Professor SRM University, Kattankulathur

Software Testing part II (white box) Lecturer: Giuseppe Santucci

Digitized Engineering Notebook

Adopting Agile Practices

Write perfect C code to solve the three problems below.

SDLC Maturity Models

TEST AUTOMATION EFFORT ESTIMATION - Lesson Learnt & Recommendations. Babu Narayanan

Integrity 10. Curriculum Guide

Utilizing Fast Testing to Transform Java Development into an Agile, Quick Release, Low Risk Process

1. Introduction and overview

Chapter 11, Testing, Part 2: Integration and System Testing

Software Testing. Lecturer: Sebastian Coope Ashton Building, Room G.18

Transcription:

MACIASZEK, L.A. (2007): Requirements Analysis and System Design, 3 rd ed. Addison Wesley, Harlow England ISBN 978-0-321-44036-5 Chapter 9 Quality and Change Management Pearson Education Limited 2007 Topics Quality management Quality assurance Quality control Change management Change requests Traceability Chapter 9 (Maciaszek - RASD 3/e) 2 MACIASZEK (2007): Req Analysis & Syst Design 1

1. Quality management Quality management is part of an overall software process management, along such other activities as people, risk and change management. Quality management divides into quality assurance and quality control. Main concepts Testing is not just the debugging of programs it is part of quality management: Quality assurance is about proactive ways of building quality into a software system Quality control is about (mostly reactive) ways of testing the quality of a software system Test driven development builds quality into a software system by an outright demand that a test code has to be written before the application code and that the application must pass the test to be quality assured Change management is a fundamental aspect of the overall project management Traceability underlies testing and change management Chapter 9 (Maciaszek - RASD 3/e) 4 MACIASZEK (2007): Req Analysis & Syst Design 2

Quality management Part of an overall software process management along with: people management, risk management and change management. To be performed in parallel with and in addition to project management (scheduling, budget estimation, tracking project progress). should have its own budget and schedule one of its tasks should be to ensure quality in project management per se the actions and outcomes of quality and change management may involve changes to the project schedule and budget baselines, also known as the performance measurement baselines Chapter 9 (Maciaszek - RASD 3/e) 5 Software qualities correctness reliability robustness performance usability understandability maintainability (repair ability) scalability (evolvability) reusability portability interoperability productivity timeliness visibility Chapter 9 (Maciaszek - RASD 3/e) 6 MACIASZEK (2007): Req Analysis & Syst Design 3

Quality assurance Software Quality Assurance (SQA) team Techniques: Checklists Reviews Walkthroughs Inspections Audits Chapter 9 (Maciaszek - RASD 3/e) 7 Checklists A predefined list of to-do points that need to be scrupulously checked off in the development process. Processes differ from project to project checklists cannot be fixed for ever Also, the baseline checklists need to be modified to account for new IT technologies and changes in IT development paradigms. Chapter 9 (Maciaszek - RASD 3/e) 8 MACIASZEK (2007): Req Analysis & Syst Design 4

Walkthroughs A type of formal brainstorm review that can be conducted in any development phase A friendly meeting of developers, carefully planned and with clear objectives, an agenda, duration, and membership A few days prior to the meeting, the participants are handed the materials to be reviewed During the meeting the problems need to be pinpointed but no solutions attempted Acknowledged problems are entered on a walkthrough issues list The list is used by the developer to make corrections to the reviewed software product or process A follow-up walkthrough may be necessary Chapter 9 (Maciaszek - RASD 3/e) 9 Inspections Like the walkthrough, an inspection is a friendly meeting but done under close supervision by the project management The purpose is also to identify defects, validate that they are in fact defects, record them, and schedule when and by whom they have to be fixed Unlike the walkthroughs, inspections are conducted less frequently, may target only selected and critical issues, and are more formal and more rigorous An informational meeting usually takes place one week before the inspection meeting During the meeting, the defects are identified, recorded and numbered Immediately after the meeting, the moderator prepares the defect log recorded in a change management tool The developer is normally requested to resolve the defects quickly and record the resolution in the change management tool The moderator in consultation with the project manager submits the development module to the Software Quality Assurance (SQA) group in the organization. Chapter 9 (Maciaszek - RASD 3/e) 10 MACIASZEK (2007): Req Analysis & Syst Design 5

Audits A quality assurance process that is modeled on and similar in required resources to traditional accounting audits. Positioned within the overall software process management: It places risk management in its view. It relates to the strategic importance of IT to the enterprise and addresses IT governance. It looks at the alignment of the audited project with IT investments in the context of the enterprise mission and business objectives. Differences between an audit and other QA techniques: the producer of the audited product or process is usually a team, not a person, an audit can be performed without the presence of the producer, audits make extensive use of checklists and interview and less so of reviews, audits can be external, i.e. conducted by auditors external to the organization, an audit can last from a day to a week or more (but is always restricted to strictly defined scope and objectives). Chapter 9 (Maciaszek - RASD 3/e) 11 Test driven development The idea is to write test cases and scripts as well as test programs before the application code (the unit under test) is developed (designed and programmed) application code is written as a response to a test code and the test code can be used to test the application code as soon as it is available Advantages allows to clarify user requirements (and the use case specifications) before the programmer writes the first line of the application code drives in fact the software development, not just the software verification supported by testing frameworks, such as JUnit Chapter 9 (Maciaszek - RASD 3/e) 12 MACIASZEK (2007): Req Analysis & Syst Design 6

JUnit testing public class XXXTest extends TestCase { public XXXTest(String testname) { super(testname); } public void testsomething() {... } public void testsomethingelse() {... } public void runtest() { testsomething(); testsomethingelse(); } } TestCase run(testresult) runtest() setup() teardown() Test run(testresult) TestSuite run(testresult) addtest(test) XXXTest TestResult Chapter 9 (Maciaszek - RASD 3/e) 13 Testing types and development phases Programming Design specifications Analysis specifications System constraints Customer requirements User environment Reusable components Unit test Integration test Functional test Constraint test Acceptance test Installation test Unit test Performance, Security, Scalabilty, etc. System deployed Chapter 9 (Maciaszek - RASD 3/e) 14 MACIASZEK (2007): Req Analysis & Syst Design 7

Test concepts Business Use Case Document Feature 1 Feature 2 Use Case Documents Use Case Req 1 Use Case Req 2 Enhancements Document Enhancement 1 Enhancement 2 Test Plan Document Test Case 1 Test Case 2 Test Case Documents Test Req 1 Test Req 2 Defects Document Defect 1 Defect 2 Chapter 9 (Maciaszek - RASD 3/e) 15 Test case document Chapter 9 (Maciaszek - RASD 3/e) 16 MACIASZEK (2007): Req Analysis & Syst Design 8

Test environment Chapter 9 (Maciaszek - RASD 3/e) 17 Testing system services Informal testing Methodical testing Non-execution-based (formal reviews) Walkthroughs Inspections Execution-based Testing to specs Testing to code Chapter 9 (Maciaszek - RASD 3/e) 18 MACIASZEK (2007): Req Analysis & Syst Design 9

Testing to specs Execution-based test type applies to executable software products, not to documents or models also known as black-box box testing functional testing input/output driven testing Test module treated as a black box that takes some input and produces some output (no need to understand the program logic or computational algorithms) Requires that the test requirements are derived from the use case requirements, and then identified and documented in a separate test plan and test case documents Test scenarios can be recorded in a capture-playback tool and used repeatedly for regression testing Likely to discover defects normally difficult to catch by other means, such as missing functionality Chapter 9 (Maciaszek - RASD 3/e) 19 Testing to specs Input set I e Inputs causing anomalous behavior Test Unit (as black box) Output set O e Outputs which reveal the presence of defects [1735] Chapter 9 (Maciaszek - RASD 3/e) 20 MACIASZEK (2007): Req Analysis & Syst Design 10

Feasibility of testing to specs Example 1: Consider price calculation based on two factors: 5 types of commission and 7 types of discount 35 test cases Example 2: Consider 20 factors, each taking on 4 values 4 20 or 1.1 10 12 test cases Conclusion: [1816] Combinatorial explosion Chapter 9 (Maciaszek - RASD 3/e) 21 Testing to code Execution-based testing Also known as white-box testing glass-box testing logic-driven testing path-oriented testing Starts with the careful analysis of the program s algorithms Test cases are derived to exercise the code i.e. to guarantee that all possible execution paths in the program are verified the test data are specially contrived to exercise the code Can be supported by the capture-playback tools and used then for regression testing playback scripts need to be written by the programmer rather than generated by the tool Like all other forms of execution-based testing, testing to code cannot be exhaustive Chapter 9 (Maciaszek - RASD 3/e) 22 MACIASZEK (2007): Req Analysis & Syst Design 11

Testing to code Test inputs Derives Test Test Unit as white box Test outputs [1735] Chapter 9 (Maciaszek - RASD 3/e) 23 Feasibility of testing to code Combinatorial explosion loop <= 18 times [1816] It is possible to test every path without detecting every fault. A path can be tested only if it is present. Weakening white-box testing: exercising both, and only, the true branch and the false branch of all conditional statements execute every statement ( and that s it) Chapter 9 (Maciaszek - RASD 3/e) 24 MACIASZEK (2007): Req Analysis & Syst Design 12

Techniques of testing to specs [1816] Equivalence testing suppose the range 1 through 16,000 is an equivalence class test cases: less than 1 (error message) from 1 through 16,000 (correct) more than 16,000 (error message) Boundary value analysis: 0 1 2 723 15,999 16,000 16,001 Chapter 9 (Maciaszek - RASD 3/e) 25 Techniques of testing to code Structural testing: statement coverage branch coverage path coverage all-definition-use-path coverage Complexity metrics: [1816] lines of code cyclomatic complexity Chapter 9 (Maciaszek - RASD 3/e) 26 MACIASZEK (2007): Req Analysis & Syst Design 13

Approaches to integration testing [2110] Bottom-up testing requires drivers (routines that call a particular component and pass a test case to it) Top-down testing requires stubs (routines to simulate the activity of the missing component; they answer the calling sequence and pass back output data that lets the testing process continue) Big-bang integration Sandwich integration Chapter 9 (Maciaszek - RASD 3/e) 27 Testing system constraints Predominantly execution-based Includes such issues as: user interface testing database testing authorization testing performance testing stress testing failover testing configuration testing installation testing Chapter 9 (Maciaszek - RASD 3/e) 28 MACIASZEK (2007): Req Analysis & Syst Design 14

Graphical user interface testing Is the window modal or modeless? Which should it be? Is a visual distinction made between the required and optional fields? Are any fields missing? Are there any spelling mistakes in titles, labels, prompt names, etc.? Are command buttons (OK, Cancel, Save, Clear, etc.) used consistently across all dialog boxes? Is it possible always to abort the current operation (including the delete operation)? Are all static fields protected from editing by users? If the application can change the static text, is this being done correctly? Do the sizes of edit boxes correspond to ranges of values that they take? Are the values entered into edit boxes validated by the client program? Are the values in drop-down lists populated correctly from the database? Are edit masks used in entry fields as specified?... Chapter 9 (Maciaszek - RASD 3/e) 29 Database testing Verify that the transaction executes as expected with correct input. Is the system s feedback to the UI correct? Is the database content correct after the transaction? Verify that the transaction executes as expected with incorrect input. Is the system s feedback to the UI correct? Is the database content correct after the transaction? Abort the transaction before it finishes. Is the system s feedback to the UI correct? Is the database content correct after the transaction? Run the same transaction concurrently in many processes. Deliberately make one transaction hold a lock on a data resource needed by other transactions. Are the users getting understandable explanations from the system? Is the database content correct after the transactions have terminated? Extract every client SQL statement from the client program and execute it interactively on the database. Are the results as expected and the same as when the SQL is executed from the program?... Chapter 9 (Maciaszek - RASD 3/e) 30 MACIASZEK (2007): Req Analysis & Syst Design 15

Authorization testing The user interface of the program should be able to configure itself dynamically to correspond to the authorization level of the current user (authenticated by the user id and password) Server permissions (privileges): to access individual server objects (tables, views, columns, stored procedures, etc.) to execute SQL statements (select, update, insert, delete, etc.) Permissions for a user may be assigned at a user level or at a group level Most DBMSs support also the role level An authorization database may need to be set up alongside the application database to store and manipulate the client and server permissions Chapter 9 (Maciaszek - RASD 3/e) 31 Testing of other constraints performance testing transaction speed and throughput peak loads stress testing to break the system when abnormal demands are placed on it frequently coupled with performance testing failover testing system s response to a variety of hardware, network or software malfunctions closely related to the DBMS recovery procedures configuration testing how the system operates on various software and hardware configurations. installation testing extends the configuration testing verifies that the system operates properly on every platform installed Chapter 9 (Maciaszek - RASD 3/e) 32 MACIASZEK (2007): Req Analysis & Syst Design 16

Review Quiz 9.1 1. Which technique of quality assurance is also known as non-execution-based testing? 2. Which quality assurance technique produces a defect log to act on? 3. What is a popular testing framework for Java applications? 4. How are test cases realized (specified)? 5. Which kind of testing can discover missing functionality? Chapter 9 (Maciaszek - RASD 3/e) 33 2. Change management Change management is the underlying aspect of overall project management. Change requests must be documented and the impact of each change on development artifacts tracked and retested after the change has been realized. MACIASZEK (2007): Req Analysis & Syst Design 17

Change and quality management Change Requests Change Management Use Case Requirements Model Artifacts Enhancements Test Requirements Defects Quality management Chapter 9 (Maciaszek - RASD 3/e) 35 Managing change Workspace browser with predefined queries, charts and reports List of defects Details of selected defect Possible actions (state changes) Chapter 9 (Maciaszek - RASD 3/e) 36 MACIASZEK (2007): Req Analysis & Syst Design 18

Submitting change request Chapter 9 (Maciaszek - RASD 3/e) 37 Defect management Allowed actions for submitted defect Chapter 9 (Maciaszek - RASD 3/e) 38 MACIASZEK (2007): Req Analysis & Syst Design 19

Keeping track of change requests Chapter 9 (Maciaszek - RASD 3/e) 39 Traceability There is a significant cost to the project associated with the traceability, testing and change management the cost-benefit analysis should determine the scope and depth of project traceability as a minimum, the traceability should be maintained between the use case requirements and defects What can be traced? Features are linked to test cases and to use case requirements in the use case documents Test requirements in the test case documents can be traced back to test cases and use case requirements Test requirements are linked to defects and enhancements are traced to use case requirements Chapter 9 (Maciaszek - RASD 3/e) 40 MACIASZEK (2007): Req Analysis & Syst Design 20

System features to use cases and use case requirements Chapter 9 (Maciaszek - RASD 3/e) 41 Test plans to test cases and test requirements Chapter 9 (Maciaszek - RASD 3/e) 42 MACIASZEK (2007): Req Analysis & Syst Design 21

UML diagrams to documents Chapter 9 (Maciaszek - RASD 3/e) 43 UML diagrams to requirements Chapter 9 (Maciaszek - RASD 3/e) 44 MACIASZEK (2007): Req Analysis & Syst Design 22

Use case requirements to test requirements Chapter 9 (Maciaszek - RASD 3/e) 45 Test requirements to defects Chapter 9 (Maciaszek - RASD 3/e) 46 MACIASZEK (2007): Req Analysis & Syst Design 23

Use case requirements to enhancements Chapter 9 (Maciaszek - RASD 3/e) 47 Review Quiz 9.2 1. How does an activity of managing a change originate? 2. What technique is used to determine the scope and depth of project traceability? 3. What tools can automate test scripts? Chapter 9 (Maciaszek - RASD 3/e) 48 MACIASZEK (2007): Req Analysis & Syst Design 24

Summary Testing and change management span the development lifecycle Testing has two dimensions It is a reactive (post factum) activity when used as a quality control mechanism It can, however, be a very proactive quality assurance activity when used within the framework of the test driven development Testing and change management assume that the traceability links between system artifacts exist and have been properly maintained during the development Testing divides into the testing of system services and the testing of system constraints Test requirements are identified in the test case documents and linked to the use case requirements in the use case documents A change request is normally either a defect or an enhancement Chapter 9 (Maciaszek - RASD 3/e) 49 MACIASZEK (2007): Req Analysis & Syst Design 25