Goal
To run Molybdenum test scripts, normally the Firefox addon RunSeleniumRC is used. Anyway, this way an automated test from commandline is impossible.
This article is describing the steps to run a Molybdenum test script against an arbitrary browser.
Background infos
RunSelenium RC is based on selenium-rc version 0.9.2. Additionally, an interpreter, written in Java (selenium-rc is Java based as well) will translate Molybdenum test scripts into selenium commands. Most Molybdenum functionality like bricks and variable loading will work as well.
Prerequisites
Java JRE version 1.5 or higher is needed. If not already available on your machine, it can be installed from http://java.sun.com/javase/downloads/index.jsp.
The interpreter-*-full.jar is needed as well. Download version 0.0.2a1.
Commandline options
Following commandline will give you the options available:
It will look like that:
There are two run modes:
- Selenium Server on the local machine, automatically started
This will be the case, if the option -serverargs is provided.
- Selenium Server is running on a remote machine
This will be the case if the option -serverargs is left out.
Examples
Using a local browser to run the tests
It is assumed that the interpreter-*-full.jar is located in the current directory.
The testsuite option (-testset) has to be provided as file url. If the testsuite.xml is located in the home directory on a Unix system, it might look like this: _file:///home/johndoe/testsuite.xml_. On a Windows system,if the testsuite is located in the root of the C: drive, it will look like this: _file:///C:/testsuite.xml_.
The report destination has to be provided as absolute file path.
Additionally, the base url has to be provided. This is the url the test to run against.