I want to try running an Intern functional test (i.e. using webdriver) on a single browser, on the local machine. The doc says that I need a "Selenium 2 Server".
How do I setup the server exactly though? Do I need to download and install it separately from Intern? (If so, how?) And do I need to start it as a separate process, before calling "node runner.js"? (If so, how?)
Selenium grid can be set up in two different ways; one through command line and the other through JSON config file.
Unlike Selenium WebDriver which allows you automated browser testing in a sequential manner, a Selenium Grid setup will allow you to run test cases in different browsers/ browser versions, simultaneously. One of the reasons behind the huge popularity of Selenium is its capability to automate cross browser testing.
intern provides an easy way for you to have everything below the optional machine boundary in this diagram
if you want to run a functional test with intern you don't need to have a local selenium server. saucelabs is one option that offers a cloud-based solution which is much less effort than setting up a local selenium server. there is a video capture of each test and you can also see the tests running live and interact with them if you need to. also, there are free accounts so you can ease your way into it without being committed. this is definitely the easiest way to start trying functional testing with intern.
if you really need to have a local server then yes you need to download it and install it separately from intern. all the pieces above the dotted optional machine boundary line are what you need to provide. http://docs.seleniumhq.org/docs/03_webdriver.jsp#running-standalone-selenium-server-for-use-with-remotedrivers seems to outline what you would need to do to get the selenium server setup but to be honest i haven't done it myself - i just use saucelabs because it's so simple and does everything i need it to do.
EDIT: I finally got around to setting up selenium locally. it was surprisingly easy - https://gist.github.com/neonstalwart/6630466
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With