Introduction
|
Molybdenum is utilizing selenium-server und selenium-rc for Java for cross browser tests.
The RunSeleniumRC Firefox addon is packaging all together with the Molybdenum interpreter so it can be installed with one click beside your Molybdenum addon.
After installation, the cross browser tests can be started directly from Molybdenum. |

(Click image to enlarge)
|
Disclaimer
The current version of RunSeleniumRC is a preview version. Since it is mostly feature complete it definitly has bugs. Be aware! Don't use it in production like environments.
Installation
Molybdenum version 0.7.0 or higher installed is a prerequisite for RunSeleniumRC.
Java has to be installed in your Firefox browser.
Install the RunSeleniumRC Firefox addon from https://www.molyb.org/ff-updatearea-preview/runseleniumrc-0.0.1pre1.xpi. Updates will be served automatically.
After successful installation, a new menu point will appear in the Run menu of Molybdenum: Run Selenium RC Remote ....

Configuration
After choosing Run Selenium RC Remote ... a dialog is opened to configure run configurations.

Using the context menu of the left tree area, a new configuration can be created.

A new configuration dialog will be opened and we can start to configure our first run configuration.
In general, there are two different scenarios to run tests outside Firefox.
Run the tests on the same machine
As an example, we will create a confugration to run tests in Opera installed on the same machine.
- we will give our config a speaking name. Type in Opera in the textbox named Name.
- we'll provide the right browser configuration string for selenium. Type *opera in the textbox named Browser.
- for selenium we have to pass in a baseurl. This is the url your application unde rtest is running on. Type this url in the box named Base URL.
- if we want to control a browser on the same machine Molybdenum is running on, we have to start out own selenium server. This server will be reachable on localhost. Therefore type in localhost in the textbox with name Address under Server Connection.
- The port can be left with 4444. This value can be changed if port 4444 is already in use on your local machine.
- As mentioned, we have to start our own server - check Start Selenium Server.
- If a report should be written, choose the path of the main report html file for the field named Report Path.

Leaving the configuration, will automatically save the values typed in.
Run the tests on a remote machine
Todo so, selenium server has to be downloaded and started on the remote machine.
- type in a speaking name in textbox Name
- provide the right browser confguration string in Browser
- type in the base url under Base URL
- Type in the name or IP of the machine the selenium server is running on under Address
- leave Start Selenium Server unchecked
- provide a path to the report file if you want a report to be written

After everything is configured, you can load a testsuite or schedule, choose the run configuration you want and press run.
Unsupported commands and features
- verifyDuration
- processResource
- storeResourcePath
- setPref*
- waitForAjax
- registerFocusedBrowserWindow
*