Hi all
I am keep seeing below shown issue when I am trying to run my test :
Execution of 0 spec files started at 2019-11-11T13:57:53.847Z
2019-11-11T13:57:53.850Z INFO @wdio/cli:launcher: Run onPrepare hook
2019-11-11T13:57:53.851Z ERROR @wdio/cli:launcher: Missing capabilities, exiting with failure
2019-11-11T13:57:53.851Z INFO @wdio/cli:launcher: Run onComplete hook
Spec Files: 0 passed, 0 total (0% completed) in 00:00:00
2019-11-11T13:57:53.852Z INFO @wdio/local-runner: Shutting down spawned worker
2019-11-11T13:57:54.107Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2019-11-11T13:57:54.107Z INFO @wdio/local-runner: shutting down
exports.config = {
// ====================
// Runner and framework
// Configuration
// ====================
runner: 'local',
framework: 'cucumber',
jasmineNodeOpts: {
// Updated the timeout to 30 seconds due to possible longer appium calls
// When using XPATH
defaultTimeoutInterval: 90000,
},
sync: true,
logLevel: 'verbose',
deprecationWarnings: false,
bail: 0,
baseUrl: 'https://www.xxxx.co/',
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
reporters: ['spec'],
// ====================
// Appium Configuration
// ====================
services: ['appium'],
appium: {
// For options see
// https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-appium-service
args: {
// For arguments see
// https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-appium-service
},
command: 'appium'
},
port: 4723,
// ====================
// Some hooks
// ====================
beforeSession: (config, capabilities, specs) => {
require('@babel/register');
},
};
const { join } = require('path');
const { config } = require('./main.conf');
// ============
// Specs
// ============
config.specs = [
'./tests/specs/app.forms.spec.js',
// './tests/specs/**/app*.spec.js',
];
// ============
// Capabilities
// ============
// For all capabilities please check
// http://appium.io/docs/en/writing-running-appium/caps/#general-capabilities
config.capabilities = [
{
// The defaults you need to have in your config
platformName: 'Android',
maxInstances: 1,
// For W3C the appium capabilities need to have an extension prefix
// http://appium.io/docs/en/writing-running-appium/caps/
// This is `appium:` for all Appium Capabilities which can be found here
'appium:deviceName': 'Nexus_6_API_29',
'appium:platformVersion': '10.0',
'appium:orientation': 'PORTRAIT',
// `automationName` will be mandatory, see
// https://github.com/appium/appium/releases/tag/v1.13.0
'appium:automationName': 'UiAutomator2',
// The path to the app
'appium:app': './app/Android-NativeDemoApp-0.2.1.apk',
// 'appium:app': './app/android.apk',
// 'appium:app': join(process.cwd(), './apps/Android-NativeDemoApp-0.2.1.apk'),
// Read the reset strategies very well, they differ per platform, see
// http://appium.io/docs/en/writing-running-appium/other/reset-strategies/
'appium:noReset': true,
'appium:newCommandTimeout': 240,
},
];
Missing capabilities, exiting with failure