您是否知道是否可以通过 Appium 和 IOS 模拟器在 MAC 上使用 Protractor (或 WebDriverJS)运行自动化测试?
我们没有成功使用以下配置文件运行测试,否则它可以与 Selenium 2.0 - WebDriver 一起正常工作,
配置文件( Protractor )如下:
exports.config = {
seleniumAddress: 'http://192.168.8.2:4723/wd/hub',
specs: ['todo-spec.js'],
capabilities: {
browserName: 'safari',
'appium-version': '1.3.7',
platformName: 'iOS',
platformVersion: '8.2',
deviceName: 'iPhone 5s'
},
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 90000
}
};
最佳答案
这是我在 appium 中使用 Protractor 的配置文件:
exports.config = {
allScriptsTimeout: 600000,
seleniumAddress: 'http://0.0.0.0:4723/wd/hub',
specs: [
'testsuite/test3.js'
],
capabilities: {
browserName: 'safari',
'appium-version': '1.4.13',
platformName: 'iOS',
platformVersion: '9.3',
deviceName: 'iPad Air',
'autoWebview' : true
},
chromeOnly: false,
baseUrl: 'putyoururlhere',
framework:[
'jasmine'
],
jasmineNodeOpts: {
defaultTimeoutInterval:1000000
}
};
关于javascript - 如何在 MAC 上使用 Protractor 与 Appium 和 IOS-Simulator 进行自动化测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29912567/