Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I setup Selenium 2 Server so intern can run functional tests locally, on one browser?

Tags:

intern

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?)

like image 838
Bill Keese Avatar asked May 07 '13 08:05

Bill Keese


People also ask

Which of the two setups and their corresponding roles are used in the Selenium Grid session?

Selenium grid can be set up in two different ways; one through command line and the other through JSON config file.

What is the difference between WebDriver and Selenium grid?

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.


1 Answers

intern provides an easy way for you to have everything below the optional machine boundary in this diagram

selenium components

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

like image 95
neonstalwart Avatar answered Sep 18 '22 08:09

neonstalwart