6I’m using Subversion to have versioning control of my automated test cases development. And I’m using Jenkins to schedule and execute those test cases.
If you are a tester (or you want to be one) or/and you don’t have many experience using Linux or with systems administration I hope this post helps you.
(For this guide I have used a clean installation of Ubuntu 11.04 in a Virtual Box machine with default settings)
1. Install Ubuntu: (default installation). “Next” to all
. You can get it here.
2. Install necessary software: after installation finished, go to Applications > Ubuntu Software Center
Go to “Get software“. Search and install these packages:
3. Setting up Subversion (more info here):
3.1. Viewing all users (more info here):
3.2. Setting up users
3.3. Creating SVN repository
$ sudo mkdir /home/svn
$ cd /home/svn
$ sudo mkdir myproject
$ sudo svnadmin create /home/svn/myproject
$ cd /home/svn
$ sudo chown -R www-data:subversion myproject
$ sudo chmod -R g+rws myproject
3.4. Accessing via WebDAV protocol (http://)
$ sudo gedit /etc/apache2/mods-available/dav_svn.conf
<Location /svn>
DAV svn
SVNParentPath /home/svn
SVNListParentPath On
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/subversion/passwd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
$ sudo /etc/init.d/apache2 restart
sudo htpasswd -c /etc/subversion/passwd user_name
It prompts you to enter the password. Once you enter the password, the user is added. In our test automation environment, we will use this user and password to check out RIDE developed test cases via Tortoise client.
Now, you should be able to browse your SVN repository using your web browser from http://localhost/svn.
4. Installing Jenkins:
OPTION A: install Tomcat and deploy jenkins.war file. (This is the best option in order to be able to update Jenkins easily in the future without losing any of your configuration options, jobs…)
Go to “Get software“. Search and install these packages: tomcat6 and tomcat6-admin.$ sudo gedit /etc/tomcat6/tomcat-users.xml
Edit file in order to get something like this and save:
<tomcat-users>
<role rolename=”admin”/>
<role rolename=”manager”/>
<user username=”desired-administrator-user-name” password=”desired-password” roles=”admin,manager”/>
</tomcat-users>
$ sudo /etc/init.d/tomcat6 restart
$ sudo nautilus
(This is to open a file explorer with root rights)
Navigate to /usr/shared. Right click over tomcat6 folder and click on “Properties“. Go to “Permissions” tab and set group permissions to “tomcat6″ and give “Create and delete files” access.

NOTE: if you are planning to execute your testing over Windows machines, you can be interested in this post: Configuring Jenkins.
OPTION B: direct installation of Ubuntu native package
NOTE: if you are planning to execute your testing over Windows machines, you can be interested in this post: Configuring Jenkins.
[...] Remember that you can read this previous post for a guide to install Hudson in Ubuntu. [...]
[...] that you can read this previous post for a guide to install Jenkins in Ubuntu. And this little guide for configuring [...]
[...] NOTE: here you have a guide to install Jenkins in Ubuntu 11.04. [...]
[...] I use Subversion for control test cases versions; and Jenkins for schedule and review results of test cases executions. I have both installed in an Ubuntu 11.04 machine. I wrote an INSTALLATION GUIDE for this in a previous post. [...]
[...] NOTE: here you have a guide to install Jenkins in Ubuntu 11.04. [...]
[...] that you can read this previous post for a guide to install Jenkins in Ubuntu. And this little guide for configuring [...]