всім привіт) WebdriverIO, js, appium. хтось підкаже чи можна якось перевіряти який зараз сьют ранитья і мяняти сapabilities в залежності від цього? в мене вимога шоб тести ранилися на 3 андроід емулятора, хочу щоб smoke sute ранився тільки на одному емуляторі і в оnPrepare hook просто поміняти кількісь девайсів на 1. Законсоль ложив конфік і капабілітіс не бачу як поняти який сьют раниться зараз
{
specs: [ 'e2e-tests/test/specs/c212803_loginIncorrectCredentials.test.js' ],
suites: {
smoke: [
'e2e-tests/test/specs/c212809_locationSelectionFor1r1LUser.test.js',
'e2e-tests/test/specs/C212807_locationSelectionFor2r2LUser.test.js',
'e2e-tests/test/specs/c220479_drawerComponentVerification.test.js',
'e2e-tests/test/specs/c220486_redirectionToInventoryAdjustmentPage.test.js'
]
},
exclude: [],
outputDir: undefined,
logLevel: 'error',
logLevels: {},
excludeDriverLogs: [],
bail: 0,
waitforInterval: 500,
waitforTimeout: 20000,
framework: 'mocha',
reporters: [ 'spec', [ 'allure', [Object] ] ],
services: [ [ 'sauce', {} ] ],
maxInstances: 1,
maxInstancesPerCapability: 100,
filesToWatch: [],
connectionRetryTimeout: 180000,
connectionRetryCount: 3,
execArgv: [],
runnerEnv: { FORCE_COLOR: 1 },
runner: 'local',
specFileRetries: 1,
specFileRetriesDelay: 0,
specFileRetriesDeferred: false,
reporterSyncInterval: 100,
reporterSyncTimeout: 5000,
cucumberFeaturesWithLineNumbers: [],
autoCompileOpts: {
autoCompile: true,
tsNodeOpts: { transpileOnly: true },
babelOpts: {}
},
mochaOpts: { timeout: 60000, ui: 'bdd' },
jasmineOpts: { defaultTimeoutInterval: 10000 },
cucumberOpts: { timeout: 10000 },
onPrepare: [ [Function: bound onPrepare] AsyncFunction ],
onWorkerStart: [],
before: [ [Function: bound before] ],
beforeSession: [],
beforeSuite: [],
beforeHook: [],
beforeTest: [],
beforeCommand: [],
afterCommand: [],
afterTest: [ [Function: bound afterTest] AsyncFunction ],
afterHook: [],
afterSuite: [],
afterSession: [],
after: [],
onComplete: [],
onReload: [],
beforeFeature: [],
beforeScenario: [],
beforeStep: [],
afterStep: [],
afterScenario: [],
afterFeature: [],
baseUrl: 'http://localhost',
region: 'us',
_: [ 'wdio.sauce.conf.js' ],
suite: [ 'smoke' ],
'$0': 'node_modules\\@wdio\\cli\\bin\\wdio.js'
} config
[
{
platformName: 'Android',
'appium:orientation': 'PORTRAIT',
acceptInsecureCerts: true,
'appium:noReset': true,
'appium:newCommandTimeout': 240,
'appium:language': 'en',
'appium:locale': 'en',
'sauce:options': {
build: 'TakeoffMobile E2E tests Android: 2021-10-05T10:05:09.925Z',
appiumVersion: '1.20.1'
},
'appium:deviceName': 'Samsung Galaxy S8 Plus WQHD GoogleAPI Emulator',
'appium:platformVersion': '7.1',
'appium:app': 'storage:abf3f4a7-5035-4fd4-b785-69fecfd513c4'
},
{
platformName: 'Android',
'appium:orientation': 'PORTRAIT',
acceptInsecureCerts: true,
'appium:noReset': true,
'appium:newCommandTimeout': 240,
'appium:language': 'en',
'appium:locale': 'en',
'sauce:options': {
build: 'TakeoffMobile E2E tests Android: 2021-10-05T10:05:09.925Z',
appiumVersion: '1.20.1'
},
'appium:deviceName': 'Samsung Galaxy S9 Plus HD GoogleAPI Emulator',
'appium:platformVersion': '8.1',
'appium:app': 'storage:abf3f4a7-5035-4fd4-b785-69fecfd513c4'
},
{
platformName: 'Android',
'appium:orientation': 'PORTRAIT',
acceptInsecureCerts: true,
'appium:noReset': true,
'appium:newCommandTimeout': 240,
'appium:language': 'en',
'appium:locale': 'en',
'sauce:options': {
build: 'TakeoffMobile E2E tests Android: 2021-10-05T10:05:09.925Z',
appiumVersion: '1.20.1'
},
'appium:deviceName': 'Google Pixel 3a GoogleAPI Emulator',
'appium:platformVersion': '11.0',
'appium:app': 'storage:abf3f4a7-5035-4fd4-b785-69fecfd513c4'
}
] capabil