Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

Dev to QA 1:1

Slide 3

Slide 3 text

Dev to QA 2:1

Slide 4

Slide 4 text

Dev to QA 3:1

Slide 5

Slide 5 text

Dev to QA ∞:1

Slide 6

Slide 6 text

Uri Nativ Head of Engineering & Site Manager Klarna Tel Aviv

Slide 7

Slide 7 text

SAFE & SIMPLE payments online

Slide 8

Slide 8 text

Stockholm SWEDEN Tel Aviv ISRAEL

Slide 9

Slide 9 text

$1,000,000,000

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

1 2 3 3 steps to QUALITY

Slide 13

Slide 13 text

The ABSURD in having a QA org.

Slide 14

Slide 14 text

a WALL between ACTIONS and CONSEQUENCES

Slide 15

Slide 15 text

devs are LAZY

Slide 16

Slide 16 text

our job is NOT to CODE our job is NOT to TEST we are software engineers we SHIP software that SOLVES problems

Slide 17

Slide 17 text

1 2 3 3 steps to QUALITY

Slide 18

Slide 18 text

2 3 3 steps to QUALITY 1 NO QA

Slide 19

Slide 19 text

Number of bugs Time High Medium Low BUGS over TIME

Slide 20

Slide 20 text

Number of bugs Time High Medium Low BUGS over TIME

Slide 21

Slide 21 text

Number of bugs Time High Medium Low Micro BUGS over TIME

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

zero BUGS policy fix ALL bugs

Slide 25

Slide 25 text

BUGS first FEATURES second zero BUGS policy

Slide 26

Slide 26 text

DELETE bugs zero BUGS policy

Slide 27

Slide 27 text

2 3 3 steps to QUALITY 1 NO QA

Slide 28

Slide 28 text

3 3 steps to QUALITY 1 NO QA 2 ZERO BUGS POLICY

Slide 29

Slide 29 text

Cost of fixing BUGS

Slide 30

Slide 30 text

Requirements Design Code Test Production 10x 50x COST of bug fix 1x 5x 150x Phase detected Cost

Slide 31

Slide 31 text

COST of bug fix 1x 5x 150x Phase detected Cost Requirements Design Code Test Production 10x 50x

Slide 32

Slide 32 text

Requirements Design Code Test Production 1 YEAR

Slide 33

Slide 33 text

Requirements Design Code Test Production 6 MONTHS

Slide 34

Slide 34 text

Requirements Design Code Test Production 1 MONTH

Slide 35

Slide 35 text

Requirements Design Code Test Production 1 WEEK

Slide 36

Slide 36 text

Requirements Design Code Test Production HOURS

Slide 37

Slide 37 text

Requirements Design Code Test Production HOURS 150x 1x 5x 10x 50x

Slide 38

Slide 38 text

Requirements Design Code Test Production HOURS 150x 1x 5x 10x 50x

Slide 39

Slide 39 text

Requirements Design Code Test Production HOURS 150x 1x 5x 10x 50x

Slide 40

Slide 40 text

Requirements Design Test Code Production HOURS 150x 1x 5x 50x 10x

Slide 41

Slide 41 text

Requirements Design Code Production Test HOURS 50x 1x 5x 10x 150x

Slide 42

Slide 42 text

Requirements Design Code Production Test HOURS 50x 1x 5x 10x 150x

Slide 43

Slide 43 text

QUALITY is in the EYE of the BEHOLDER

Slide 44

Slide 44 text

3 3 steps to QUALITY 1 NO QA 2 ZERO BUGS POLICY

Slide 45

Slide 45 text

3 2 1 NO QA ZERO BUGS POLICY SHORT FEEDBACK LOOP 3 steps to QUALITY

Slide 46

Slide 46 text

Short feedback LOOP

Slide 47

Slide 47 text

BDD & TDD

Slide 48

Slide 48 text

CUCUMBER SCENARIO 1 Feature: Upsale for existing merchant Background: Given I have valid user for Klarna Scenario: Complete upsale flow Given I am on the login page When I login as a valid user Then I should see a pricing page When I accept the terms and conditions And I click the next button Then I should see the thank you page

Slide 49

Slide 49 text

CUCUMBER SCENARIO 1 Feature: Upsale for existing merchant Background: Given I have valid user for Klarna Scenario: Complete upsale flow Given I am on the login page When I login as a valid user Then I should see a pricing page When I accept the terms and conditions And I click the next button Then I should see the thank you page

Slide 50

Slide 50 text

CUCUMBER SCENARIO 1 Feature: Upsale for existing merchant Background: Given I have valid user for Klarna Scenario: Complete upsale flow Given I am on the login page When I login as a valid user Then I should see a pricing page When I accept the terms and conditions And I click the next button Then I should see the thank you page

Slide 51

Slide 51 text

CUCUMBER SCENARIO 1 Feature: Upsale for existing merchant Background: Given I have valid user for Klarna Scenario: Complete upsale flow Given I am on the login page When I login as a valid user Then I should see a pricing page When I accept the terms and conditions And I click the next button Then I should see the thank you page

Slide 52

Slide 52 text

CUCUMBER SCENARIO 2 Feature: Upsale for existing merchant Background: Given I have valid user for Klarna Scenario: Upsale dropout Given I am on the login page When I login as a valid user Then I should see a pricing page When I wait 24 hours Then a Lead is created in the CRM

Slide 53

Slide 53 text

CUCUMBER STEP DEFINITON Given /^I am on the login page$/ do url = “https://www.klarna.com/login” visit url end When /^I login as a valid user$/ do fill_in "uid", :with => @valid_user[:uname] fill_in "pass", :with => @valid_user[:pass] click_button "login" end Then /^I should see a pricing page$/ do page.should have_selector ("title", :text => 'Pricing Page Title') end

Slide 54

Slide 54 text

RSPEC – CONTROLLER TEST describe ‘UpsaleController’ do describe ‘login endpoint’ do it "should redirect to OAuth login" do OAuthAPI.stub(:get_login_url). and_return ("https://login.klarna.com") get :login response.should redirect_to ("https://login.klarna.com") end end

Slide 55

Slide 55 text

RSPEC – CONTROLLER TEST describe ‘UpsaleController’ do describe ‘login endpoint’ do it "should redirect to OAuth login" do OAuthAPI.stub(:get_login_url). and_return ("https://login.klarna.com") get :login response.should redirect_to ("https://login.klarna.com") end end

Slide 56

Slide 56 text

RSPEC – CONTROLLER TEST describe ‘UpsaleController’ do describe ‘login endpoint’ do it "should redirect to OAuth login" do OAuthAPI.stub(:get_login_url). and_return ("https://login.klarna.com") get :login response.should redirect_to ("https://login.klarna.com") end end

Slide 57

Slide 57 text

RSPEC – CONTROLLER TEST describe ‘UpsaleController’ do describe ‘login endpoint’ do it "should redirect to OAuth login" do OAuthAPI.stub(:get_login_url). and_return ("https://login.klarna.com") get :login response.should redirect_to ("https://login.klarna.com") end end

Slide 58

Slide 58 text

RSPEC – CONTROLLER TEST describe ‘UpsaleController’ do describe ‘login endpoint’ do it "should redirect to OAuth login" do OAuthAPI.stub(:get_login_url). and_return ("https://login.klarna.com") get :login response.should redirect_to ("https://login.klarna.com") end end

Slide 59

Slide 59 text

RSPEC – CONTROLLER TEST describe ‘UpsaleController’ do describe ‘login endpoint’ do it "should redirect to OAuth login" do OAuthAPI.stub(:get_login_url). and_return ("https://login.klarna.com") get :login response.should redirect_to ("https://login.klarna.com") end end

Slide 60

Slide 60 text

CONTROLLER class UpsaleController < ApplicationController def login redirect_to OAuthAPI.get_login_url end end

Slide 61

Slide 61 text

PAIR programming

Slide 62

Slide 62 text

code REVIEW

Slide 63

Slide 63 text

continuous INTEGRATION

Slide 64

Slide 64 text

continuous DELIVERY

Slide 65

Slide 65 text

DARK launch

Slide 66

Slide 66 text

gradual ROLLOUT

Slide 67

Slide 67 text

100% Eng. Internal 1% gradual ROLLOUT 5%

Slide 68

Slide 68 text

Short feedback LOOP

Slide 69

Slide 69 text

“ YES, BUT…” - Guri Alfi

Slide 70

Slide 70 text

take NOTHING FOR granted

Slide 71

Slide 71 text

3 2 1 NO QA ZERO BUGS POLICY SHORT FEEDBACK LOOP 3 steps to QUALITY

Slide 72

Slide 72 text

THANK YOU @reversim

Slide 73

Slide 73 text

THANK YOU @reversim

Slide 74

Slide 74 text

Uri Nativ @unativ @ [email protected]