-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Hi, I am trying to integrate Browserstack with https://github.com/webdriverio/appium-boilerplate/.
I have created new conf.js file
`exports.config = {
services: ['browserstack'],
user: process.env.BROWSERSTACK_USERNAME || 'xxxxxxxxxxxxxxxxxxxxxxxx',
key: process.env.BROWSERSTACK_ACCESS_KEY || '000000000000000000000',
browserstackLocal: true,
updateJob: false,
specs: [
'./tests/specs/app*.spec.js',
],
exclude: [],
capabilities: [{
name: 'single_appium_test',
build: 'webdriver-browserstack',
device: 'Samsung Galaxy S7',
browserName: 'android',
app: process.env.BROWSERSTACK_APP_ID || 'bs://xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
appPackage: 'com.wdiodemoapp',
appActivity: 'com.wdiodemoapp.MainActivity',
'browserstack.debug': true
}],
logLevel: 'verbose',
coloredLogs: true,
screenshotPath: './errorShots/',
baseUrl: '',
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
framework: 'mocha',
mochaOpts: {
ui: 'bdd',
timeout: 20000
}
};
When I am running tests I am getting errors in console:
> [email protected] android.browserstack C:\Source\appium-boilerplate-master
wdio ./config/wdio.android.browserstack.conf.js
2019-03-13T15:21:42.248Z DEBUG wdio-config: @wdio/sync found, running tests synchronous
2019-03-13T15:21:42.880Z DEBUG wdio-cli:run: Run suite with config ./config/wdio.android.browserstack.conf.js and params { _: [ './config/wdio.android.browserstack.conf.js' ],
'$0': 'node_modules\@wdio\cli\bin\wdio.js' }
Test Suites: 0 passed, 6 total (0% completed)
Time: π 0.09s
Test Suites: 0 passed, 6 total (0% completed)
Time: π 0.13s
RUNNING 0-3 in android - \tests\specs\app.swipe.spec.js
RUNNING 0-4 in android - \tests\specs\app.webview.spec.js
RUNNING 0-5 in android - \tests\specs\app.webview.xpath.spec.js
Stdout:
2019-03-13T15:21:43.043Z INFO wdio-local-runner: Start worker 0-5 with arg: ./config/wdio.android.browserstack.conf.js
2019-03-13T15:21:43.204Z DEBUG wdio-local-runner: Runner 0-1 finished with exit code 1
2019-03-13T15:21:43.214Z DEBUG wdio-local-runner: Runner 0-0 finished with exit code 1
2019-03-13T15:21:43.230Z DEBUG wdio-local-runner: Runner 0-2 finished with exit code 1
2019-03-13T15:21:43.246Z DEBUG wdio-local-runner: Runner 0-3 finished with exit code 1
Stderr:
[0-0]
C:\Source\appium-boilerplate-master\node_modules\loglevel\lib\loglevel.js:186
throw "log.setLevel() called with invalid level: " + level;
^
log.setLevel() called with invalid level: verbose
[0-1]
C:\Source\appium-boilerplate-master\node_modules\loglevel\lib\loglevel.js:186
throw "log.setLevel() called with invalid level: " + level;
^
log.setLevel() called with invalid level: verbose
[0-2]
C:\Source\appium-boilerplate-master\node_modules\loglevel\lib\loglevel.js:186
throw "log.setLevel() called with invalid level: " + level;
^
log.setLevel() called with invalid level: verbose
[0-2]
C:\Source\appium-boilerplate-master\node_modules\loglevel\lib\loglevel.js:186
throw "log.setLevel() called with invalid level: " + level;
^
log.setLevel() called with invalid level: verbose
[0-3]
C:\Source\appium-boilerplate-master\node_modules\loglevel\lib\loglevel.js:186
throw "log.setLevel() called with invalid level: " + level;
^
log.setLevel() called with invalid level: verbose
[0-4]
C:\Source\appium-boilerplate-master\node_modules\loglevel\lib\loglevel.js:186
throw "log.setLevel() called with invalid level: " + level;
^
log.setLevel() called with invalid level: verbose
[0-5]
C:\Source\appium-boilerplate-master\node_modules\loglevel\lib\loglevel.js:186
throw "log.setLevel() called with invalid level: " + level;
^
log.setLevel() called with invalid level: verbose
Test Suites: 0 passed, 6 failed, 6 total (100% completed)
Time: π 0.37s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] android.browserstack: wdio ./config/wdio.android.browserstack.conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] android.browserstack script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2019-03-13T15_21_43_294Z-debug.log
`
How can i make these tests run in Browserstack?