Tellurium is an automated web testing framework. Although it is built on top of Selenium at the current stage, there are many conceptual differences between the two. The main features of Tellurium are list as follows:
* Not a "record and replay" style
* UI module-based, i.e., it focuses more on a set of UI elements
* Enforce the decoupling between UI and testing code so that you have structured code
* Robust to change, Tellurium achieves this by using composite locator to build locator at runtime and group locating to remove the dependency among UI elements inside the UI module and external UI elements
* Expressive by using Groovy dynamic language feature and DSL
* Reusable, UI modules are reusable for the same application and Tellurium widgets can be used for different applications
* Address dynamic factors on the web. UI templates are used for data grid and the respond attribute in Tellurium UI object can address Javascript events
* Core framework is implemented in Groovy and tests can be written in Groovy, JUnit, TestNG, or pure dsl scripts
* Support data driven testing
* Provide Maven archetypes
This tutorial tries to achieve the following goals,
* Walk you through the steps for creating Tellurium test cases
* Illustrate how to use Tellurium Firefox Plugin (TrUMP) to create your own UI modules
* How to create your own Tellurium test cases and run the tests
* Experience the features in Tellurium
Create a New Tellurium Test Project using Maven
First, you need to have Maven 2.0.9 installed and make sure you have M2_HOME environment set in your system.
Then, add Tellurium Maven repository into your Maven settings.xml, usually it is at Your_HOME/.m2/. Cut and post the following profile between the
Once the demo project is created you can load it up using your favourite IDE. For example, in IntelliJ IDEA, you should do the following steps
New Project > Import project from external model > Maven > Project directory > Finish
Since it is a Maven project, the IDE will automatically try to solve the project dependency for you and download appropriate jars. Then, click on module settings to make sure the Groovy version is 1.6.0.
After that, you are read to run the sampel test file GoogleSearchTestCase.
Create Your own UI modules and Test Cases
Tellurium provides TrUMP for you to automatically create UI modules. TrUMP can be download from Tellurium project site
Choose the Firefox 2 or Firefox 3 version depending on your Firefox version. Or you can download the Firefox 3 version directly from Firefox addons site at
Once you install it and restart Firefox, you are ready to record your UI modules by simply clicking on the UI element on the web and then click the "generate" button. You may like to customize your UI a bit by clicking the "Customize" button. More detailed TrUMP introductions can be found at
and record the download search module. After we customize the UI module, we export it as the module file NewUiModule.groovy to the demo project and add couple methods to the class.