I'm not clear about what's the difference between run my protractor tests using:
directConnect: true/false,
seleniumAddress: 'http://localhost:4444/wd/hub',
And also, why this is working? What I'm using for run my tests?
I've not declare any of the above options in my config file, and I've all my tests running.
This is the output when I run my tests:
[16:26:42] I/launcher - Running 1 instances of WebDriver
[16:26:42] I/local - Starting selenium standalone server...
[16:26:46] I/local - Selenium standalone server started at http://193.167.1.94:57674/wd/hub
I/local means that I'm running locally? Is directConnect the default option?
I saw I/hosted in some stack overflow post. That means that they are using an external grid?
seleniumAddress
You can give selenium server or selenium grid url to
seleniumAddress.You can start selenium server or grid on same or diff machine where test
script reside
1.1) local selenium server
1.2) remote selenium server
1.3) selenium grid
directConnect
Using seleniumAddress you can see the logs of test script communicate to webdriver in the terminate window where you start the selenium server/grid.
From the logs you can get information like following:
These information is very useful to debug test script
Using directConnect by default protractor won't start webdriver binary in separate terminate window and won't direct the communicate log into file.
So it's not suite for debug test script.