• Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
9,318
On Slideshare
0
From Embeds
0
Number of Embeds
12

Actions

Shares
Downloads
86
Comments
0
Likes
4

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 测试 – 动 续 测试 统 Yahoo! 师 July 8, 2011
  • 2. About  /Clay Liao   /Twitter @clayliao
  • 3. Agenda  简 续 Continuous Integration, CI  独 YUI Test  实浏览 测试 -- Selenium  续 块 图 -- Hudson  Live Demo 2
  • 4. 3
  • 5. 续CONTINUOUS INTEGRATION 4
  • 6. 续  将 码 为 维护  针对这 单 测试  码 统 产 Commit Build 报  统 时间 动 码 经过 测试 产 Nightly Build 报  Exploration Testing
  • 7. 6
  • 8. 拟 实浏览 环 为 7
  • 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. 浏览 YUI Test
  • 11. AJAX 测试 10
  • 12. 测试 11
  • 13. 码 盖 12
  • 14. 逻辑 测试function(){ if(condition){ doSomething(); } else { doSomethingElse(); }} 13
  • 15. 独 运 JS 14
  • 16. HUDSON SELENIUM为 续 统 15
  • 17. Selenium   Web Application testing system   Functional testing   实浏览 环 测试 http://seleniumhq.org/ 16
  • 18. Selenium IDE   Firefox   錄 步   17
  • 19. Selenium Remote Control 18
  • 20. Selenium RC 19
  • 21. Hudson   Continuous build/testing system   http://hudson-ci.org/ 20
  • 22. ?Hudson Selenium RC 21
  • 23. Hudson Selenium Selenium Driver RC 22
  • 24. 23
  • 25. YUI TEST + SELENIUM 24
  • 26. YUI Testjava -jar yuitest-selenium-driver.jar–resultsdir ~/resultshttp://127.0.0.1/basic-usage-example.htm 25
  • 27. 动开启浏览 测试
  • 28. 27
  • 29. YUI TEST + SELENIUM + HUDSON 28
  • 30. Test Job in Hudson 29
  • 31. 30
  • 32. LIVE DEMO 31
  • 33. YUI TEST+ SELENIUM+ HUDSON= 32
  • 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. Questions?