Inside XWiki

Last modified by Guillaume Delhumeau on 2015/01/06 16:59

Feb 08 2016


How I run functional tests

In XWiki, we use Selenium to run functional tests. It opens a browser window (firefox), goes to your wiki, and verifies that the UI works as expected.

However, the last version of Firefox is not always supported by Selenium. Most of the time, this is the case when you run functional tests on a old version of XWiki (old meaning here "not the last one").

The workaround is to have an old version of firefox installed on your computer, in addition with the one you use for your everyday life.

You can get an old firefox on the mozilla ftp directory.

I currently use the version 35 for this use-case.

Then, you need to tell bash to use it, like this:

export PATH=/home/gdelhumeau/downloads/firefox:$PATH
## replace /home/gdelhumeau/downloads/firefox by the path where you have installed firefox

But you should enable this old firefox only to run functional tests. For this reason, I actually have added a new alias in .bash_aliases:

alias mvn='export PATH=/home/gdelhumeau/downloads/firefox:$PATH && mvn'

Now, the old firefox will be used each time you run a Maven command, but it won't affect your default browser configuration.

How I run IntellIJ

IntellIJ IDEA is an excellent IDE for Java and I enjoy using it when I work for XWiki.

To install it, I've just uncompressed the package in some places, and then I have written the following script to start it:

## Use the old firefox when running functional tests from Intellij
export PATH=/home/gdelhumeau/downloads/firefox:$PATH
## Fix a bug with the keyboard on Ubuntu (see:
## Change the current dir and start IDEA
cd /home/gdelhumeau/bin/idea-IU-143.1821.5/bin && sh

To do an upgrade if the IDE, I just uncompress the archive and replace the path in my script.

How I write complex content in XWiki (Velocity, JavaScript, etc...)

When I need a good editor to edit some content in a running XWiki, I use the It's all text plugin for Firefox. Then I can use gedit.

I hope it helps!

Dec 22 2015

OW2con'15: XWiki Product and Community


I have recently been invited to talk at the OW2 conference about the XWiki project and its community.

It's a brief resume about our governance rules, and an example of collaboration between the XWiki SAS company and the community.

Thanks to OW2, you can watch the video of the event. ...

Jul 20 2015

JavaScript in 2015

Since its beginning in 1996, JavaScript and its usage has changed a lot. In this article, I am going to describe a brief history of it and how it is used today in our browsers. ...

Jun 29 2015

LESS in XWiki, Post Mortem of an integration

LESS is a language that extends CSS by adding new features such as variables, mix-ins (kind of functions), etc... It makes CSS development more efficient and maintainable and is used by one of the major CSS frameworks available: Bootstrap.

Last year, we have integrated the LESS compiler in XWiki. At first, the purpose was to create a new look & feel based on Bootstrap, compatible with existing color themes. Quickly, we have encountered the need to execute some LESS code on-the-fly, and proposing a LESS compiler in XWiki was the unique solution. ...

Mar 02 2015

Installing XWiki on a VPS (Digital Ocean or OVH) for less than $10/month

Nowadays, having our own Virtual Private Server (VPS) is very not expensive. I have taken this opportunity to host my own XWiki instance. In this article, I will report how I have done so you can easily do the same. ...

Jan 06 2015

Integrate a Bootstrap theme in XWiki? An example with Bootswatch

With the arrival of Flamingo in XWiki, we now have a nice, modern and responsive skin. Moreover, it has been built using Bootstrap, the great CSS framework which is very popular nowadays.

One of the Bootstrap's characteristics is the fact that we can find a lot of themes on the Web. 

The good news is that we are able to integrate them in XWiki, through the Flamingo Theme Application. In this post, I am going to show you how to proceed, with a theme provided by Bootswatch. ...

Created by Guillaume Delhumeau on 2005/01/28 16:50



Hi. My name is Guillaume Delhumeau. I am an employee of the XWiki SAS Company and a regular contributor of the XWiki Community Project.

In this blog, I propose to share some tricks for developers about XWiki. How to customize it, how to write applications in it and how to contribute to it.

I hope you'll enjoy this site!


Blog Archive

Copyright 2015 Guillaume Delhumeau