Context
I am trying the brand new Protractor 0.19.0 with the multiCapabilities config option. It is actually working as described in the docs :
- It makes running tests on multiple browsers easier (no need for grunt, nor script, only 1 config file).
- It makes tests running in parallel
The second point is problematic for me. One of my app doesn't handle multiple connection to the data, implying that the tests fail.
My question is:
Is it possible to limit the maximum number of instances of Webdriver in order to disable parallel testing for this app?
What I have tried
I've found in Selenium Webdriverjs Grid2 wiki that there's a maxSession
parameter that would perfectly fit to my case! But I tried to add it in my Protractor config, without success.
maxSession
is also in the Desired Capabilities. Anyone knows if it's working yet?
Here is the link to the multiCapabilities PR topic, I left a comment there.
If you need more info, feel free to ask :)
Thanks in advance!!
EDIT: Dedicated GitHub issue
EDIT2: I recently tried to add seleniumArgs: ['-maxSession=1']
to my Protractor config, unfortunaltely this doesn't work too...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…