Xebium, as with Fitnium, extends the script fixture of Fitnesse. After evaluating the pair, I found Xebium to be superior in terms of setup and usuability. The feature I do like is how you can take Firefox Selenium IDE addon recordings and export them as Fitness/Xebium format, for cutting and pasting into fitnesse.
For example, below is the export from a simple site login action, viewing account details screen then logging out:-
!define TEST_SYSTEM {slim}
!path xebium-0.5-jar-with-dependencies.jar
| script | selenium driver fixture |
| start browser | firefox | on url | http://www.securesite.com |
| ensure | do | open | on | /Account/LogOn?ReturnUrl=%2f |
| ensure | do | type | on | id=login | with | Paull1 |
| ensure | do | type | on | id=password | with | Password11 |
| ensure | do | clickAndWait | on | name=LogOn |
| ensure | do | clickAndWait | on | id=account_details |
| ensure | do | clickAndWait | on | link=Secure Site |
| ensure | do | clickAndWait | on | link=Logout |
| stop browser |
When this test is run, Selenium script commands are initiated from Fitnesse, the web browser is opened and closed after test actions performed, and results displayed in Fitnesse test page. To set all this up is very easy:-
- Download and install Xebium from here. Extract folder/file structure into Fitnesse folder.
- Download and install Xebium firefox Addon from here (for exporting IDE recorded scripts into Fitnesse format).
- Download Selenium Server and Selenium IDE Firefox Addon from here. Download latest Fitnesse from here.
1. Start Fitnesse (java -jar fitnesse.jar -p [Enter chosen port number])
2. Start Selenium (java -jar selenium-server.jar)
3. Ensure to add the following lines to beginning of your test pages:-
!define TEST_SYSTEM {slim}
!path xebium-0.5-jar-with-dependencies.jar
Related posts:









