单元测试(测试function,输入为参数): Mocha.js(浏览器/nodejs)、Jasmine(浏览器)
浏览器环境自动化测试(测试页面,输入为事件):(Selenium 2.0)WebDriver(JAVA/Python/C#) 、PhantomJS(nodeJS) PhontomJS var page = require('webpage').create(); page.open('http://some.org', function (status) { // 打开目标网页 console.log(status); // 用console 或 其他日志工具 记录测试报告 phantom.exit(); });
转载请注明原文地址: https://www.6miu.com/read-53585.html