mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
Preliminary Appium support.
This commit is contained in:
parent
633b1764df
commit
70ced9ac38
2 changed files with 19 additions and 0 deletions
|
@ -53,6 +53,8 @@ gulp.task('karma', function (done) {
|
||||||
|
|
||||||
if (gutil.env.multi) {
|
if (gutil.env.multi) {
|
||||||
protractorConfig = './res/test/protractor-multi.conf'
|
protractorConfig = './res/test/protractor-multi.conf'
|
||||||
|
} else if (gutil.env.appium) {
|
||||||
|
protractorConfig = './res/test/protractor-appium.conf'
|
||||||
}
|
}
|
||||||
|
|
||||||
gulp.task('webdriver-update', protractor.webdriver_update)
|
gulp.task('webdriver-update', protractor.webdriver_update)
|
||||||
|
|
17
res/test/protractor-appium.conf.js
Normal file
17
res/test/protractor-appium.conf.js
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
var config = require('./protractor.conf').config
|
||||||
|
|
||||||
|
config.seleniumAddress = 'http://localhost:4723/wd/hub'
|
||||||
|
config.chromeOnly = false
|
||||||
|
//config.capabilities = {
|
||||||
|
// platformName: 'iOS',
|
||||||
|
// deviceName: 'iPhone Simulator',
|
||||||
|
// browserName: 'Safari'
|
||||||
|
//}
|
||||||
|
|
||||||
|
config.capabilities = {
|
||||||
|
platformName: 'Android',
|
||||||
|
deviceName: '',
|
||||||
|
browserName: 'Chrome'
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.config = config
|
Loading…
Add table
Add a link
Reference in a new issue