best practices in system testing

50
Q Best Practices in System Testing Mahesh Kuruba Dr.Gargi Keeni International Symposium on Future Software Technology, Xi’an October 2002

Upload: christina-stathis

Post on 02-Jan-2016

32 views

Category:

Documents


0 download

DESCRIPTION

Best Practices in System Testing. Mahesh Kuruba Dr.Gargi Keeni. International Symposium on Future Software Technology, Xi’an October 2002. To emphasize the significance of System Testing and its Best Practices to improve the System Test Processes. Objective. Agenda. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Best Practices in System Testing

Q

Best Practices in System Testing

Mahesh KurubaDr.Gargi Keeni

International Symposium on Future Software Technology, Xi’an

October 2002

Page 2: Best Practices in System Testing

QObjective

To emphasize the significance of SystemTesting and its Best Practices to improvethe System Test Processes

Page 3: Best Practices in System Testing

QAgenda

Introduction 5 mins

System Testing 10 mins

Best Practices 40 mins

Challenges 5 mins

Quiz 30 mins

Test Management Metrics

30 mins

Exercise 30 mins

Page 4: Best Practices in System Testing

QWhat does a defect mean to the

customer

American Airlines - $20,000 per minute for outage

Sabre Reservation system - $50,000,000

Denver airport - $1,100,000 per day

Source:Ed Bryce, “Failure is not an Option”, http://www.stickyminds.com/docs_index/XDD3316filelistfilename1.pdf

Page 5: Best Practices in System Testing

Q What does Down time mean to the customer

$1,000 to $27,000 per minute of down time

ESPN - $7,800,000 for 3 days

Amazon.Com - $400,000 for 6 hours

Egghead.com - $280,000 for 2 days

American Airlines

Sabre reservation system 1 min - $20,000 12 hrs 1989, 5 hrs in

1994

Source:Ed Bryce, “Failure is not an Option”, http://www.stickyminds.com/docs_index/XDD3316filelistfilename1.pdf

Page 6: Best Practices in System Testing

Q

Market / Customer perspective– Reputation– Market share

Organization perspective– Productivity loss– Schedule slippage– Loss in Profit Margin

What does a defect mean to the Software Development

Organization

Page 7: Best Practices in System Testing

QCost of Uncovering Defect

Phase CostRequirements $63.75Integration/System Test $750-

$3,000Production $10 K -

$140 K

Page 8: Best Practices in System Testing

QCost of Fixing defect

Phase in which defect Found Cost ratio

Requirements 1Design 3-6Coding 10Unit/ Integration Testing 15-40System testing/ Acceptance testing 30-70Production 40-1000

Page 9: Best Practices in System Testing

QROI Analysis

Source: Rex Black, The Cost of Software Quality,Investing in Software Testing Series, Part 1www.stickyminds.com

Page 10: Best Practices in System Testing

Q

System Testing

Page 11: Best Practices in System Testing

QVerification and Validation

Review Inspection Unit testing Integration testing System testing

Requirements Design CodingUnit

TestingIntegration

Testing

Verification Verification

Verification

Validation

Validation

Page 12: Best Practices in System Testing

QWhy System Testing?

Scope of system testing e-Security testing Compatibility testing Performance testing Usability testing Disaster Recovery testing

Page 13: Best Practices in System Testing

QV-Model

Requirements

Design

Coding Unit Testing

Integration Testing

System Testing

Page 14: Best Practices in System Testing

QSystem Test Strategy

Objective– What type of project?– What type of software?– What is the technical environment?– What is the project scope– What are the success factors?– How critical is the system to the

organization?– What is the required Quality level?

Page 15: Best Practices in System Testing

QSystem Testing Process

Testability Assessment

Test Automation Assessment

Performance Assessment

Requirements Traceability Matrix

Test Strategy

Test Plan

Test Cases

Testing

Test Results and Analysis

Page 16: Best Practices in System Testing

QSystem Test Activities

    REVIEW 

Test Cases

Review

Testing

Requirements

Test Results

Design Coding/Implementation

System Testing

Review

Design DocRequirements Doc

Test Strategy

Test Plan

Testability Assessment

Test Automation Assessment

Page 17: Best Practices in System Testing

Q

Best Practices

Page 18: Best Practices in System Testing

Q

Requirements traceability Design – to – Test Design of Test Cases Reviews Production data Traceability of defects Train the Testers

Best Practices…

Page 19: Best Practices in System Testing

Q

Reusability Software Configuration Management Manage Test Library Automated Test Data generator Motivation Beta / Internal Beta Operational scenario

Best Practices…

Page 20: Best Practices in System Testing

Q

System Tests– Regression Testing– e-Security Testing– Usability Testing– Disaster Recovery Testing– Compatibility testing (multi-platform)– Performance testing

Best Practices…

Page 21: Best Practices in System Testing

QRequirements Traceability

Tracing business requirements To business objectives To design To code To test cases

Best Practices…

Page 22: Best Practices in System Testing

QDesign – to - Test

Simple Logic Proper flow

Design of Test Cases

Maximum code coverage Defect prone test case

Best Practices…

Page 23: Best Practices in System Testing

Q Reviews

Requirements review Design review Code review Test case review

Identifying the Quality levels Identifying Non-Testable requirements Planning the System testing

Benefits

Best Practices…

Page 24: Best Practices in System Testing

QProduction data

Environment issues Data Size issues Performance

Best Practices…

Page 25: Best Practices in System Testing

QTraceability of defects

Traceability of defects

– Requirements– Code

Decision to release

– Feature– Code– Re-inspect– Re-construct

Best Practices…

Page 26: Best Practices in System Testing

QTrain the Testers

Knowledge required in– Functional– Technical

– Testing Train testers

– Testing methodology

Best Practices…

Page 27: Best Practices in System Testing

QReusability

Software components Test artifacts and Test cases Generic test case components Automated Test scripts

Benefits

Minimal testing Good Quality Improved productivity

Best Practices…

Page 28: Best Practices in System Testing

QSoftware Configuration

Management

Requirement changes affect– Test Plan– Test strategy– Requirements traceability matrix– Test Automation scripts– Test cases– Test effort

Best Practices…

Page 29: Best Practices in System Testing

QManage Test Library

Develop and Manage – Test cases– Test scripts– Best practices– Test result report– Test analysis reports

Best Practices…

Page 30: Best Practices in System Testing

QAutomated Test Data generator

System testing require more data for execution

Probability of finding fault in a black box testing approach Y= 1-(1-x) N

Where ‘x’ is the probability that the random input will cause the failure

N is the random black box probes.

Best Practices…

Page 31: Best Practices in System Testing

Q

Awards Rewards Team building activities

MotivationBest Practices…

Page 32: Best Practices in System Testing

QBeta / Internal Beta

Beta for a small group of clients

Internal Beta for a small group of the organization

Product release to the groupUncover DefectsFix Defect

Feedback

Stable Product

Best Practices…

Page 33: Best Practices in System Testing

QOperational scenario

Test Case preparation based upon the – Legacy system failures– Previous iteration failures– User focused test – Operational failures– Production support team

Best Practices…

Page 34: Best Practices in System Testing

Q

Challenges                          

Page 35: Best Practices in System Testing

Q

When to Stop Testing Did I achieved the Quality Goals Selection of Testers Estimation of Test Effort Optimal Test effort Support from the Management Test tool selection

Challenges…

Page 36: Best Practices in System Testing

QQuiz

Page 37: Best Practices in System Testing

Q

Test Management Metrics

Page 38: Best Practices in System Testing

Q Test Managers Job

Activities Planning Monitoring Controlling

ConcernsCostQualitySchedule

Page 39: Best Practices in System Testing

QMetrics

Defect Density (SCR/FP) Requirements Stability Shape (release) Trend (Across the releases) Test Group efficiency Planned Vs Executed

Note: ‘Test’ means ‘System testing’ across the Graphs

Page 40: Best Practices in System Testing

QDefect Density

0.075630252 0.091743119

0.428571429

00.05

0.10.150.2

0.25

0.30.350.4

0.45

Defects/FP

Release I Release II Release III

Release

Defect Density

Defects/FP

Page 41: Best Practices in System Testing

Q Requirements Stability

9

4

0

2

4

6

8

10

No of SCR's

Defect Change Request

Request Type

Requirements Stability

Series1

Page 42: Best Practices in System Testing

QType of Defect

1

5

2 2

0

12

3

45

No of Defects

<<None>> Functionality Performance Standards

Defect Type

Defect Type Vs No of Defects (Prod)

No of Defects

12

3

6

0

2

4

6

No of Defects

<<None>> Documentation Functionality Standards

Defect Type

Defect Type Vs No of Defects

No of Defects

Page 43: Best Practices in System Testing

QSeverity Defects

344

037

3

17

9

0

10

20

30

No of Defects

I II III

Release

Severity Defects

Critical Major Minor

Page 44: Best Practices in System Testing

QTest Group Efficiency

8

27

05

1015202530

No of Defects

UAT Test (QC)Group

Group Vs SCR

Series1

32

3

0

10

20

30

40

NO of Defects

Testing Prod

Environment

Testing Vs Prod

Series1

Page 45: Best Practices in System Testing

QTest Planning & Monitoring

Testv Execution Progress

050

100150200250

300350400450500

2000

/10/

01

2000

/10/

08

2000

/10/

15

2000

/10/

22

2000

/10/

29

2000

/11/

05

2000

/11/

12

2000

/11/

19Planned Actual

Planning

• No of BR’s to Test

• Testers Available

• No of Defects acceptable

• Time

Page 46: Best Practices in System Testing

QControlling

1. Are we good

Or Was Development Team didn’t do a good job

2. Were we bad before?

3. Why didn’t we found the defects in earlier phases ?

(Apply Systems Engineering)

9

4

0

5

10

No of Defects

Test Prod

Environment

Test Vs Prod

Series1

10

6

0

5

10

No of Defects

Test Prod

Environment

Test Vs Prod

Series1

Page 47: Best Practices in System Testing

QIs it Right Time to

Release ?

32

30

10203040

No of Defects

Test Prod

Environment

Test Vs Prod

Series1

Defects per Week during Test

0

5

10

15

20

25

Week

No

Of S

CR

Series1

Page 48: Best Practices in System Testing

QWhat if Software is released

Early ?Defects per Week in Test

0123

456

1998/03/05 1998/03/12 1998/03/19

Week

No

of

Def

ects

No of Defects

8

3

0

5

10

No of Defects

Test Prod

Environment

Test Vs Prod

Series1

Defects per Week during Testing

00.5

11.5

22.5

Week

No

of D

efec

ts

No of Defects

3

1

0

1

2

3

No of Defects

Test Prod

Environment

Test Vs Prod

Series1

Page 49: Best Practices in System Testing

Q

Exercise

Page 50: Best Practices in System Testing

Q

Thank you