View source | Discuss this page | Page history | Printable version   
Main Page
Upload file
What links here
Recent changes

PDF Books
Add page
Show collection (0 pages)
Collections help


Release Management/Run smoke tests locally


Previous steps


Firefox 45.5.1esr is needed to run the tests. Newer versions can work wrong with the selenium library.

You can obtain this firefox version in the following links:

This guide will help you if you need help to change your firefox version in ubuntu -> [1]

Once you have it installed, a good recommendation is avoid the Firefox get auto updated.

To do it, go to Open menu (horizontal lines button at the right of the screen) -> "Preferences" -> "Advanced" -> "Update" -> "Never check for updates" -> "Close" button


Branch clone

Make a clone of the following branch to obtain the code of the tests:

Go to 'pi-smoke/config/' and execute '' script with the following order: 'sh'. It will create the following files:

Now, go to 'pi-smoke/config/' and set your configuration.

NOTE: 'selenium.browserPath' attribute is not used and the selenium test will open the Firefox just by running 'firefox' in bash, so you must ensure that once the process do this call, it opens the recommended firefox. You can do it, for example, in Linux by modifying the path like

export PATH="the_recommended_firefox_location/firefox:$PATH"

Extra files

Although they can be not necessary at the beginning, later you can need the following two files located inside the "pi-smoke/testfiles" directory to guarantee the correct behaviour of some tests (e.g. to activate the professional instance):

Previous ant commands

Some commands execution are advisable but not required before start any test:

ant compile
ant scenario.clean
ant registration.disable
ant clean

Run tests using ant

You can also run tests using Eclipse instead of this other 'ant' way. It is explained later, you can check it here: [[2]].

To know which are the available tests and their 'ant' command you can go to and select any test. Then, in the 'Steps' section you will see the ant command/commands of this particular test

RSTL AntTest.png

NOTE: If selenium server is hanged due to a bad execution of any test, you can force the process to stop by executing the following command:

ps xu | grep selenium | grep -v grep | awk '{ print $2 }' | xargs kill -9

Run tests using Eclipse

Configure the pi-smoke project in eclipse:

RSTL Eclipse1.png

Now you need to run the selenium server manually. To do it, in a terminal, go to "pi-smoke/lib" directory and execute:

java -jar selenium-server-standalone-X.XX.X.jar

where X.XX.X is the version of the current existing selenium server library.

The problem using Eclipse is that you cannot run a complete suite but just one piece of a test each time. To execute it, you need to select the desired java file in the "Project Explorer" section and do "Run" (or right mouse click) -> "Run As" (or "Debug As" if you plan to debug code) -> "JUnit Test"

RSTL Eclipse2.png

Retrieved from ""

This page has been accessed 1,466 times. This page was last modified on 23 January 2017, at 15:25. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.