Test e scrum un caso reale v3.2

40

description

Presentazione ALM Days 2011 in collaborazione con Emanuele Vicari di Biesse S.p.A.

Transcript of Test e scrum un caso reale v3.2

Page 1: Test e scrum   un caso reale v3.2
Page 2: Test e scrum   un caso reale v3.2

Ivan Fioravanti, 4ward Emanuele Vicari, Biesse

Testing e Scrum nel mondo reale

Page 3: Test e scrum   un caso reale v3.2

Do your systems talk business? | 3

Agenda

Testing e Scrum nel mondo reale

Testing e Scrum:

4ward: Smartgest un caso reale

Scrum:

Biesse: Racconto di un’implementazione vincente di Scrum

Page 4: Test e scrum   un caso reale v3.2

Do your systems talk business? | 4

Cosa fa 4ward oggi?

Sviluppo

•Software Factory, Team Foundation Server

•Biztalk, Sharepoint

•WPF, WCF, WF, Silverlight, ASP.NET

Sistemi

•Virtualizzazione

•System Center

•Unified Communication

Testing

•Team dedicato

•Test Manager

•Test Automation

Training

•Corsi a calendario

•Corsi personalizzati

•Testing Center

http://b.static.ak.fbcdn.net/

Page 5: Test e scrum   un caso reale v3.2

Do your systems talk business? | 5

Prossimamente? http://b.static.ak.fbcdn.net/

Seattle

Cloud

TaaS

• Nuova sede a Seattle che si

aggiungerà a Milano,

Bolzano e Verona

• Nuova area dedicata a

Windows Azure e Office 365

• Testing as a Service

onsite o da remoto

Page 6: Test e scrum   un caso reale v3.2

Do your systems talk business? | 6

Qualcosa su di me… Responsabile sviluppo e co-fondatore di 4ward

Specializzazioni:

Visual Studio ALM Expert, Team Foundation Server

Silverlight, Software Factories

Biztalk, Sharepoint

Non sul lavoro: Aspirante Runner, membro Mensa.org

Potete trovarmi su:

Blog:

EN: http://ivanfioravanti.wordpress.com

IT: http://blogs.ugidotnet.org/ivanf

Twitter: @ivanfioravanti

Mail: [email protected]

http://b.static.ak.fbcdn.net/

Page 7: Test e scrum   un caso reale v3.2

Do your systems talk business? | 7

Testing e Scrum

Page 8: Test e scrum   un caso reale v3.2

Do your systems talk business? | 8

Qualche bug famoso? (1/2) Sonda Mariner 1

Distrutta

Il rapporto dalla NASA ammette che la causa dell’errore è un singolo trattino mancante da una riga di codice Fortran del programma di guida automatica della sonda

Collasso linee telefoniche

75 mln chiamate perse

Errori di commutazione nei computer di gestione delle chiamate della AT&T rendono inutilizzabile per nove ore la rete interurbana e interstatale statunitense della società. La causa del collasso fu poi attribuita a una singola riga di codice errata Fonte: http://en.wikipedia.org/wiki/List_of_software_bugs

Page 9: Test e scrum   un caso reale v3.2

Do your systems talk business? | 9

Qualche bug famoso? (2/2) Sonda Mars Polar Lander

Distrutta

Segnali errati di atterraggio completato vengono inviati dai sensori che portano allo spegnimento dei motori 40 metri prima di toccare terra

Sonda Mars Global Surveyor

Distrutta

Due indirizzi di memoria sovrascritti per errore da un aggiornamento software causano una manovra errata che porta al surriscaldamento e alla rottura delle batterie

Fonte: http://en.wikipedia.org/wiki/List_of_software_bugs

Page 10: Test e scrum   un caso reale v3.2

Do your systems talk business? | 10

«Fate testing?» Commenti dal campo

Test? Noi non facciamo test! Tanto se ci sono problemi su un rilascio, gli utenti

chiamano il supporto e torniamo alla versione precedente

Finisce che spendo più in test che in sviluppo

Page 11: Test e scrum   un caso reale v3.2

Do your systems talk business? | 11

Riduzione dei costi di produzione

Riduzione della qualità

Aumento dei difetti

Aumento dei costi di mantenimento

Risultato dell’eliminazione dei test

Page 12: Test e scrum   un caso reale v3.2

Do your systems talk business? | 12

Riduzione dei costi di produzione

Riduzione della qualità

Aumento dei difetti

Aumento dei costi di mantenimento

Risultato dell’eliminazione dei test

RISULTATO FINALE?

Photo by Alex E. Proimos (http://www.flickr.com/photos/proimos)

RISULTATO FINALE?

Page 13: Test e scrum   un caso reale v3.2

Do your systems talk business? | 13

1.

Integrazione Testing nell’ALM

2.

Automazione dell’esecuzione e della verifica dei test

3.

Gestione semplificata degli ambienti di test

4.

Tracciabilità automatica requisiti/user story e test

Come risolvere il problema?

Page 14: Test e scrum   un caso reale v3.2

Do your systems talk business? | 14

1.

Integrazione Testing nell’ALM

2.

Automazione dell’esecuzione e della verifica dei test

3.

Gestione semplificata degli ambienti di test

4.

Tracciabilità automatica requisiti/user story e test

Come risolvere il problema?

Page 15: Test e scrum   un caso reale v3.2

Do your systems talk business? | 15

Testing e Scrum

Page 16: Test e scrum   un caso reale v3.2

Do your systems talk business? | 16

http://b.static.ak.fbcdn.net/

Cos’è Scrum?

E’ una metodologia iterativa ed incrementale per la

gestione dei progetti

Page 17: Test e scrum   un caso reale v3.2

Do your systems talk business? | 17

implementazione us2

implementazione us2

T

E

S

T

sprint plan

definizione test per us1

definizione test per us2

D

E

V

sprint plan

build 1 build 2 build 3

implementazione user story ‘1’

(us1)

test us1 & segnalazione

bug

build 4

fix bug

build 6 build 7

test di regressione

build 5

fix bug

test us2 & segnalazione

bug

verifica fix

verifica fix

Sviluppo e test integrati con Scrum

Page 18: Test e scrum   un caso reale v3.2

Do your systems talk business? | 18

build 1 build 2

definizione test per us2 verifica fixes

test us2 & segnalazione

bugs

verifica fixes T

E

S

T

D

E

V

test di regressione

build 6

fix bugs

build 7 build 5 build 4

fix bugs

implementazione us2

implementazione us2

sprint plan

sprint plan

definizione test per us1

build 3

implementazione user story ‘1’

(us1)

test us1 & segnalazione

bug

Test Manager consente

di creare piani di test

legati ai requisiti

Test Manager mostra ai

tester le modifiche

apportate per ogni build

come:

- Task

- Requisiti

- Bug

Con che strumento?

Page 19: Test e scrum   un caso reale v3.2

Do your systems talk business? | 19

test di regressione

verifica fix test us2 &

segnalazione bug

build 6

fix bugs

build 7

implementazione us2

implementazione us2

build 4

definizione test per us2

definizione test per us1

sprint plan

build 1 build 2 build 3

implementazione user story ‘1’

(us1)

sprint plan

T

E

S

T

D

E

V

build 5

test us1 & segnalazione

bug verifica fix

fix bug

Test Manager aiuta

nella verifica della

correzione dei bug

I tester creano bug

report completi e

facilmente riproducibili

… i testers possono

verificare facilmente le

fix tramite la

riproduzione automatica

delle azioni registrate

durante i test

Con che strumento?

Page 20: Test e scrum   un caso reale v3.2

Do your systems talk business? | 20

Testing e Scrum

Page 21: Test e scrum   un caso reale v3.2

Do your systems talk business? | 21

iterazione 1 iterazione 2 release

feature a feature b feature c feature d

unit

testing

manual

testing

regression

testing

performance

testing

feature a

Automazione dei test

Page 22: Test e scrum   un caso reale v3.2

Do your systems talk business? | 22

Automazione dei test

Attivando l’Action Recording è possibile registrare e riprodurre automaticamente gli step di un test case. Le azioni ripetitive e noiose le lasciamo fare alle macchine!

I Data Diagnostic tracciano le azioni sulla UI e tutte quelle informazioni utili allo sviluppatore per risolvere correttamente il bug.

Page 23: Test e scrum   un caso reale v3.2

Do your systems talk business? | 23

Testing lifecycle

I test registrati vengono eseguiti automaticamente ad ogni build

Obiettivo: abbattere i costi e ridurre i bug

Build Test

Page 24: Test e scrum   un caso reale v3.2

Do your systems talk business? | 24

Testing e Scrum

Page 25: Test e scrum   un caso reale v3.2

Do your systems talk business? | 25

Lab Management

Creazione semplificata di ambienti di test In Lab Center possiamo generare con pochi click degli ambienti di

test: non solo una macchina, ma un vero sistema multi server!

Virtualizzazione per tutti Semplicità e

integrazione in Visual Studio ALM

Hyper-V based

Page 26: Test e scrum   un caso reale v3.2

Do your systems talk business? | 26

Automatizzazione del workflow Build-Deploy-Test

1. Compilazione dei sorgenti

2. Ripristino ambiente virtuale allo stato iniziale

3. Installazione della build

4. Esecuzione test automatici

5. Con un clic è possibile collegarsi all’ambiente

L’effort iniziale è ampiamente ammortizzato nel medio-lungo termine

Build

Deploy Test

Page 27: Test e scrum   un caso reale v3.2

Do your systems talk business? | 27

Testing e Scrum

Page 28: Test e scrum   un caso reale v3.2

Do your systems talk business? | 28

Report nativi in TFS Altri report in

questa categoria

Avanzamento del lavoro sulle user stories mostrato nel

contesto insieme ai risultati dei test e ai bug

Cosa mostra questo report?

Page 29: Test e scrum   un caso reale v3.2

Do your systems talk business? | 29

Qual è l’avanzamento sui test plan?

Come stanno andando le

build? Stiamo risolvendo i

bug?

Qual è la qualità delle fix fatte?

Dashboard Quality nativa in TFS Siamo pronti

a consegnare?

Page 30: Test e scrum   un caso reale v3.2

Do your systems talk business? | 30

Risultato? Il test è servito

Page 31: Test e scrum   un caso reale v3.2

Do your systems talk business? | 31

Biesse s.p.a. • Realtà multinazionale che produce macchine e

sistemi per la lavorazione di legno, vetro e pietra.

• Filiali produttive in Italia e a Bangalore

• 2.300 dipendenti nel mondo

Page 32: Test e scrum   un caso reale v3.2

Do your systems talk business? | 32

Perché TFS?

• Scrum già applicato da qualche team ma in modo disomogeneo

• Tutto il software prodotto da Biesse è sviluppato già da anni con Visual Studio

• MSF Agile 5.0: è «quasi» Scrum, fa già il 90% di quello che ci serve

• Compreso nelle licenze MSDN già acquistate dal gruppo

Page 33: Test e scrum   un caso reale v3.2

Do your systems talk business? | 33

• Requisiti prioritari:

• tracciare il carico di lavoro dei team

• incentivare la pianificazione agile: «+ excel, - project»

• Fasi e tempi:

• Marzo-Aprile 2010: Team di 4 persone con progetto pilota (su TFS 2010 RC)

• Maggio-Settembre 2010: Estensione graduale agli altri progetti compatibilmente con i tempi di produzione di una fabbrica

• Gennaio 2011: 85 sviluppatori suddivisi su 18 team project

Il progetto di adozione

Page 34: Test e scrum   un caso reale v3.2

Do your systems talk business? | 34

Product Planning • Fornisce una stima delle risorse necessarie per iterazione

• Per la pianificazione sono state utilizzate «ore uomo indicative» in modo da dare una linea guida comune a tutti i team

Page 35: Test e scrum   un caso reale v3.2

Do your systems talk business? | 35

Ma il GANTT non era meglio? • Il product planning non permette di vedere a colpo d’occhio lista di attività

e relative date di chiusura

• Serve un report di alto livello per il management, soprattutto per le consuntivazioni

• Generato automaticamente tramite una macro di Excel

Iteration 1 Iteration 2 Iteration 3 Iteration 4 Iteration 5 Iteration 6 …

Page 36: Test e scrum   un caso reale v3.2

Do your systems talk business? | 36

• Necessità di integrare lo strumento di project management (TFS) e lo strumento di project/product costing (Oracle Project)

• Come fare per conciliare le esigenze amministrative (lista di attività standard) con quelle progettuali (totale libertà nei titoli delle attività)?

Integrazione con Oracle EBS

Team Project

Mapping Tables

Commessa

Completed Work

TFS Oracle

Project

SQL

DataBase

Page 37: Test e scrum   un caso reale v3.2

Do your systems talk business? | 37

• I titoli con prefisso WBS vengono marcati read-only e garantiscono l’integrità del mapping

• Viene lasciata completa libertà su tutti gli altri livelli dell’albero dei work item

Integrazione con Oracle EBS

Team Project: Project 1

Work Item Type

Assigned To

Title 1 Title 2 Title 3 Completed

Work

User Story

Barra dei Menù

User Story

Mario Rossi

WBS Menù File

Task Mario Rossi

Sviluppo bottone

salva 6

Task Paolo

Bianchi

Sviluppo bottone

apri 4

User Story

Giuseppe Verdi

WBS Menù Zoom

Task Giuseppe

Verdi

Sviluppo bottone zoom in

5

Task Paolo

Bianchi

Sviluppo bottone

zoom out 3

Commessa: Project 1

Risorsa Giorno Task ore

Mario Rossi 12/12/2010 Menù File 1

Giuseppe Verdi 15/12/2010 Menù Zoom 2

Mario Rossi 15/12/2010 Menù File 2

Paolo Bianchi 16/12/2010 Menù File 2

Mario Rossi 20/12/2010 Menù File 3

Giuseppe Verdi 21/12/2010 Menù Zoom 3

Paolo Bianchi 21/12/2010 Menù File 2

Paolo Bianchi 21/12/2010 Menù Zoom 3

Mappin

g

Page 38: Test e scrum   un caso reale v3.2

Do your systems talk business? | 38

Risultati Rispetto delle pianificazioni senza scendere a compromessi sulla qualità dei prodotti

Page 39: Test e scrum   un caso reale v3.2

Do your systems talk business? | 39

Page 40: Test e scrum   un caso reale v3.2

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market

conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,

AS TO THE INFORMATION IN THIS PRESENTATION