SlideShare a Scribd company logo
1 of 22
Download to read offline
重温
测试自动化
    徐毅
什么是测试自动化?
 测试自动化就是任何使用工具辅助测试的做法
 (any use of tools to aid testing)。

 它扩大了测试人员的能力范围。




                           ----- James Bach
http://www.satisfice.com/blog/archives/118
任何?
赤手空拳   全副武装
测试自动化与自动化测试

   Test Automation

  Automated Testing
手工测试与探索式测试

   Manual Testing

  Exploratory Testing
测试自动化与探索式测试

   Test Automation

  Exploratory Testing
如果
未能正确地理解
测试自动化,
有什么害处?
常见问题
        不切实际
        的期待
组织层面            低劣的测
 的支持            试实践

工具自身            想找到大
 的问题            量缺陷

 高昂的维          无来由的
  护开销          安全感
局限
无法取代手工测试

手工测试找到更多缺陷

高度依赖测试的质量

不会提高测试的有效性

 会限制软件开发

 工具没有想象力
测试自动化的不同方式
线性脚本




Picture credit to: Nokia, Robotframework
模块化脚本




Picture credit to: Nokia, Robotframework
数据驱动测试




Picture credit to: Nokia, Robotframework
关键字驱动测试




Picture credit to: Nokia, Robotframework
关键字驱动测试:样例




Picture credit to: Nokia, Robotframework
更多……
测试自动化
自働化(Jidoka)
持续集成、部署、交付
ATDD、BDD、SbE
 Thiswork is licensed under the Creative
   Commons Attribution-NonCommercial-
   NoDerivs 2.5 China Mainland License.
  To view a copy of this license, visit
   http://creativecommons.org/licenses/by-
   nc-nd/2.5/cn/ or send a letter to Creative
   Commons, 444 Castro Street, Suite 900,
   Mountain View, California, 94041, USA.




本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可
联系方式
mailto:KAVERJODY@GMAIL.com
 mailto:KAVERJODY@MSN.com

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

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

More Related Content

Viewers also liked

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
 
Transforming Software Development
Transforming Software DevelopmentTransforming Software Development
Transforming Software DevelopmentAmazon Web Services
 
Robot Framework (のSelenium2Libraryのお話)
Robot Framework (のSelenium2Libraryのお話)Robot Framework (のSelenium2Libraryのお話)
Robot Framework (のSelenium2Libraryのお話)泰 増田
 
TDC2016SP - Trilha Embarcados
TDC2016SP - Trilha EmbarcadosTDC2016SP - Trilha Embarcados
TDC2016SP - Trilha Embarcadostdc-globalcode
 
设计思维、敏捷、Dev ops —— 助力创新交付
设计思维、敏捷、Dev ops —— 助力创新交付设计思维、敏捷、Dev ops —— 助力创新交付
设计思维、敏捷、Dev ops —— 助力创新交付Yi 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
 
Behavior Driven Development with Cucumber
Behavior Driven Development with CucumberBehavior Driven Development with Cucumber
Behavior Driven Development with CucumberBrandon Keepers
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'tsPekka Klärck
 
Robot Framework Introduction
Robot Framework IntroductionRobot Framework Introduction
Robot Framework IntroductionPekka Klärck
 

Viewers also liked (9)

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
 
Transforming Software Development
Transforming Software DevelopmentTransforming Software Development
Transforming Software Development
 
Robot Framework (のSelenium2Libraryのお話)
Robot Framework (のSelenium2Libraryのお話)Robot Framework (のSelenium2Libraryのお話)
Robot Framework (のSelenium2Libraryのお話)
 
TDC2016SP - Trilha Embarcados
TDC2016SP - Trilha EmbarcadosTDC2016SP - Trilha Embarcados
TDC2016SP - Trilha Embarcados
 
设计思维、敏捷、Dev ops —— 助力创新交付
设计思维、敏捷、Dev ops —— 助力创新交付设计思维、敏捷、Dev ops —— 助力创新交付
设计思维、敏捷、Dev ops —— 助力创新交付
 
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
 
Behavior Driven Development with Cucumber
Behavior Driven Development with CucumberBehavior Driven Development with Cucumber
Behavior Driven Development with Cucumber
 
Robot Framework Dos And Don'ts
Robot Framework Dos And Don'tsRobot Framework Dos And Don'ts
Robot Framework Dos And Don'ts
 
Robot Framework Introduction
Robot Framework IntroductionRobot Framework Introduction
Robot Framework Introduction
 

More from Yi Xu

老司机带你游敏捷教练之路
老司机带你游敏捷教练之路老司机带你游敏捷教练之路
老司机带你游敏捷教练之路Yi Xu
 
Fearless Transformation, Safely
Fearless Transformation, SafelyFearless Transformation, Safely
Fearless Transformation, SafelyYi 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
 
Atdd In Practice (Agile Tour 2010 Qingdao)
Atdd In Practice (Agile Tour 2010 Qingdao)Atdd In Practice (Agile Tour 2010 Qingdao)
Atdd In Practice (Agile Tour 2010 Qingdao)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
 
Why Scrum Master Ing
Why Scrum Master IngWhy Scrum Master Ing
Why Scrum Master IngYi Xu
 

More from Yi Xu (13)

老司机带你游敏捷教练之路
老司机带你游敏捷教练之路老司机带你游敏捷教练之路
老司机带你游敏捷教练之路
 
Fearless Transformation, Safely
Fearless Transformation, SafelyFearless Transformation, Safely
Fearless Transformation, Safely
 
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 徐毅 大测大悟 测试的敏捷之道
 
敏捷教练之路 徐毅
敏捷教练之路   徐毅敏捷教练之路   徐毅
敏捷教练之路 徐毅
 
Atdd In Practice (Agile Tour 2010 Qingdao)
Atdd In Practice (Agile Tour 2010 Qingdao)Atdd In Practice (Agile Tour 2010 Qingdao)
Atdd In Practice (Agile Tour 2010 Qingdao)
 
现代化敏捷测试工作者
现代化敏捷测试工作者现代化敏捷测试工作者
现代化敏捷测试工作者
 
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敏捷中国大会)
 
Why Scrum Master Ing
Why Scrum Master IngWhy Scrum Master Ing
Why Scrum Master Ing
 

重温测试自动化 徐毅@ChinaTest salon beijing