New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aw protractor with multiCapabilities enabled fails with JSON.stringify error #413
Comments
Could you please specify what AW version you use and if possible the whole aw.config.js |
AW version: 5.1.1 |
Getting it to work with something like below:
|
No difference in my case if I try with the above 'aw.config.js' in my project code tree. |
OK, I have some progress ... 1. I removed node-modules Now I should have node-modules restored because we just use after-works.js 4. Run tests with: npx aw protractor -c test\integration\aw.config.js
5. To satisfy after-work.js dependencies I've added then to our project's package.json all after-work.js 5.1.1 dependencies as in its github source
6. npm install
|
Great progress!
|
If just running chrome and locally you can try to add the |
With the above suggestions: |
Sorry for not answering yesterday. Then using multiCapabilities protractor is spawning new processes per capability and the global is not "shared". This is making some of the features in AW to "brake". Chai etc is not exposed and the default mocha reporter doesn't pick up browsers correctly. It´s still possible to use it but you have to require chai in your tests and if you want the default reporter you could first log to JSON and run the For now I would suggest to run the test in parallel using different configs |
Description
The idea is to use Protractor to start multiple browser sessions to run the test suite.
The browser sessions could be in parallel or in sequense.
But:
aw protractor with multiCapabilities enabled fails with JSON.stringify error:
[11:15:28] E/launcher - TypeError: Map#toJSON isn't generic
at String.toJSON (...\node_modules\core-js\library\modules_collection-to-json.js:6:38)
at Function.toJSON (...\node_modules\core-js\library\modules_ctx.js:18:15)
at JSON.stringify ()
Steps to Reproduce
Expected behavior
Two browser sessions in parallel started by Protractor
Actual behavior
Error from Protractor:
Environment
Operating system
Versions
The text was updated successfully, but these errors were encountered: