@wdio/local-runner: Failed launching test session: TypeError: ReporterClass is not a constructor
See original GitHub issueEnvironment (please complete the following information):
-
**WebdriverIO version:**6.13.4
-
Mode: Standalone
-
Node.js version: 10.19.0
-
NPM version: 6.13.4
-
Browser name and version: Chrome 78
-
Platform name and version: Fedora
-
Additional wdio packages used (if applicable):
"devDependencies": {
"@wdio/allure-reporter": "^5.18.6",
"@wdio/browserstack-service": "^5.18.7",
"wdio-browserstack-reporter": "~0.1.1",
"@wdio/cli": "^5.18.7",
"@wdio/dot-reporter": "^5.18.6",
"@wdio/local-runner": "^6.0.5",
"@wdio/mocha-framework": "^5.18.7",
"@wdio/selenium-standalone-service": "^5.16.10",
"@wdio/spec-reporter": "^5.18.7",
"@wdio/sync": "^5.18.7",
"chai": "^3.5.0",
"chromedriver": "^75.1.0",
"mocha": "^6.2.2",
"wdio-chromedriver-service": "^5.0.2",
"wdio-docker-service": "^2.3.0",
"protractor-browserstack-reporter": "~0.1.1"
},
Config of WebdriverIO
exports.config = {
runner: 'local',
specs: [
// specs files
],
reporters: ['browserstack'],
reporterOptions: {
browserstack: {
outputDir: './'
}
},
services: ['browserstack'],
user: '*******',
key: '******',
capabilities: [
{
'os': 'Windows',
'os_version': '10',
'browser': 'Chrome',
'browser_version': '79',
'acceptSslCerts': 'true',
'browserstack.local': 'true',
'browserstack.debug':'true',
'browserstack.networkLogs':'true',
'resolution' : '1920x1080'
},
{
'os': 'Windows',
'os_version': '10',
'browser': 'Firefox',
'browser_version': '70',
'acceptSslCerts': 'true',
'browserstack.local': 'true',
'browserstack.debug':'true',
'resolution' : '1920x1080'
}
],
maxInstances: 1,
'browserstack.local':'true',
}
Describe the bug Running test as per the script provided giving an error in wdio-local-runner. I have updated the version of the reporter as well to 6.0.0, still getting the same error while running the test.
This seems to be a similar issue as:https://github.com/sullenor/wdio-teamcity-reporter/issues/12
To Reproduce Add ‘Browserstack reporter’ in conf file and try running test.
Expected behavior Should run test without error in Reporter class
Log
[0-3] 2020-04-07T05:01:21.189Z ERROR @wdio/local-runner: Failed launching test session: TypeError: ReporterClass is not a constructor
at BaseReporter.initReporter (/home/apaliwal/Solution-engine-test/solution-engine-test-ui/node_modules/@wdio/runner/build/reporter.js:124:14)
at Array.map (<anonymous>)
at new BaseReporter (/home/apaliwal/Solution-engine-test/solution-engine-test-ui/node_modules/@wdio/runner/build/reporter.js:32:39)
at Runner.run (/home/apaliwal/Solution-engine-test/solution-engine-test-ui/node_modules/@wdio/runner/build/index.js:77:21)
at process.on.m (/home/apaliwal/Solution-engine-test/solution-engine-test-ui/node_modules/@wdio/local-runner/build/run.js:37:20)
at process.emit (events.js:203:15)
at process.EventEmitter.emit (domain.js:448:20)
at emit (internal/child_process.js:832:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
javascript - webdriverIO - add junit reporter - Stack Overflow
js. Whenever I try to implement any reporter I'm getting following output and my test is failing: ERROR @wdio/local- ...
Read more >webdriverio/webdriverio - Gitter
ERROR @wdio/local-runner: Failed launching test session: TypeError: ReporterClass is not a constructor. Any idea where could be mistake? thanks in advance!
Read more >webdriverio/webdriverio - Gitter
... [0-0] 2020-01-30T14:35:24.524Z ERROR @wdio/local-runner: Failed launching test session: TypeError: ReporterClass is not a constructor at BaseReporter.
Read more >@wdio/reporter - npm
A WebdriverIO utility to help reporting all events. Latest version: 8.0.13, last published: 9 days ago. Start using @wdio/reporter in your ...
Read more >Configuration File - WebdriverIO
The configuration file contains all necessary information to run your test suite. It's a NodeJS module that exports a JSON.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for letting me know, I will kick out the Cucumber reporter as it is not supported.
I selected at config window: spec, allure, cucumber. By the way, now working selected only: spec, allure