-
StackOverflow 文档
-
protractor 教程
-
Protractor 配置文件
-
配置文件多功能模拟 - chrome
var config = {};
var timeout = 120000;
config.framework = 'jasmine2';
config.allScriptsTimeout = timeout;
config.getPageTimeout = timeout;
config.jasmineNodeOpts.isVerbose = true;
config.jasmineNodeOpts.defaultTimeoutInterval = timeout;
config.specs = ['qa/**/*Spec.js'];
config.multiCapabilities = [{
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 2,
'chromeOptions': {
'args': ['start-minimized', 'window-size=1920,1080']
}
},
{
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 1,
'chromeOptions': {
'args': ['show-fps-counter=true'],
'mobileEmulation': {
'deviceName': 'Apple iPhone 6'
}
}
}
];
exports.config = config;