【前端测试】打造自动化的持续集成测试系统

9,860 views
9,765 views

Published on

Published in: Technology, Business
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
9,860
On SlideShare
0
From Embeds
0
Number of Embeds
6,843
Actions
Shares
0
Downloads
93
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

【前端测试】打造自动化的持续集成测试系统

  1. 1. 测试 – 动 续 测试 统 Yahoo! 师 July 8, 2011
  2. 2. About  /Clay Liao   /Twitter @clayliao
  3. 3. Agenda  简 续 Continuous Integration, CI  独 YUI Test  实浏览 测试 -- Selenium  续 块 图 -- Hudson  Live Demo 2
  4. 4. 3
  5. 5. 续CONTINUOUS INTEGRATION 4
  6. 6. 续  将 码 为 维护  针对这 单 测试  码 统 产 Commit Build 报  统 时间 动 码 经过 测试 产 Nightly Build 报  Exploration Testing
  7. 7. 6
  8. 8. 拟 实浏览 环 为 7
  9. 9. Sample codevar testcase = new YUITest.TestCase({ Name: ”Sample Test Case”, testSomething: function(){ YUITest.Assert.isTrue(true); }, “Test Something”: function(){ YUITest.Assert.isTrue(true); }}); 8
  10. 10. 浏览 YUI Test
  11. 11. AJAX 测试 10
  12. 12. 测试 11
  13. 13. 码 盖 12
  14. 14. 逻辑 测试function(){ if(condition){ doSomething(); } else { doSomethingElse(); }} 13
  15. 15. 独 运 JS 14
  16. 16. HUDSON SELENIUM为 续 统 15
  17. 17. Selenium   Web Application testing system   Functional testing   实浏览 环 测试 http://seleniumhq.org/ 16
  18. 18. Selenium IDE   Firefox   錄 步   17
  19. 19. Selenium Remote Control 18
  20. 20. Selenium RC 19
  21. 21. Hudson   Continuous build/testing system   http://hudson-ci.org/ 20
  22. 22. ?Hudson Selenium RC 21
  23. 23. Hudson Selenium Selenium Driver RC 22
  24. 24. 23
  25. 25. YUI TEST + SELENIUM 24
  26. 26. YUI Testjava -jar yuitest-selenium-driver.jar–resultsdir ~/resultshttp://127.0.0.1/basic-usage-example.htm 25
  27. 27. 动开启浏览 测试
  28. 28. 27
  29. 29. YUI TEST + SELENIUM + HUDSON 28
  30. 30. Test Job in Hudson 29
  31. 31. 30
  32. 32. LIVE DEMO 31
  33. 33. YUI TEST+ SELENIUM+ HUDSON= 32
  34. 34. Reference  https://github.com/nzakas/yuitest  http://yuilibrary.com/yuitest/  http://www.yuiblog.com/blog/2010/11/09 /introducing-the-new-yui-test/  http://developer.yahoo.com/yui/3/test/ 33
  35. 35. Questions?

×