I'm using webdriver.io run test. I also reduced maxinstances to 1, but webdriver.io still keeps creating a new browser session before each spec. Can you point out what i'm doing wrong here?
wdio.conf.js
exports.config = {
runner: 'local',
specs: [
'./specs/specs.e2e.js'
],
exclude: [
],
maxInstances: 1,
capabilities: [{
maxInstances: 1,
browserName: 'chrome',
acceptInsecureCerts: true
}],
logLevel: 'info',
bail: 0,
baseUrl: 'http://localhost',
waitforTimeout: 10000,
connectionRetryTimeout: 120000,
connectionRetryCount: 3,
services: ['chromedriver'],
framework: 'mocha',
reporters: ['spec'],
mochaOpts: {
ui: 'bdd',
timeout: 60000
},
}
specs.e2e.js
require('../specs/spec01_login.e2e');
require('../specs/spec02_test.one.e2e');
my folder directories are:
your assistance is greatly appreciated.
PS: I did not use browser.closeWindow() in my spec files.
question from:
https://stackoverflow.com/questions/65937650/im-unable-to-run-all-webdriver-io-spec-file-in-single-browser-seession 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…