Continuous Integration Processes and SCM To Support Test...

22
Continuous Integration Processes and SCM To Support Test Automation © 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property. SIGIST Conference, July 2013 Gal Fatal [email protected] 054-342-3864

Transcript of Continuous Integration Processes and SCM To Support Test...

Page 1: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Continuous Integration

Processes and SCM

To Support Test Automation

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.

SIGIST Conference, July 2013

Gal Fatal

[email protected]

054-342-3864

Page 2: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

AT&T Israel Center of Excellence

AT&T Worldwide

• One of the largest telecom companies in the world

• Over 250,000 employees worldwide

AT&T Israel R&D Center

• Formerly Interwise, Ltd.

• Purchased by AT&T in 2007

• Employment growth of 1,000% in 5 years

Main Lines of Business

• Connect

• Unified Communications

• Consumer Mobility

• IMS (Backend Components)

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.2

Page 3: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Gal Fatal

MBA

Managing Configuration Management teams since 1999

Pre-AT&T: Intel, Siemens, Perigen

AT&T (Interwise) since 1997

Experience:

• Source control services

• Installer development

• Continuous integration processes

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.

Page 4: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Moving from Waterfall to Agile (scrum) at AT&T

Continuous Integration processes

Bug lifecycle in scrum

How we provide fast and flexible builds

Sanity tests and automation

How we make multi-platform testing possible

Saving time with automatic environment installations

Demo

Agenda

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.4

Page 5: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.5

Waterfall Development1994-2011

Page 7: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Waterfall

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.

7

Dev group QA group

Page 8: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Waterfall Lifecycle at AT&T Connect®

Main Development

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.8

Dev

Build and Integration tests

QA runs tests and opens bugs

Milestone

3 weeks

1 week

Build took 4 days• Compilation problems• Manual processes• Build machine resources• Environments

Bugs and StabilityVersion Release

1 2 3 4 5 6 7 8

Page 9: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Waterfall Lifecycle at AT&T Connect

Stability and Bugs

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.9

Devresolves bugs

Build and Integration tests

QA verifies bugs

Milestone

3 weeks

1 week

Bugs and stabilityVersion release

1 2 3 4 5 6 7 8

Page 10: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Agile Scrum

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.

10

Developers QA

Page 11: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Waterfall to Agile Scrum at AT&T Connect

Agile Scrum Development

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.11

Dev + QA

Sprint

3 weeks Continuous Integration

StabilityVersion Release

91 2 3 4 5 6 7 8 9 11 12 1310

Page 12: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Continuous Integration Processes

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.12

Source control build

Static code analysis

Run automated unit Tests

PackagingPrepare test environment

Deploy to test environment

Run automated sanity tests

Publish report

Continuous Integration

Page 13: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Bug Lifecycle in Scrum

In scrums, bugs have the highest priority and there’s a “Zero-bug-approach!”

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.13

Sometimes, to save time, QA don’t open bug entries

We have to rapidly supply builds as part of Continuous Integration

Complete user story

Build Find bug Fix bug Build Verify bug

Page 14: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

How We Provide Fast and Flexible Builds

• We moved from physical-build machines to VMs

• Each product build runs on a separate VM

• Builds are run in parallel

• We use IncrediBuild for a 10-fold increase in compilation time

• Scrum Masters or authorized users can start a build, any time, with a single click

• We added flexible reporting

• We use Jenkins

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.14

Page 15: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Sanity Tests: We Automate Them

Sanity test =

• Product installation• Application load• Basic functionality working as expected• Reporting

We use JSystem (based on Java®) to write the tests

QA team write and maintain scenarios

We run nightly sanity tests, using PowerShell® scripts

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.15

Page 16: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

How We Made Multi-platform Testing Possible

The Challenge

We don’t know our client configurations…

• OS: XP®/Windows 7®/Windows 8®, 32/64 bit• Browsers: Chrome™/Internet Explorer® 7- 10• MS Office®: 2003/2007/2010• Admin/None Admin

We can think of 100s of combinations

Manual testing by QA on all platforms is impossible

Early feedback is missing

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.16

Page 17: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

How We Made Multi-platform Testing Possible

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.17

Win7 32 Win7 64 XP 32 Win 8 Restart VM

Go back to

snapshot

Install latest

product version

Run sanity tests

Report

Shutdown VM

Running nightly

Chrome FireFox IE9 IE10

Virtual Machines

Page 18: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

We Save Time with AutomaticEnvironment Installations

• Our environment includes more than 10 different kinds of servers and DBs

• Environment preparation takes no more than 1 day

• We use VMs

• We prepare snapshots in advance

• CI environments go back to production versions every night and automatically upgrade to latest versions

• We have different environments for QA, Dev, CI, etc.

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.18

Page 19: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Demo

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.19

Page 20: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Report Example

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.20

Page 21: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Summary

Waterfall to Agile

Continuous Integration

Rapid, fast builds

Sanity tests

Multi-platform testing

Environment installations

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.21

Page 22: Continuous Integration Processes and SCM To Support Test …legacy17.sela.co.il/s/sigist13/_AllPresentations/Day 25... · 2013-10-10 · Managing Configuration Management teams since

Thank You

© 2013 AT&T Intellectual Property. All rights reserved. AT&T and the AT&T logo are trademarks of AT&T Intellectual Property.

SIGIST Conference, July 2013

Gal Fatal

[email protected]

054-342-3864