SlideShare uma empresa Scribd logo
1 de 26
Baixar para ler offline
ATDD In Practice
A NSN Story




Public
1        © Nokia Siemens Networks
Background


                                    Name : XU YI (徐毅)
                                    Title : Consultant, Agile Development


                                    Story
                                    •   One release of an radio product’s transport
                                        platform
                                    •   Multi-site development, hybrid style (waterfall,
                                        Agile)
                                    •   I was Scrum Master / Test Automation Coach
                                    •   Continuous integration, ATDD, Scrum, etc.




Public
2        © Nokia Siemens Networks
60,000 people in more than 150 countries
           More than 600 Communications Service
           Provider customers
           World’s second largest telecommunications
           supplier
           Every second we touch the lives of millions of
           individuals.




Public
3        © Nokia Siemens Networks
Global presence
- close to key markets and customers
                                                                North East
          North
          America



                                    West & South
                                    Europe

                                                      Greater
                                                      China
             Latin
             America

                                                            APAC
                                        Middle East
                                        & Africa
   R&D in all technology
   hotspots in the world. Major
   sites in Finland, Germany,
   China, India and US.

Public
4        © Nokia Siemens Networks
Unit And Acceptance Tests

What is ATDD?
         Acceptance Test-Driven Development




Unit And Acceptance Tests
         Unit Test : CODE-FACING
            Express expectations that developers have about the code

         Acceptance Test : BUSINCESS-FACING
            Express expectations that Product Owners or other business stakeholders
                have about externally visible behavior of the software under test




Public
5         © Nokia Siemens Networks
Unit TDD ≠ Unit testing

                                    It is a   DESIGN practice!

     Acceptance TDD is not just testing
               It is a
                            REQUIREMENT ANALYSIS
                                  practice!


Public
6        © Nokia Siemens Networks
Acceptance-Test Driven Development (ATDD)
  Cycle




Public   Elisabeth Hendrickson Slide
7        © Nokia Siemens Networks
ATDD: Discuss




                                                                                               Concrete
                                                                                                 Tests



Public   Elisabeth Hendrickson Slide
8        © Nokia Siemens Networks   Xu Yi (徐毅) / 24th October 2009 / Agile Tour Chengdu 2009
Requirement Analysis

• i.e. Scrum Backlog Grooming
         – Product Owner, Team, Scrum Master
         – Clarify User Stories
         – Generate Acceptance Tests




Public
9         © Nokia Siemens Networks
Case Study : A Simple Web Application

• User could login using correct
         username and password
         – “Valid Login”


• User can not login using
         incorrect username and/or
         password




  DISCUSS
Public
10        © Nokia Siemens Networks
Valid Login

We have two administrators, they must be able to login
• Username : “demo”; password : “mode”.
• Username : “dave”; password : “wibble”.

So we have cases
• Demo Login Successfully
• Dave Login Successfully




  DISCUSS
Public
11       © Nokia Siemens Networks
Demo Login Successfully

What should “demo” do to login?

Eh, have to go to the login page first

Next, input and confirm the data

Then “demo” should be in the welcome page




  DISCUSS                   DESIGN
Public
12       © Nokia Siemens Networks
ATDD: Develop




Public   Elisabeth Hendrickson Slide
13       © Nokia Siemens Networks
Wibble Login Successfully

How about “wibble” login?

Wait a moment, is this case so similar to “demo” one?

Let’s remove the duplication!




  DESIGN
Public
14       © Nokia Siemens Networks
The duplication

The only differences :
• Username
• Password

Let’s put them as variables! (in the user keyword)




  DESIGN
Public
15       © Nokia Siemens Networks
DEVELOP

And more test automation design stuff ……




  DESIGN                 DEVELOP
Public
16       © Nokia Siemens Networks
ATDD: Deliver




Public   Elisabeth Hendrickson Slide
17       © Nokia Siemens Networks
DELIVER – Test Part

Some final clean up…

Ok, here is

And its logs …




  DELIVER
Public
18       © Nokia Siemens Networks
ATDD Cycle using robotframework



                                               DELIVER

  DISCUSS




                                    Automated Acceptance




                                                                        e
                                                                        Cod
                                    Test cases (e.g. Robot)
                                                              TDD
                                                              Cycle

                                                                      DEVELOP


Public
19       © Nokia Siemens Networks
Lessons Learned - Success Factors


•        Collaboration
•        Consider and integrate effort into whole development cycle
•        Reliable and robust tests
•        Frequent execution




Public
20        © Nokia Siemens Networks
Lessons Learned - Shared Vocabulary

• Discussing, designing and creating keywords for testing, build
  a domain-specific language that describes the system under
  test.
• The terms are ubiquitous, which creates a shared vocabulary
  that everyone on the team has the same understanding of the
  words
• On the way, misunderstandings are uncovered and discussed,
  different opinions are respected and considered.




Public
21       © Nokia Siemens Networks
Environment

Must
• python 2.7
• robotframework 2.5.1

• jre-6u16-windows-i586-s.exe
• robotframework-seleniumlibrary-2.4.win32.exe

Should
• robotide-0.26.1.win32.exe
• wxPython2.8-win32-unicode-2.8.11.0-py27.exe

Could
• rfdoc-0.2.tar.gz

                                    # robotframework website : http://robotframework.org


Public
22       © Nokia Siemens Networks
Retrospective
                                                              Talk With Your Pair
                                                              • MY FAVOURITE …
                                                              • MY QUESTION …
                                                              • MY SUGGESTION …

                                               DELIVER

DISCUSS




                                    Automated Acceptance
                                    Test cases (e.g. Robot)
                                                                             Code




                                                                 TDD
                                                                 Cycle

                                                                         DEVELOP



Public
23       © Nokia Siemens Networks
Thanks!

                                                Xu Yi
                                               (徐毅)

                                              twitter : kaverjody
                                            t.sina.cn : kaverjody
                                            t.qq.com : kaverjody
                                           mailto:yi.xu@nsn.com
                                    http://blog.sina.com.cn/kaverjody
                                    http://www.linkedin.com/in/kaveri

                 “Consultant, Agile Development” @ Nokia Siemens Networks
                     Scrum / Agile Coaching, Testing & Test Automation



Public
24       © Nokia Siemens Networks
关于我
  曾任职诺基亚西门子网络公司
全球精益及敏捷转型部门担任精益
及敏捷顾问。
  专长于大型组织(>500人)的敏
捷迁徙转变。精通各种风格、类型
的黑盒测试,包括验收性测试驱动
开发、探索性测试、测试自动化等
等。在辅助一个400人的大型组织
搭建、规范化测试自动化系统及实
践之后,选择传授敏捷/Scrum以及
精益的要义,辅导其他组织进行转
变。兴趣广泛,包括但不限于各种
类型测试、敏捷/Scrum及精益。
    国内敏捷会议的常客,近期的
有敏捷中国2010,Scrum Gathering
Shanghai 2010,以及2009、2010
年的敏捷全球之旅中国站活动。
      更多信息请看LinkedIn主页:
http://cn.linkedin.com/in/kaveri

2   © Copyright 2010 Hewlett-Packard Development Company, L.P.
联系方式

惠普邮箱:mailto:YI.XU@HP.com

 mailto:KAVERJODY@GMAIL.com
 mailto:KAVERJODY@MSN.com

              Skype : KAVERJODY
              新浪微博: 徐毅-Kaveri
              腾讯QQ : 17376122

http://blog.sina.com.cn/kaverjody
 http://kaverjody.wordpress.com
 http://cn.linkedin.com/in/kaveri

 20   © Copyright 2010 Hewlett-Packard Development Company, L.P.

Mais conteúdo relacionado

Destaque

Flexi multiradio bts lte installation site requirements
Flexi multiradio bts lte installation site requirementsFlexi multiradio bts lte installation site requirements
Flexi multiradio bts lte installation site requirementsAchmad Salsabil
 
Og 102 site survey and layout of bts issue1.5
Og 102 site survey and layout of bts issue1.5Og 102 site survey and layout of bts issue1.5
Og 102 site survey and layout of bts issue1.5Ketut Widya
 
Routing over ericsson mini link
Routing over ericsson mini linkRouting over ericsson mini link
Routing over ericsson mini linkAhmed Nabeeh
 
Presentation of NSN training
Presentation of NSN trainingPresentation of NSN training
Presentation of NSN trainingBhavin_Halani
 
Bts-site-installation
 Bts-site-installation Bts-site-installation
Bts-site-installationAli Usman
 
Ericsson Microwave Outlook 2016
Ericsson Microwave Outlook 2016Ericsson Microwave Outlook 2016
Ericsson Microwave Outlook 2016Ericsson
 
5G Presentation
5G Presentation5G Presentation
5G PresentationEricsson
 
Throughput Calculation for LTE TDD and FDD System
Throughput Calculation for  LTE TDD and FDD SystemThroughput Calculation for  LTE TDD and FDD System
Throughput Calculation for LTE TDD and FDD SystemSukhvinder Singh Malik
 
Bts installation & commisioning.ppt
Bts installation & commisioning.pptBts installation & commisioning.ppt
Bts installation & commisioning.pptAIRTEL
 
Cell tower, BTS & antennas
Cell tower, BTS & antennasCell tower, BTS & antennas
Cell tower, BTS & antennasnimay1
 

Destaque (11)

Flexi multiradio bts lte installation site requirements
Flexi multiradio bts lte installation site requirementsFlexi multiradio bts lte installation site requirements
Flexi multiradio bts lte installation site requirements
 
Og 102 site survey and layout of bts issue1.5
Og 102 site survey and layout of bts issue1.5Og 102 site survey and layout of bts issue1.5
Og 102 site survey and layout of bts issue1.5
 
Routing over ericsson mini link
Routing over ericsson mini linkRouting over ericsson mini link
Routing over ericsson mini link
 
Presentation of NSN training
Presentation of NSN trainingPresentation of NSN training
Presentation of NSN training
 
Bts-site-installation
 Bts-site-installation Bts-site-installation
Bts-site-installation
 
Ericsson Microwave Outlook 2016
Ericsson Microwave Outlook 2016Ericsson Microwave Outlook 2016
Ericsson Microwave Outlook 2016
 
5G Presentation
5G Presentation5G Presentation
5G Presentation
 
WiMAX vs LTE
WiMAX vs LTEWiMAX vs LTE
WiMAX vs LTE
 
Throughput Calculation for LTE TDD and FDD System
Throughput Calculation for  LTE TDD and FDD SystemThroughput Calculation for  LTE TDD and FDD System
Throughput Calculation for LTE TDD and FDD System
 
Bts installation & commisioning.ppt
Bts installation & commisioning.pptBts installation & commisioning.ppt
Bts installation & commisioning.ppt
 
Cell tower, BTS & antennas
Cell tower, BTS & antennasCell tower, BTS & antennas
Cell tower, BTS & antennas
 

Semelhante a Atdd In Practice (Agile Tour 2010 Qingdao)

Best practices for Vblock Monitoring with FusionStorm and Nimsoft
Best practices for Vblock Monitoring with FusionStorm and NimsoftBest practices for Vblock Monitoring with FusionStorm and Nimsoft
Best practices for Vblock Monitoring with FusionStorm and NimsoftCA Nimsoft
 
Modeling for Fun and Profit
Modeling for Fun and ProfitModeling for Fun and Profit
Modeling for Fun and ProfitDavid Sciamma
 
Modeling for Fun and Profit
Modeling for Fun and ProfitModeling for Fun and Profit
Modeling for Fun and ProfitDavid Sciamma
 
Got Shadow IT? How to Win-Win with a Private Cloud.
Got Shadow IT? How to Win-Win with a Private Cloud.Got Shadow IT? How to Win-Win with a Private Cloud.
Got Shadow IT? How to Win-Win with a Private Cloud.Platform9
 
DEVNET-1147 Energizing Your Career with Cloud Technologies
DEVNET-1147	Energizing Your Career with Cloud TechnologiesDEVNET-1147	Energizing Your Career with Cloud Technologies
DEVNET-1147 Energizing Your Career with Cloud TechnologiesCisco DevNet
 
Practical Microservice Architecture (edition 2022).pdf
Practical Microservice Architecture (edition 2022).pdfPractical Microservice Architecture (edition 2022).pdf
Practical Microservice Architecture (edition 2022).pdfAhmed Misbah
 
Apache coneu 2009-adrian-trenaman-adopting-open-source-in-the-enterprise
Apache coneu 2009-adrian-trenaman-adopting-open-source-in-the-enterpriseApache coneu 2009-adrian-trenaman-adopting-open-source-in-the-enterprise
Apache coneu 2009-adrian-trenaman-adopting-open-source-in-the-enterpriseAdrian Trenaman
 
Engineering Effectiveness
Engineering EffectivenessEngineering Effectiveness
Engineering EffectivenessMarcio Sete
 
The Cloud Security Landscape
The Cloud Security LandscapeThe Cloud Security Landscape
The Cloud Security LandscapePeter Wood
 
6th SDN Interest Group Seminar - Session7 (131210)
6th SDN Interest Group Seminar - Session7 (131210)6th SDN Interest Group Seminar - Session7 (131210)
6th SDN Interest Group Seminar - Session7 (131210)NAIM Networks, Inc.
 
Microsoft, Citrix and SCOM: EOL or a New Beginning ?
Microsoft, Citrix and SCOM:  EOL or a New Beginning ?Microsoft, Citrix and SCOM:  EOL or a New Beginning ?
Microsoft, Citrix and SCOM: EOL or a New Beginning ?eG Innovations
 
Tw Technology Radar Qtb Sep11
Tw Technology Radar Qtb Sep11Tw Technology Radar Qtb Sep11
Tw Technology Radar Qtb Sep11Adrian Treacy
 
Yvonne Salazar Engineering PM 4 Hire
Yvonne Salazar Engineering PM 4 HireYvonne Salazar Engineering PM 4 Hire
Yvonne Salazar Engineering PM 4 HireYvonne C. Salazar
 
Operationalizing Docker at Scale: Lessons from Running Microservices in Produ...
Operationalizing Docker at Scale: Lessons from Running Microservices in Produ...Operationalizing Docker at Scale: Lessons from Running Microservices in Produ...
Operationalizing Docker at Scale: Lessons from Running Microservices in Produ...SignalFx
 
Applying 'Kanban' in Enterprise-Class Products Sustaining Engineering - An Ex...
Applying 'Kanban' in Enterprise-Class Products Sustaining Engineering - An Ex...Applying 'Kanban' in Enterprise-Class Products Sustaining Engineering - An Ex...
Applying 'Kanban' in Enterprise-Class Products Sustaining Engineering - An Ex...Tathagat Varma
 
World Wide Technology Webinar - Software Defined Networking
World Wide Technology Webinar - Software Defined NetworkingWorld Wide Technology Webinar - Software Defined Networking
World Wide Technology Webinar - Software Defined NetworkingWorld Wide Technology
 

Semelhante a Atdd In Practice (Agile Tour 2010 Qingdao) (20)

Best practices for Vblock Monitoring with FusionStorm and Nimsoft
Best practices for Vblock Monitoring with FusionStorm and NimsoftBest practices for Vblock Monitoring with FusionStorm and Nimsoft
Best practices for Vblock Monitoring with FusionStorm and Nimsoft
 
Modeling for Fun and Profit
Modeling for Fun and ProfitModeling for Fun and Profit
Modeling for Fun and Profit
 
Modeling for Fun and Profit
Modeling for Fun and ProfitModeling for Fun and Profit
Modeling for Fun and Profit
 
Science Soft Company Presentation
Science Soft Company PresentationScience Soft Company Presentation
Science Soft Company Presentation
 
Got Shadow IT? How to Win-Win with a Private Cloud.
Got Shadow IT? How to Win-Win with a Private Cloud.Got Shadow IT? How to Win-Win with a Private Cloud.
Got Shadow IT? How to Win-Win with a Private Cloud.
 
DEVNET-1147 Energizing Your Career with Cloud Technologies
DEVNET-1147	Energizing Your Career with Cloud TechnologiesDEVNET-1147	Energizing Your Career with Cloud Technologies
DEVNET-1147 Energizing Your Career with Cloud Technologies
 
Practical Microservice Architecture (edition 2022).pdf
Practical Microservice Architecture (edition 2022).pdfPractical Microservice Architecture (edition 2022).pdf
Practical Microservice Architecture (edition 2022).pdf
 
Apache coneu 2009-adrian-trenaman-adopting-open-source-in-the-enterprise
Apache coneu 2009-adrian-trenaman-adopting-open-source-in-the-enterpriseApache coneu 2009-adrian-trenaman-adopting-open-source-in-the-enterprise
Apache coneu 2009-adrian-trenaman-adopting-open-source-in-the-enterprise
 
Managed Services Overview
Managed Services OverviewManaged Services Overview
Managed Services Overview
 
Jobs in the Cloud
 Jobs in the Cloud Jobs in the Cloud
Jobs in the Cloud
 
Engineering Effectiveness
Engineering EffectivenessEngineering Effectiveness
Engineering Effectiveness
 
The Cloud Security Landscape
The Cloud Security LandscapeThe Cloud Security Landscape
The Cloud Security Landscape
 
6th SDN Interest Group Seminar - Session7 (131210)
6th SDN Interest Group Seminar - Session7 (131210)6th SDN Interest Group Seminar - Session7 (131210)
6th SDN Interest Group Seminar - Session7 (131210)
 
Microsoft, Citrix and SCOM: EOL or a New Beginning ?
Microsoft, Citrix and SCOM:  EOL or a New Beginning ?Microsoft, Citrix and SCOM:  EOL or a New Beginning ?
Microsoft, Citrix and SCOM: EOL or a New Beginning ?
 
Tw Technology Radar Qtb Sep11
Tw Technology Radar Qtb Sep11Tw Technology Radar Qtb Sep11
Tw Technology Radar Qtb Sep11
 
Yvonne Salazar Engineering PM 4 Hire
Yvonne Salazar Engineering PM 4 HireYvonne Salazar Engineering PM 4 Hire
Yvonne Salazar Engineering PM 4 Hire
 
Operationalizing Docker at Scale: Lessons from Running Microservices in Produ...
Operationalizing Docker at Scale: Lessons from Running Microservices in Produ...Operationalizing Docker at Scale: Lessons from Running Microservices in Produ...
Operationalizing Docker at Scale: Lessons from Running Microservices in Produ...
 
Applying 'Kanban' in Enterprise-Class Products Sustaining Engineering - An Ex...
Applying 'Kanban' in Enterprise-Class Products Sustaining Engineering - An Ex...Applying 'Kanban' in Enterprise-Class Products Sustaining Engineering - An Ex...
Applying 'Kanban' in Enterprise-Class Products Sustaining Engineering - An Ex...
 
OpenStack Summit Austin 2016 v1.3
OpenStack Summit Austin 2016 v1.3 OpenStack Summit Austin 2016 v1.3
OpenStack Summit Austin 2016 v1.3
 
World Wide Technology Webinar - Software Defined Networking
World Wide Technology Webinar - Software Defined NetworkingWorld Wide Technology Webinar - Software Defined Networking
World Wide Technology Webinar - Software Defined Networking
 

Mais de Yi Xu

老司机带你游敏捷教练之路
老司机带你游敏捷教练之路老司机带你游敏捷教练之路
老司机带你游敏捷教练之路Yi Xu
 
设计思维、敏捷、Dev ops —— 助力创新交付
设计思维、敏捷、Dev ops —— 助力创新交付设计思维、敏捷、Dev ops —— 助力创新交付
设计思维、敏捷、Dev ops —— 助力创新交付Yi Xu
 
DevOps in China
DevOps in ChinaDevOps in China
DevOps in ChinaYi Xu
 
Fearless Transformation, Safely
Fearless Transformation, SafelyFearless Transformation, Safely
Fearless Transformation, SafelyYi Xu
 
Design Thinking, Agile, DevOps - fuel the innovation delivery
Design Thinking, Agile, DevOps  - fuel the innovation deliveryDesign Thinking, Agile, DevOps  - fuel the innovation delivery
Design Thinking, Agile, DevOps - fuel the innovation deliveryYi Xu
 
Developing Internal Agile Coaches - Global Scrum Gathering Shanghai 2015
Developing Internal Agile Coaches - Global Scrum Gathering Shanghai 2015Developing Internal Agile Coaches - Global Scrum Gathering Shanghai 2015
Developing Internal Agile Coaches - Global Scrum Gathering Shanghai 2015Yi Xu
 
培养内部敏捷教练 - Global Scrum Gathering Shanghai 2015
培养内部敏捷教练 - Global Scrum Gathering Shanghai 2015培养内部敏捷教练 - Global Scrum Gathering Shanghai 2015
培养内部敏捷教练 - Global Scrum Gathering Shanghai 2015Yi Xu
 
Brief Introduction to Agile Software Testing
Brief Introduction to Agile Software TestingBrief Introduction to Agile Software Testing
Brief Introduction to Agile Software TestingYi Xu
 
敏捷软件测试之简介
敏捷软件测试之简介敏捷软件测试之简介
敏捷软件测试之简介Yi Xu
 
银弹!银弹! 徐毅@Italk salon 2011
银弹!银弹! 徐毅@Italk salon 2011银弹!银弹! 徐毅@Italk salon 2011
银弹!银弹! 徐毅@Italk salon 2011Yi Xu
 
测试员自我修养 徐毅@BQConf 20120714
测试员自我修养 徐毅@BQConf 20120714测试员自我修养 徐毅@BQConf 20120714
测试员自我修养 徐毅@BQConf 20120714Yi Xu
 
Scrum为什么有效 徐毅@mpd南京2012
Scrum为什么有效 徐毅@mpd南京2012Scrum为什么有效 徐毅@mpd南京2012
Scrum为什么有效 徐毅@mpd南京2012Yi Xu
 
Agile Testing Days 2012 Takeaway
Agile Testing Days 2012 TakeawayAgile Testing Days 2012 Takeaway
Agile Testing Days 2012 TakeawayYi Xu
 
China Test2012 W2 徐毅 大测大悟 测试的敏捷之道
China Test2012 W2 徐毅 大测大悟   测试的敏捷之道China Test2012 W2 徐毅 大测大悟   测试的敏捷之道
China Test2012 W2 徐毅 大测大悟 测试的敏捷之道Yi Xu
 
敏捷教练之路 徐毅
敏捷教练之路   徐毅敏捷教练之路   徐毅
敏捷教练之路 徐毅Yi Xu
 
现代化敏捷测试工作者
现代化敏捷测试工作者现代化敏捷测试工作者
现代化敏捷测试工作者Yi Xu
 
Testing Theories & Methodologies
Testing Theories & MethodologiesTesting Theories & Methodologies
Testing Theories & MethodologiesYi Xu
 
Be Modern Agile Tester
Be Modern Agile TesterBe Modern Agile Tester
Be Modern Agile TesterYi Xu
 
I Run Out Of Silver Bullets, Now What?
I Run Out Of Silver Bullets, Now What?I Run Out Of Silver Bullets, Now What?
I Run Out Of Silver Bullets, Now What?Yi Xu
 
速度——敏捷开发的丹田之气(2011敏捷中国大会)
速度——敏捷开发的丹田之气(2011敏捷中国大会)速度——敏捷开发的丹田之气(2011敏捷中国大会)
速度——敏捷开发的丹田之气(2011敏捷中国大会)Yi Xu
 

Mais de Yi Xu (20)

老司机带你游敏捷教练之路
老司机带你游敏捷教练之路老司机带你游敏捷教练之路
老司机带你游敏捷教练之路
 
设计思维、敏捷、Dev ops —— 助力创新交付
设计思维、敏捷、Dev ops —— 助力创新交付设计思维、敏捷、Dev ops —— 助力创新交付
设计思维、敏捷、Dev ops —— 助力创新交付
 
DevOps in China
DevOps in ChinaDevOps in China
DevOps in China
 
Fearless Transformation, Safely
Fearless Transformation, SafelyFearless Transformation, Safely
Fearless Transformation, Safely
 
Design Thinking, Agile, DevOps - fuel the innovation delivery
Design Thinking, Agile, DevOps  - fuel the innovation deliveryDesign Thinking, Agile, DevOps  - fuel the innovation delivery
Design Thinking, Agile, DevOps - fuel the innovation delivery
 
Developing Internal Agile Coaches - Global Scrum Gathering Shanghai 2015
Developing Internal Agile Coaches - Global Scrum Gathering Shanghai 2015Developing Internal Agile Coaches - Global Scrum Gathering Shanghai 2015
Developing Internal Agile Coaches - Global Scrum Gathering Shanghai 2015
 
培养内部敏捷教练 - Global Scrum Gathering Shanghai 2015
培养内部敏捷教练 - Global Scrum Gathering Shanghai 2015培养内部敏捷教练 - Global Scrum Gathering Shanghai 2015
培养内部敏捷教练 - Global Scrum Gathering Shanghai 2015
 
Brief Introduction to Agile Software Testing
Brief Introduction to Agile Software TestingBrief Introduction to Agile Software Testing
Brief Introduction to Agile Software Testing
 
敏捷软件测试之简介
敏捷软件测试之简介敏捷软件测试之简介
敏捷软件测试之简介
 
银弹!银弹! 徐毅@Italk salon 2011
银弹!银弹! 徐毅@Italk salon 2011银弹!银弹! 徐毅@Italk salon 2011
银弹!银弹! 徐毅@Italk salon 2011
 
测试员自我修养 徐毅@BQConf 20120714
测试员自我修养 徐毅@BQConf 20120714测试员自我修养 徐毅@BQConf 20120714
测试员自我修养 徐毅@BQConf 20120714
 
Scrum为什么有效 徐毅@mpd南京2012
Scrum为什么有效 徐毅@mpd南京2012Scrum为什么有效 徐毅@mpd南京2012
Scrum为什么有效 徐毅@mpd南京2012
 
Agile Testing Days 2012 Takeaway
Agile Testing Days 2012 TakeawayAgile Testing Days 2012 Takeaway
Agile Testing Days 2012 Takeaway
 
China Test2012 W2 徐毅 大测大悟 测试的敏捷之道
China Test2012 W2 徐毅 大测大悟   测试的敏捷之道China Test2012 W2 徐毅 大测大悟   测试的敏捷之道
China Test2012 W2 徐毅 大测大悟 测试的敏捷之道
 
敏捷教练之路 徐毅
敏捷教练之路   徐毅敏捷教练之路   徐毅
敏捷教练之路 徐毅
 
现代化敏捷测试工作者
现代化敏捷测试工作者现代化敏捷测试工作者
现代化敏捷测试工作者
 
Testing Theories & Methodologies
Testing Theories & MethodologiesTesting Theories & Methodologies
Testing Theories & Methodologies
 
Be Modern Agile Tester
Be Modern Agile TesterBe Modern Agile Tester
Be Modern Agile Tester
 
I Run Out Of Silver Bullets, Now What?
I Run Out Of Silver Bullets, Now What?I Run Out Of Silver Bullets, Now What?
I Run Out Of Silver Bullets, Now What?
 
速度——敏捷开发的丹田之气(2011敏捷中国大会)
速度——敏捷开发的丹田之气(2011敏捷中国大会)速度——敏捷开发的丹田之气(2011敏捷中国大会)
速度——敏捷开发的丹田之气(2011敏捷中国大会)
 

Atdd In Practice (Agile Tour 2010 Qingdao)

  • 1. ATDD In Practice A NSN Story Public 1 © Nokia Siemens Networks
  • 2. Background Name : XU YI (徐毅) Title : Consultant, Agile Development Story • One release of an radio product’s transport platform • Multi-site development, hybrid style (waterfall, Agile) • I was Scrum Master / Test Automation Coach • Continuous integration, ATDD, Scrum, etc. Public 2 © Nokia Siemens Networks
  • 3. 60,000 people in more than 150 countries More than 600 Communications Service Provider customers World’s second largest telecommunications supplier Every second we touch the lives of millions of individuals. Public 3 © Nokia Siemens Networks
  • 4. Global presence - close to key markets and customers North East North America West & South Europe Greater China Latin America APAC Middle East & Africa R&D in all technology hotspots in the world. Major sites in Finland, Germany, China, India and US. Public 4 © Nokia Siemens Networks
  • 5. Unit And Acceptance Tests What is ATDD? Acceptance Test-Driven Development Unit And Acceptance Tests Unit Test : CODE-FACING  Express expectations that developers have about the code Acceptance Test : BUSINCESS-FACING  Express expectations that Product Owners or other business stakeholders have about externally visible behavior of the software under test Public 5 © Nokia Siemens Networks
  • 6. Unit TDD ≠ Unit testing It is a DESIGN practice! Acceptance TDD is not just testing It is a REQUIREMENT ANALYSIS practice! Public 6 © Nokia Siemens Networks
  • 7. Acceptance-Test Driven Development (ATDD) Cycle Public Elisabeth Hendrickson Slide 7 © Nokia Siemens Networks
  • 8. ATDD: Discuss Concrete Tests Public Elisabeth Hendrickson Slide 8 © Nokia Siemens Networks Xu Yi (徐毅) / 24th October 2009 / Agile Tour Chengdu 2009
  • 9. Requirement Analysis • i.e. Scrum Backlog Grooming – Product Owner, Team, Scrum Master – Clarify User Stories – Generate Acceptance Tests Public 9 © Nokia Siemens Networks
  • 10. Case Study : A Simple Web Application • User could login using correct username and password – “Valid Login” • User can not login using incorrect username and/or password DISCUSS Public 10 © Nokia Siemens Networks
  • 11. Valid Login We have two administrators, they must be able to login • Username : “demo”; password : “mode”. • Username : “dave”; password : “wibble”. So we have cases • Demo Login Successfully • Dave Login Successfully DISCUSS Public 11 © Nokia Siemens Networks
  • 12. Demo Login Successfully What should “demo” do to login? Eh, have to go to the login page first Next, input and confirm the data Then “demo” should be in the welcome page DISCUSS DESIGN Public 12 © Nokia Siemens Networks
  • 13. ATDD: Develop Public Elisabeth Hendrickson Slide 13 © Nokia Siemens Networks
  • 14. Wibble Login Successfully How about “wibble” login? Wait a moment, is this case so similar to “demo” one? Let’s remove the duplication! DESIGN Public 14 © Nokia Siemens Networks
  • 15. The duplication The only differences : • Username • Password Let’s put them as variables! (in the user keyword) DESIGN Public 15 © Nokia Siemens Networks
  • 16. DEVELOP And more test automation design stuff …… DESIGN DEVELOP Public 16 © Nokia Siemens Networks
  • 17. ATDD: Deliver Public Elisabeth Hendrickson Slide 17 © Nokia Siemens Networks
  • 18. DELIVER – Test Part Some final clean up… Ok, here is And its logs … DELIVER Public 18 © Nokia Siemens Networks
  • 19. ATDD Cycle using robotframework DELIVER DISCUSS Automated Acceptance e Cod Test cases (e.g. Robot) TDD Cycle DEVELOP Public 19 © Nokia Siemens Networks
  • 20. Lessons Learned - Success Factors • Collaboration • Consider and integrate effort into whole development cycle • Reliable and robust tests • Frequent execution Public 20 © Nokia Siemens Networks
  • 21. Lessons Learned - Shared Vocabulary • Discussing, designing and creating keywords for testing, build a domain-specific language that describes the system under test. • The terms are ubiquitous, which creates a shared vocabulary that everyone on the team has the same understanding of the words • On the way, misunderstandings are uncovered and discussed, different opinions are respected and considered. Public 21 © Nokia Siemens Networks
  • 22. Environment Must • python 2.7 • robotframework 2.5.1 • jre-6u16-windows-i586-s.exe • robotframework-seleniumlibrary-2.4.win32.exe Should • robotide-0.26.1.win32.exe • wxPython2.8-win32-unicode-2.8.11.0-py27.exe Could • rfdoc-0.2.tar.gz # robotframework website : http://robotframework.org Public 22 © Nokia Siemens Networks
  • 23. Retrospective Talk With Your Pair • MY FAVOURITE … • MY QUESTION … • MY SUGGESTION … DELIVER DISCUSS Automated Acceptance Test cases (e.g. Robot) Code TDD Cycle DEVELOP Public 23 © Nokia Siemens Networks
  • 24. Thanks! Xu Yi (徐毅) twitter : kaverjody t.sina.cn : kaverjody t.qq.com : kaverjody mailto:yi.xu@nsn.com http://blog.sina.com.cn/kaverjody http://www.linkedin.com/in/kaveri “Consultant, Agile Development” @ Nokia Siemens Networks Scrum / Agile Coaching, Testing & Test Automation Public 24 © Nokia Siemens Networks
  • 25. 关于我 曾任职诺基亚西门子网络公司 全球精益及敏捷转型部门担任精益 及敏捷顾问。 专长于大型组织(>500人)的敏 捷迁徙转变。精通各种风格、类型 的黑盒测试,包括验收性测试驱动 开发、探索性测试、测试自动化等 等。在辅助一个400人的大型组织 搭建、规范化测试自动化系统及实 践之后,选择传授敏捷/Scrum以及 精益的要义,辅导其他组织进行转 变。兴趣广泛,包括但不限于各种 类型测试、敏捷/Scrum及精益。 国内敏捷会议的常客,近期的 有敏捷中国2010,Scrum Gathering Shanghai 2010,以及2009、2010 年的敏捷全球之旅中国站活动。 更多信息请看LinkedIn主页: http://cn.linkedin.com/in/kaveri 2 © Copyright 2010 Hewlett-Packard Development Company, L.P.
  • 26. 联系方式 惠普邮箱:mailto:YI.XU@HP.com mailto:KAVERJODY@GMAIL.com mailto:KAVERJODY@MSN.com Skype : KAVERJODY 新浪微博: 徐毅-Kaveri 腾讯QQ : 17376122 http://blog.sina.com.cn/kaverjody http://kaverjody.wordpress.com http://cn.linkedin.com/in/kaveri 20 © Copyright 2010 Hewlett-Packard Development Company, L.P.