Parallel Runs of Same Browser on Same Machine

697 views
Skip to first unread message

Dave Cadwallader

unread,
Oct 31, 2014, 1:55:23 PM10/31/14
to nightw...@googlegroups.com
I understand that Nightwatch already supports parallel runs of different browsers (with each browser running the same tests) but we are looking to have a different kind of paralellization -- multiple instances of the same browser (on the same machine) running different tests.

Our main use case for this is PhantomJS - we want to divide up our huge test suite, and kick off multiple Nightwatch runs, with multiple PhantomJS browsers, each targeting a different category of test on the same machine.

However, we are getting errors that Selenium is already started when we try to launch a 2nd instance.  So it seems there are hardcoded ports involved.

Has anyone gotten this working?  Or would this require changes to Nightwatch itself?

Selenium Grid is not going to help us, as we're trying to do this for local builds.

Lacy Morrow

unread,
Oct 31, 2014, 2:01:32 PM10/31/14
to nightw...@googlegroups.com
By default selenium uses port 4444 (i think). You need to start each server instance on a different port and also use different nightwatch.json files to point instances of nightwatch to the different servers.

--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs...@googlegroups.com.
To post to this group, send email to nightw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/d26668a1-f08c-455e-acf5-90658272bf74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrei Rusu

unread,
Oct 31, 2014, 4:38:28 PM10/31/14
to nightw...@googlegroups.com
Or you could also define several environments into your
nightwatch.json and run them against the same selenium server. Refer
to the following for some more details:
http://nightwatchjs.org/guide#run-parallel
> https://groups.google.com/d/msgid/nightwatchjs/CABKJ70SiSTrbzAuVBMAhmJ1paOw_qr%2Ba%3Dmy98qSS%2BG9dqGTCeQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages