SlideShare ist ein Scribd-Unternehmen logo
1 von 14
jsTestDriver本地自动化测试




明河(剑平)<minghe36@126.com>
可维护性
代码质量
       目的达到了吗?


       可扩展性
测试脚本与源脚本同目录
      Jasmine运行现状

每个测试脚本对应一个测
    试页
20个     5个     100次
测试脚本   你能忍受?
         浏览器   运行
我们需要一种更具效率的方式!
    jsTestDriver
• 是一个javascript测试工具
• 是一个js单元测试框架
根目录增加
 jsTestDriver.conf




Load:jasmine.js和
JasmineAdapter.js
将测试文件统一
 到一个目录
如何处理脚本依赖?
如何处理kissy的模块依赖?
如何插入html片段?
       不再需要测试运
         行页
如何处理异步加载?
避免异步加载模块
过程,打包所有模
 块成一个文件
使用jasmine-kissy
THANK YOU!

Weitere ähnliche Inhalte

Was ist angesagt?

谈谈缓存
谈谈缓存谈谈缓存
谈谈缓存Weng Wei
 
W3CTech美团react专场-React Native 初探
W3CTech美团react专场-React Native 初探W3CTech美团react专场-React Native 初探
W3CTech美团react专场-React Native 初探美团点评技术团队
 
ASP.Net MVC2 简介
ASP.Net MVC2 简介ASP.Net MVC2 简介
ASP.Net MVC2 简介Allen Lsy
 
Getting started with TDD
Getting started with TDDGetting started with TDD
Getting started with TDDIvan Wei
 
微軟實戰課程日:玩轉雲端 技術與架構
微軟實戰課程日:玩轉雲端 技術與架構微軟實戰課程日:玩轉雲端 技術與架構
微軟實戰課程日:玩轉雲端 技術與架構Jeff Chu
 
Asp.net on windows azure cloud service (updated)
Asp.net on windows azure cloud service (updated)Asp.net on windows azure cloud service (updated)
Asp.net on windows azure cloud service (updated)Jeff Chu
 
Nodejs api server_implement
Nodejs api server_implementNodejs api server_implement
Nodejs api server_implementChi-wen Sun
 
前端性能测试
前端性能测试前端性能测试
前端性能测试tbmallf2e
 
ASP.NET 5 快速入門 (Getting Started ASP.NET 5)
ASP.NET 5 快速入門 (Getting Started ASP.NET 5)ASP.NET 5 快速入門 (Getting Started ASP.NET 5)
ASP.NET 5 快速入門 (Getting Started ASP.NET 5)Jeff Chu
 
快快樂樂學 Angular 2 開發框架
快快樂樂學 Angular 2 開發框架快快樂樂學 Angular 2 開發框架
快快樂樂學 Angular 2 開發框架Will Huang
 
前端编译平台
前端编译平台前端编译平台
前端编译平台Welefen Lee
 
利用Xfire创建Web Service
利用Xfire创建Web Service利用Xfire创建Web Service
利用Xfire创建Web Serviceicy leaf
 
Frontend Devops at Cloudinsight
Frontend Devops at CloudinsightFrontend Devops at Cloudinsight
Frontend Devops at CloudinsightYan Wang
 
再见侏罗纪.S01.e02.CoffeeScript
再见侏罗纪.S01.e02.CoffeeScript再见侏罗纪.S01.e02.CoffeeScript
再见侏罗纪.S01.e02.CoffeeScriptlanlancamp
 
ASP.NET Core 6.0 全新功能探索
ASP.NET Core 6.0 全新功能探索ASP.NET Core 6.0 全新功能探索
ASP.NET Core 6.0 全新功能探索Will Huang
 
[圣思园][Java SE]Websphere.application.developer(wsad)使用外置win cvs解决方案
[圣思园][Java SE]Websphere.application.developer(wsad)使用外置win cvs解决方案[圣思园][Java SE]Websphere.application.developer(wsad)使用外置win cvs解决方案
[圣思园][Java SE]Websphere.application.developer(wsad)使用外置win cvs解决方案ArBing Xie
 

Was ist angesagt? (18)

谈谈缓存
谈谈缓存谈谈缓存
谈谈缓存
 
Why Maven
Why MavenWhy Maven
Why Maven
 
W3CTech美团react专场-React Native 初探
W3CTech美团react专场-React Native 初探W3CTech美团react专场-React Native 初探
W3CTech美团react专场-React Native 初探
 
ASP.Net MVC2 简介
ASP.Net MVC2 简介ASP.Net MVC2 简介
ASP.Net MVC2 简介
 
Getting started with TDD
Getting started with TDDGetting started with TDD
Getting started with TDD
 
微軟實戰課程日:玩轉雲端 技術與架構
微軟實戰課程日:玩轉雲端 技術與架構微軟實戰課程日:玩轉雲端 技術與架構
微軟實戰課程日:玩轉雲端 技術與架構
 
Asp.net on windows azure cloud service (updated)
Asp.net on windows azure cloud service (updated)Asp.net on windows azure cloud service (updated)
Asp.net on windows azure cloud service (updated)
 
Nodejs api server_implement
Nodejs api server_implementNodejs api server_implement
Nodejs api server_implement
 
前端性能测试
前端性能测试前端性能测试
前端性能测试
 
ASP.NET 5 快速入門 (Getting Started ASP.NET 5)
ASP.NET 5 快速入門 (Getting Started ASP.NET 5)ASP.NET 5 快速入門 (Getting Started ASP.NET 5)
ASP.NET 5 快速入門 (Getting Started ASP.NET 5)
 
快快樂樂學 Angular 2 開發框架
快快樂樂學 Angular 2 開發框架快快樂樂學 Angular 2 開發框架
快快樂樂學 Angular 2 開發框架
 
API Mocking
API MockingAPI Mocking
API Mocking
 
前端编译平台
前端编译平台前端编译平台
前端编译平台
 
利用Xfire创建Web Service
利用Xfire创建Web Service利用Xfire创建Web Service
利用Xfire创建Web Service
 
Frontend Devops at Cloudinsight
Frontend Devops at CloudinsightFrontend Devops at Cloudinsight
Frontend Devops at Cloudinsight
 
再见侏罗纪.S01.e02.CoffeeScript
再见侏罗纪.S01.e02.CoffeeScript再见侏罗纪.S01.e02.CoffeeScript
再见侏罗纪.S01.e02.CoffeeScript
 
ASP.NET Core 6.0 全新功能探索
ASP.NET Core 6.0 全新功能探索ASP.NET Core 6.0 全新功能探索
ASP.NET Core 6.0 全新功能探索
 
[圣思园][Java SE]Websphere.application.developer(wsad)使用外置win cvs解决方案
[圣思园][Java SE]Websphere.application.developer(wsad)使用外置win cvs解决方案[圣思园][Java SE]Websphere.application.developer(wsad)使用外置win cvs解决方案
[圣思园][Java SE]Websphere.application.developer(wsad)使用外置win cvs解决方案
 

Andere mochten auch

Change Your Facebook Profile Language
Change Your Facebook Profile LanguageChange Your Facebook Profile Language
Change Your Facebook Profile LanguageSonia Saggu
 
Ant构建工具快速入门
Ant构建工具快速入门Ant构建工具快速入门
Ant构建工具快速入门minghe36
 
Protect Pen Drive (USB) Using Password
Protect Pen Drive (USB) Using PasswordProtect Pen Drive (USB) Using Password
Protect Pen Drive (USB) Using PasswordSonia Saggu
 
Register avast! free antivirus 2014 - Get 1 Year Licence Key
Register avast! free antivirus 2014 - Get 1 Year Licence KeyRegister avast! free antivirus 2014 - Get 1 Year Licence Key
Register avast! free antivirus 2014 - Get 1 Year Licence KeySonia Saggu
 
Disable windows 8 or 8.1 Startup Password
Disable windows 8 or 8.1 Startup PasswordDisable windows 8 or 8.1 Startup Password
Disable windows 8 or 8.1 Startup PasswordSonia Saggu
 

Andere mochten auch (7)

Change Your Facebook Profile Language
Change Your Facebook Profile LanguageChange Your Facebook Profile Language
Change Your Facebook Profile Language
 
Bonsai show08
Bonsai show08Bonsai show08
Bonsai show08
 
Ant构建工具快速入门
Ant构建工具快速入门Ant构建工具快速入门
Ant构建工具快速入门
 
Protect Pen Drive (USB) Using Password
Protect Pen Drive (USB) Using PasswordProtect Pen Drive (USB) Using Password
Protect Pen Drive (USB) Using Password
 
Las redes sociales
Las redes socialesLas redes sociales
Las redes sociales
 
Register avast! free antivirus 2014 - Get 1 Year Licence Key
Register avast! free antivirus 2014 - Get 1 Year Licence KeyRegister avast! free antivirus 2014 - Get 1 Year Licence Key
Register avast! free antivirus 2014 - Get 1 Year Licence Key
 
Disable windows 8 or 8.1 Startup Password
Disable windows 8 or 8.1 Startup PasswordDisable windows 8 or 8.1 Startup Password
Disable windows 8 or 8.1 Startup Password