40
Continuous Delivery - Any need for testers? TESTING FORUM 2014 October 8 2014, Talentum Events, Helsinki Finland ?

Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Embed Size (px)

DESCRIPTION

Presentation about testers in Continuous Delivery of software. By Anders Lundsgård and Peter Sandberg from Scania Connected Services. The presentation was held in Helsinki the 8th of October on Talentum Events 2014.

Citation preview

Page 1: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Continuous Delivery - Any need for testers?TESTING FORUM 2014

October 8 2014, Talentum Events, Helsinki Finland

?

Page 2: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Scania engineers

• Anders Lundsgård– 4 years as Consultant– 6 years at Scania

• Release Responsible• Integrator• Architect

• Peter Sandberg– 7 years at ABB & Ericsson– 3 years at Scania

• Test Leading• Test Automation• Scrum Master

Page 3: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Agile to us

theleanstartup.com

Page 4: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Why is it a competitive advantage to iterate fast?

Improve the ability to respond to changeKill bad idéas – FAST

It is fun!

Page 5: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Agile to us

Page 6: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Agile what?

Waterfall”Agile”

Continuous IntegrationContinuous Delivery

DevOps

Page 7: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Scrum equals Agile?

© Bestoutcome Ltd 2014

Page 8: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Scrum not always equals Agile

Project planning

Last mile

Page 9: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Agile what?

Waterfall”Agile”

Continuous IntegrationContinuous Delivery

DevOps

Agile teams within the Enterprise An Agile Enterprise

Page 10: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Continuous Delivery ReleaseQuality

Page 12: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Key concepts for Continuous Delivery

• Test Driven Development• Deployment Pipeline• Continuous Integration• Feature Toggles • Configuration Management• A/B tests• Always On

• Tear the walls

Cultural changes

Technical patterns

Page 13: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

QAQuality Assurance

Page 14: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Unit Tests

Integration Tests

GUI Tests

Manual Regression

Test ice-cream cone

Page 15: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Quality AssuranceQuality Assistance

Page 16: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Test Pyramid

Unit Tests

Integration Tests

GUITests

Manual ”inspection”

Page 17: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Our test movement

Communication via error reports Communication face to face

Tests executed in desktop environment Tests into the Deployment Pipeline

GUI-oriented tests Tests towards service layer

Test specific dev environment Same dev environment as developers

Separated test teams Embedded testers

Requirements Usability

Page 18: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

What gives quality?

I’m Done!We are Done, Done!

Page 19: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Deployment Pipeline

Commit Stage Acceptance Stage Load Stage Deploy Stage

Compile Unit Test Analysis Packaging Acc. Deploy

Acc. Tests Exploraty Tests

Load Tests

Perf Tests

Staging Deploy

Prod Deploy

.....

…..

Page 20: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Deployment Pipeline

Commit Stage Acceptance Stage Load Stage Deploy Stage

Compile Unit Test Analysis Packaging Acc. Deploy

Acc. Tests Exploraty Tests

Load Tests

Perf Tests

Staging Deploy

Prod Deploy

.....

…..

Page 21: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Claim culture

Page 22: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Continuous Integration

• Maintain a Single Source Repository• Automate the Build• Make Your Build Self-Testing• Everyone Commits To the Mainline Every Day• Every Commit Should Build the Mainline on an Integration

Machine• Keep the Build Fast• Test in a Clone of the Production Environment• Make it Easy for Anyone to Get the Latest Executable• Everyone can see what's happening• Automate Deployment

Page 23: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Configuration Management

Dev Ops

Config file here and there…

Click here and there …

First script #1 and then script

#2…

Failover this and that…

Register key here and there …

First alias #1 and then alias

#2…

Release plans

Single source of truthVCS

Page 24: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Feature Branch

Dev Branch #1

Main

Release Branch #1

Dev Branch #2

Page 25: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Feature Toggle

Main

GUI

Business Logic

Database

Page 26: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

A/B tests

Page 27: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

A/B tests

20%of users

Page 28: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Always On

We are down for maintenance

Page 29: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Our biggest obstacle

I want change!!

I want stability.

Page 30: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014
Page 31: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014
Page 32: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014
Page 33: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

At the end of the day it is the person who writes the code who is

responsible for whether or not it works.

Page 34: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

CodeTest

Design Deploy

Page 35: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Implemented CD i 2 months!

The Software Revolution Behind LinkedIn’s Gushing Profits

- We wanted to be at the point where… as soon as they were checking in their code… it was qualified and releasable…

- We were able to scale the team to hundreds of developers.

- It was a pretty big risk the business took, to say to its engineering team, you’re going to run across a bridge and burn it behind you.

2011

Kevin Scott

Page 36: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Google Trends

DevOps

Continuous Delivery

The Lean Startup

Continuous Integration

Page 37: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Automate – All The Things

Peters tests in CI environment

Page 38: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Any need for testers

No! (Not as a role but as a competence)

?

Page 39: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Resources

ISBN-13:978-0321601919

www.continuousdelivery.eu

Page 40: Continuous Delivery - Any need for testers? - Scania Connected Services - Talentum Finland 2014

Contact

• Peter Sandberg– [email protected] – @patelikestotalk

• Anders Lundsgård– [email protected]– @anderslundsgard