Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

【前端測試】打造自動化的持續集成測試系統

2,060 views

Published on

Published in: Technology
  • Be the first to comment

【前端測試】打造自動化的持續集成測試系統

  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. Nicholas C. Zakas 7
  9. 9. 拟 实浏览 环 为 8
  10. 10. Sample codevar testcase = new YUITest.TestCase({ Name: ”Sample Test Case”, testSomething: function(){ YUITest.Assert.isTrue(true); }, “Test Something”: function(){ YUITest.Assert.isTrue(true); }}); 9
  11. 11. 浏览 YUI Test
  12. 12. AJAX 测试 11
  13. 13. 测试 12
  14. 14. 码 盖 13
  15. 15. 逻辑 测试function(){ if(condition){ doSomething(); } else { doSomethingElse(); }} 14
  16. 16. 独 运 JS 15
  17. 17. HUDSON SELENIUM为 续 统 16
  18. 18. Selenium   Web Application testing system   Functional testing   实浏览 环 测试 http://seleniumhq.org/ 17
  19. 19. Selenium IDE   Firefox   錄 步   18
  20. 20. Selenium Remote Control 19
  21. 21. Selenium RC 20
  22. 22. Hudson   Continuous build/testing system   http://hudson-ci.org/ 21
  23. 23. ?Hudson Selenium RC 22
  24. 24. Hudson Selenium Selenium Driver RC 23
  25. 25. 24
  26. 26. YUI TEST + SELENIUM 25
  27. 27. YUI Testjava -jar yuitest-selenium-driver.jar–resultsdir ~/resultshttp://127.0.0.1/basic-usage-example.htm 26
  28. 28. 动开启浏览 测试
  29. 29. 28
  30. 30. YUI TEST + SELENIUM + HUDSON 29
  31. 31. Test Job in Hudson 30
  32. 32. 31
  33. 33. LIVE DEMO 32
  34. 34. YUI TEST+ SELENIUM+ HUDSON= 33
  35. 35. 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/ 34
  36. 36. Questions?

×