Top Banner
W14 Test Techniques 5/6/2015 3:00:00 PM Static Testing: We Know It Works, So Why Don’t We Use It? Presented by: Meenakshi Muthukumaran Tata Consultancy Services Brought to you by: 340 Corporate Way, Suite 300, Orange Park, FL 32073 888-268-8770 ∙ 904-278-0524 ∙ [email protected] www.sqe.com
24
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Static Testing: We Know It Works, So Why Don’t We Use It?

W14

Test Techniques

5/6/2015 3:00:00 PM

Static Testing: We Know It

Works, So Why Don’t We Use It?

Presented by:

Meenakshi Muthukumaran

Tata Consultancy Services

Brought to you by:

340 Corporate Way, Suite 300, Orange Park, FL 32073 888-268-8770 ∙ 904-278-0524 ∙ [email protected] ∙ www.sqe.com

Page 2: Static Testing: We Know It Works, So Why Don’t We Use It?

Meenakshi Muthukumaran

Tata Consultancy Services

Meenakshi Muthukumaran is a test automation strategist and consultant with Assurance

Services Unit of Tata Consultancy Services. Meena advises customers on product selection,

deployment, and effective use of static testing tools, and leads the professional research team

that evaluates and grades different static testing tools. She started her career as a software

developer and worked in the United States for several years in technology and management

roles. With more than ten years of experience in the IT industry, Meena works with customers

across geographies and industries to build high-quality software by addressing their challenges

related to code quality and post-production defects.

Page 3: Static Testing: We Know It Works, So Why Don’t We Use It?

1Copyright © 2014 Tata Consultancy Services Limited

Static Testing: We Know It Works, Why

Don’t We Use It?

May 2015

Page 4: Static Testing: We Know It Works, So Why Don’t We Use It?

2

With You Today…

Meena has 10+ years of overall experience in IT

industry and has been with TCS for past 4 years.

She is a Masters in IT and after engineering, she

started her career as a software developer.

Thereafter she has worked in multiple domains

spanning both technology as well as management

Meenakshi Muthukumaran

SQG Consultant, Assurance Services,

Tata Consultancy Services (TCS)

Meena has worked with multiple Fortune 500 customers across geographies and

industries in addressing their business objective by certifying and assuring high-

quality software

Page 5: Static Testing: We Know It Works, So Why Don’t We Use It?

3

Agenda

Business

Drivers

The

Quality

Assurance

LensWhy

Static Testing ?

Putting

Static Testing

to work

Static Testing:

Delivered

results

Page 6: Static Testing: We Know It Works, So Why Don’t We Use It?

4

Businesses today need to address…

Complexity

Digital

customers

New age

competitionSecurity

concerns

First time

right

Page 7: Static Testing: We Know It Works, So Why Don’t We Use It?

5

Else will lead to…

Delays in time

to market

Increased

ops cost

Reduced

revenues

Dissatisfied

customer

Page 8: Static Testing: We Know It Works, So Why Don’t We Use It?

6

Incomprehensive QA can erode your business…

SEC fines more than $40 million

compensations claims.

Reputational damage

Stocks declined 72% in 6 months

More than 500 death months

Lost $440 million in 30 minutes;

Loss of 75% in stock value in 2

business days

Page 9: Static Testing: We Know It Works, So Why Don’t We Use It?

7

Having a holistic perspective…

WHAT YOU KNOW

WHAT SOME

MIGHT KNOW

WHAT YOU REALLY

SHOULD KNOW

T E

S T

RE

VIE

W

Correctness

Efficiency

Reliability

Maintenance Cost

Program

Structure

Coding

Practices

Coupling

Complexity

Readability

Flexibility

Reusability

Maintainability

Testability

Page 10: Static Testing: We Know It Works, So Why Don’t We Use It?

8

Will get you to..

Inspection

Software walk-

throughs

Peer reviews

Static

Testing

Page 11: Static Testing: We Know It Works, So Why Don’t We Use It?

9

Why do I need Static Testing?

Think OUT of BUGS

Page 12: Static Testing: We Know It Works, So Why Don’t We Use It?

10

Static Analysis: Effective way of Static Testing

Code baseStatic code

analyzerDefects/Violation

Automating

Code Inspections

Analyzing the code without executing

Making effective

• Tracks suggestions

• Allows follow-up tasks

• Aids comparing before/after changes

• Integrates source code repositories

Page 13: Static Testing: We Know It Works, So Why Don’t We Use It?

11

Although research shows Static analysis is effective…

Static Analysis has comparatively higher defect removal efficiency

Source: Caper Jones: SOFTWARE QUALITY IN 2013: A SURVEY OF THE STATE OF THE ART

Page 14: Static Testing: We Know It Works, So Why Don’t We Use It?

12

It isn’t flying high as it should

Limited Awareness

Tools

Unavailability

Time shortage

Mindset

Page 15: Static Testing: We Know It Works, So Why Don’t We Use It?

13

Increasing awareness…

Static testing

champions

across

teams

Page 16: Static Testing: We Know It Works, So Why Don’t We Use It?

14

Bringing mindset change…

Top down

approach can

drive static

testing

Page 17: Static Testing: We Know It Works, So Why Don’t We Use It?

15

With a 7 Point Strategy for Tool Selection…

Deployment Strategy

Technology Coverage

Supporting Environment

Product Update

Triage & Remediation Support

Reporting Capabilities

Enterprise Level Support

Page 18: Static Testing: We Know It Works, So Why Don’t We Use It?

16

Will Deliver Certainty

Early defect detection

Faster time to Market

Reduction in TCO

Progressive improvement in Quality

Page 19: Static Testing: We Know It Works, So Why Don’t We Use It?

17

Success story: Leading Oilfield Services Company

Challenges

• Performance: Slow response rates. Irritated users

• Stability: Systems hang during key transactions

• Increased # of problem tickets/ issues to be resolved

Solution

• Analysis of the base code

• Identification of exact elements causing issues

• In-depth analysis of the code post fixing issues

Results

• Improvement in overall application health with respect to Performance, Robustness and Security

• Actual performance of the application improved by up to 50% on some transactions.

Maintainability 3%

Reliability 10%

Efficiency 13%

Security 22%

Page 20: Static Testing: We Know It Works, So Why Don’t We Use It?

18

Success story: Leading Oilfield Services Company

0

0.5

1

1.5

2

2.5

3

3.5

Maintainability Reliability Efficiency Security

3.092.91

2.822.71

3.19 3.21 3.2 3.31

Quality Evolution

Before After

Maintainability 3%

Reliability 10%

Efficiency 13%

Security 22%

Page 21: Static Testing: We Know It Works, So Why Don’t We Use It?

19

Some useful directions and …

Inefficient error

handling

expensive

loops performance problems

Select *

null pointer

dereferences

database

connection

leaks

SQL

injection

Cross-site

Scripting

Hardcoded

Credentials

Insecure File

Upload

Insufficient

Session Expiration

Poor

Memory/

Network

Mgmt

Improper SQL and

Data Handling

Dynamic

Instantiation

Page 22: Static Testing: We Know It Works, So Why Don’t We Use It?

20

And Best practices from the engagement

Create

Awareness

Measure

QualityEmbed in

lifecycle

Integrate with

existing tools

Mandate it

Improve &

Control

Page 23: Static Testing: We Know It Works, So Why Don’t We Use It?

21

Prevention is better than cure

Quality cannot be monitored or tracked unless

measured

Quality should not be a practice – rather be the WAY

of life.

A quick recap

Page 24: Static Testing: We Know It Works, So Why Don’t We Use It?

Thank You

IT Services

Business Solutions

Consulting

Please visit us at Booth# 17

or write to us at: [email protected]