【发布时间】:2019-08-01 12:25:51
【问题描述】:
我是 Angular js 中量角器测试工具的新手,我安装了 CORS 扩展 在 chrome 浏览器中,我编写了我的第一个测试用例,我尝试使用 'protractor config.js' chrome 浏览器正在打开,实际上是登录表单,我输入了正确的用户名和密码但它没有连接到服务器,我知道 CORS 扩展被禁用,如何在我运行测试时启用 cors 扩展通过cmd大小写。
我的 config.js
exports.config = {
capabilities: {
// You can use other browsers
// like firefox, phantoms, safari, IE (-_-)
'browserName': 'chrome'
},
specs: [
// We are going to make this file in a minute
'../www/modules/user/login.spec.js',
//'../www/modules/lead/list.spec.js',
],
jasmineNodeOpts: {
showColors: true,
//defaultTimeoutInterval: 30000,
isVerbose: true,
},
allScriptsTimeout: 20000,
onPrepare: function(){
browser.driver.get('http://localhost:8100/');
}
};
【问题讨论】:
标签: angularjs protractor