Testing and Cost / Benefit Tor Stålhane. Why cost / benefit – 1 For most “real” software systems, the number of possible inputs is large. Thus, we can.

Slides:



Advertisements
Similar presentations
Grey Box testing Tor Stålhane. What is Grey Box testing Grey Box testing is testing done with limited knowledge of the internal of the system. Grey Box.
Advertisements

Hawawini & VialletChapter 7© 2007 Thomson South-Western Chapter 7 ALTERNATIVES TO THE NET PRESENT VALUE RULE.
Capital Budgeting & Investment Analysis Decisions on acquisition of property, plant & equipment are called capital budgeting decisions. They differ from.
P.V. VISWANATH FOR A FIRST COURSE IN FINANCE 1. 2 Decision Criteria NPV The Payback Rule Accounting Rate of Return IRR Mutually Exclusive Projects The.
Issues in Capital Budgeting II
Unit V Costs and Marginal Analysis (Chapter 9). In this chapter, look for the answers to these questions:  Why are implicit as well as explicit costs.
Principles of Marketing Lecture-40. Summary of Lecture-39.
ECO 230 Principles of Economics I: Microeconomics Chapter I J.F. O’Connor 1/19/05.
Statistical Techniques I EXST7005 Lets go Power and Types of Errors.
4. Project Investment Decision-Making
Copyright, 1996 © Dale Carnegie & Associates, Inc. MAP YOUR FINANCIAL FUTURE MINI-LESSON INDIANA DEPARTMENT OF FINANCIAL INSTITUTIONS CONSUMER EDUCATION.
P.V. VISWANATH FOR A FIRST COURSE IN FINANCE 1. 2 Decision Criteria NPV IRR The Payback Rule EVA Mutually Exclusive Projects The case of multiple IRRs.
1 Participative Assessment in the Online Environment Kevin R. Duffy, M.A.Ed. School of Emergency Services.
Spending, Saving, & Investment UNIT 8: PERSONAL FINANCE (1)
Interest Rates and Rates of Return
Investment, the Capital Market, and the Wealth of Nations
CHAPTER 5 SUPPLY.
Regression testing Tor Stållhane. What is regression testing – 1 Regression testing is testing done to check that a system update does not re- introduce.
How a home loan becomes a security?. Firstly, I choose a house that I would like to buy. Than go to the saving Banks.
Lim Sei cK.  Often the hardest part of starting a business is raising the money to get going.  The entrepreneur might have a great idea and clear.
A Limited Company A Business owned by shareholders who each give the business money in exchange for Shares It is run by directors (who may also be shareholders)
Ch 29: Interest, Rent, and Profit Del Mar College John Daly ©2003 South-Western Publishing, A Division of Thomson Learning.
Lesson 10-2 Principles of Saving and Investing LEARNING GOALS: -DISCUSS THE CONCEPT OF RISK VERSUS RETURN. -LIST AND EXPLAIN THE TYPES OF RISK THAT ARE.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 17 Slide 1 Extreme Programming.
Test coverage Tor Stålhane. What is test coverage Let c denote the unit type that is considered – e.g. requirements or statements. We then have C c =
Advantages and disadvantages for the affiliate marketing Done by : Abdallah Abu Afash Mahmoud basal For : Rasha Atallah.
THE ENGINE THAT RUNS THE ECONOMY
Becoming an Entrepreneur.
Supply Chapter 5.
Chapter 17, Lesson 2.  Making a trade-off is giving up one alternative good or service for another.  If you choose to buy one thing, you may not be.
Systems Development Lifecycle Project Identification & Selection Project Initiation & Planning Analysis Logical Design Physical Design Implementation Maintenance.
Working Capital Management n Working Capital refers to a company’s Current Assets n Current Assets: Cash and Equivalents, Accounts Receivable, and Inventory.
Organisational System By Mark Kelly vceit.com Version 2 Goals Objectives.
Sports and Entertainment Marketing © Thomson/South-Western Do Now Define marketing. What is the most important aspect of marketing? Chapter 4 Slide 1 What.
Entrepreneurship & Small Business Management 10/2/
Project Selection Models. Project Selection Project selection is the process of evaluating individual projects or groups of projects, and then choosing.
Economics Chapter 5: Supply Economics Chapter 5: Supply Supply is the amount of a product that would be offered for sale at all possible prices in the.
Using error reports in SPI Tor Stålhane IDI / NTNU.
MGS Group D. TO THE OUTSOURCE VENDOR *Take of control *Obtain expertise *Deliver error free services TO THE ORGANIZATION *Avoid management problems.
Input Demand: The Capital Market and the Investment Decision
Economics BasicsChoices Part 1Choices Part 2Incentives Trade & Markets
THE BASICS OF MARKETING
1. 2 Traditional Income Statement LO1: Prepare a contribution margin income statement.
2.5 MOTIVATION AND REWARDS Department of Economics and Business BIS.
Ch 10 - Risk Management Learning Objectives You should be able to: List and describe risk management processes, inputs, outputs, and tools List and describe.
McGraw-Hill © 2000 The McGraw-Hill Companies 1 S M Custom Research, Inc.
HOW COMPETITION AFFECTS THE MARKET. Competition and the market Very competitive markets puts businesses under pressure – it means they have to encourage.
Economics 101 – Section 5 Lecture #17 – March 23, 2004 Chapter 7 -The Firms long-run decisions -The Principal-Agent problem Chapter 8 - Perfect Competition.
Business Studies Find your chair: Look at the picture what does this mean to you? Be prepared to answer if called upon: This does not require any verbal.
The Engine That Runs The Economy.  A consumer is anyone who buys or uses products  Consumer Economics is the study of the role consumers play in an.
Visions and Ventures. You can:  be your own boss.  do the kind of work you enjoy.  set your own working hours.  set up your office or workshop the.
The Invest and Earn Problem Problems of this type have one or more initial negative cash flows - followed by positive cash flows to the end of the project.
Statistical Techniques
Consumers – The Engine That Runs the Economy Personal Finance Chapter 1.
Spending, Saving, and Investing. Rational Decisions and Financial Planning Economist assume that, given enough information, most people are rational and.
19-1 Consumer Choice  Prices are important in determining consumer behavior.  New products have to be priced correctly. The price could be set too high.
Chapter 12 – Single Investment Risk Analysis u Reasons for looking at risk from a single project prospective u lack comprehensive knowledge u of the rest.
General exam advice Do not write too much on ‘give’, ‘outline’, ‘identify’ or ‘state’ questions as you WILL run out of time. E.g. a three mark question.
Ten Things You Should Know About Funding Leo Dunne December 2013.
Measuring and Increasing Profit. Unit 1 Reminder – What is Profit? Profit is the reward or return for taking risks & making investments.
© Thomson/South-Western ECONOMIC EDUCATION FOR CONSUMERS Slide 1 Consumer’s Role in the Economy Objectives: By the end of class, students will be able.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
Measuring and Increasing Profit
MGT301 Principles of Marketing
Chapter Two: Characteristics of Entrepreneurs
Calculating Investment Returns
Introduction The concept of supply is based on voluntary decisions made by producers, whether they are proprietorships working out of home offices or large.
Significance Tests: The Basics
Test coverage Tor Stålhane.
Economic Decisions and Systems
Presentation transcript:

Testing and Cost / Benefit Tor Stålhane

Why cost / benefit – 1 For most “real” software systems, the number of possible inputs is large. Thus, we can use a large amount of resources on testing and still expect to get some extra benefit from the next test. At some point, however, we will reach a point where the cost of the next test will be larger – maybe even much lager – that the benefit that we can expect to receive.

Why cost / benefit – 2 The reason for cost / benefit analysis is the need to answer the question: “When should we stop testing?” In economic terms, this can be answered by Comparing costs and benefits for the next test Stop when the cost is greater than the expected benefits

Why cost / benefit – 3 The result of a cost / benefit analysis will depend strongly on which costs and benefits we choose to include. Thus, a cost / benefit analysis can never be completely objective. We should also remember that we compare a real cost against a estimated benefit

Which costs should be included As a minimum we need to include costs to Develop new tests Run new tests Correct newly discovered defects In addition we may include costs incurred by Not being able to use the personnel for other, more profitable activities Dissatisfied customers – bad-will, bad PR

Which benefits should be included As a minimum we need to include benefits from Finding the defects before release – lower correction costs In addition we may include benefits from Better reputation in the marketplace More satisfied customers Alternative use of free personnel resources

Cost / benefit When the costs and benefits are identified, the decision can be made based on the value of the difference: Benefits – costs The main challenge is how to identify the important costs and benefits.

Several alternatives One of the important benefits of stopping testing is alternative uses of freed personnel resources – e.g. develop a new product or improve an existing product. Thus, there can be several possible costs and benefits. They are best compared using the concept of leverage. Leverage = (Benefit – Cost) / Cost

Hard costs and “soft” benefits The main problem for a cost / benefits analysis of testing is that Many of the costs are “now” and easy to identify and enumerate Many of the benefits are “later” and difficult to identify and enumerate.

How to assign value to “soft” benefits Many of the ”hard” benefits are related to saving money. However, The company’s main goal cannot be to save money. The main goals are about increasing e.g. Profit or shareholder value Market shares Market reputation

Creation of value Improving market share or reputation, building a strong brand etc. is all about value creation. This is achieved through creativity and for this we need people. Thus, moving people from testing and error correction to development is not about saving money but about creating new value.

“Soft” benefits To assign value to soft benefits we need to: Identify important company goals and factors (means) contributing to these goals Map the factors onto events related to testing Ask the company what they would be willing to pay to –Get an increase of a certain factor – e.g. market share –Avoid a increase of a certain factor – e.g. customer complaints

“Soft” benefits – example (1) Goal and means identification Important company goal: Increase sales Testing benefit: Better reputation in the market place The important questions are: How much will a product with fewer defects contribute to the company’s reputation? How much will this increase in reputation increase sales?

“Soft” benefits – example (2) The answers to the to latest questions will have to be answered by management. Usually they will not be able to give you a number but they will, in most cases, be able to give you an interval. Thus, the answer to the question “How much will this increase in reputation increase sales?” can be something like 10% to 30%, which then can be used for a benefit assessment.

Simple cost / benefit Assess Cost = assessed total costs Benefits(low) = hard benefits + minimum soft benefits This is a good idea if Cost < Benefits(low)

Testing and information – 1 Cost / benefits are used to decide when to stop testing. For this decision, we need to consider two parameters: P(wrong) – the probability of making the wrong decisions. This will depend on the available information. Cost(wrong) – the cost of making the wrong decision.

Testing and information – 2 Before running a test we need to consider what more information we will have if the test case (1) fails or (2) runs OK. Wrong approach: Make a test, run it and see what we can learn. Right approach: What info do we need? Design and run test designed to get the needed info.

Testing and information – 3 Based on cost and probability, we can compute the risk of the decision: Risk = P(wrong) * Cost(wrong) The risk should be added to the costs in the cost / benefit analysis, e.g. in the leverage expression.

The value of information Without any information, the probability of making the wrong decision will be 0.5. We can decrease this probability by collecting more information. In our case this means running more tests. It is, however, important to remember that running more tests also will increase our costs. Thus, the two factors risk and cost need to be considered together.

Regret As the name implies, regret is the assessed value of something we regret we did not do. In cost / benefit analysis, it is an opportunity that we did not grab. The question used to assess the value of the regret is: “If you do not grab this opportunity, how much would you be willing to pay to have it some time later?” Remember – the more we regret it, the higher is the value

Leverage, risk and regret We can easily include the assessed risk and regret in the leverage computation: Total benefit = Regret + Benefit Total cost = Risk + Cost L = (Total benefit – Total cost) / Total cost

Advanced cost / benefit To reduce the complexity of the problem, we will assume that The cost of a wrong decision is constant The benefits are constant until a time T. After T, the benefits will drop to 0, e.g. because a “window of opportunity” has been closed. P(wrong) decreases exponentially with the money invested in information collection.

Example - 1

Example – 2 We see that everything done after day 7 is a waste of time and resources. After this, we spend money getting rid of a steadily smaller risk.

Summary Understand the company’s goals. Saving money is probably not the most important one. Include all benefits. Use available company knowledge and experience. Use the “What would you be willing to pay” strategy to get values for soft benefits. More knowledge has both a benefit and a cost.