More Related Content
Similar to 【前端测试】打造自动化的持续集成测试系统 (20)
More from taobao.com (20)
【前端测试】打造自动化的持续集成测试系统
- 1. 测试 –
动 续 测试 统
Yahoo! 师
July 8, 2011
- 2. About
/Clay Liao
/Twitter @clayliao
- 3. Agenda
简 续 Continuous Integration, CI
独 YUI Test
实浏览 测试 -- Selenium
续 块 图 -- Hudson
Live Demo
2
- 6. 续
将 码 为 维护
针对这 单 测试
码 统 产
Commit Build 报
统 时间 动 码 经过 测试
产 Nightly Build 报
Exploration Testing
- 9. Sample code
var testcase = new YUITest.TestCase({
Name: ”Sample Test Case”,
testSomething: function(){
YUITest.Assert.isTrue(true);
},
“Test Something”: function(){
YUITest.Assert.isTrue(true);
}
});
8
- 14. 逻辑 测试
function(){
if(condition){
doSomething();
} else {
doSomethingElse();
}
}
13
- 17. Selenium
Web Application testing system
Functional testing
实浏览 环 测试
http://seleniumhq.org/
16
- 21. Hudson
Continuous build/testing system
http://hudson-ci.org/
20
- 23. Hudson Selenium Selenium
Driver RC
22
- 26. YUI Test
java -jar yuitest-selenium-driver.jar
–resultsdir ~/results
http://127.0.0.1/basic-usage-example.htm
25
- 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