Setting up TestLink on Linux

I was assigned the responsibility of setting up Test Link (TL) on my network and import test cases from another instance of TL running elsewhere. It was quite simple but I would still like to put it down just in case someone runs into issues or better still if someone has suggestions – More than welcome.

PS: The commands may be Linux specific but there are very less reasons why it wont work on Windows too.

1. Lay out red carpet

Test Link needs some software to run. Main ones are:

i. MySQL – the database ii. Apache – the web server iii. PHP – the scripting language

The TL documentation itself suggests a nice package XAMPP (from Apache Friends) which essentially packages all these software and presents as a single piece of software – makes life much easier. I too would suggest the same unless you have special requirements. I used XAMPP for Linux and the installation is mere unzipping of the package using the following command.

tar xvfz xampp-linux-1.6.8a.tar.gz -C /opt

This unzips the XAMPP installation to /opt/lampp and this seems to be the mandatory location. Cursory digging on this led me to suggestions of creating a symbolic link to the folder in case you really do not want to install in /opt. Thereafter, you just do a xampp start/stop/restart for the usual errands.

2. Clean the red carpet

I am assuming you have downloaded Test Link ( I downloaded the latest stable release which is 1.7.4 at this point of time). Unzip the file that you have downloaded to the /opt/lampp/htdocs folder so that now you have the folder structure /opt/lampp/htdocs/testlink

Here are a few steps to pre-empt some issues that I faced when setting up testlink. They are in the order in which I faced the issues.

i. Set register_globals to Off (by default it is On) in the /opt/lampp/etc/php.ini file

ii. Assign relevant privileges to the testlink folder. I do a:

chmod -R 777 /opt/lampp/htdocs/testlink

but you can choose to be more specific with the access levels and files

Now, run the TL installation from http://localhost/testlink/install/index.php

iii. Increase the memory limit in the following file /opt/lampp/etc/php.ini by changing the value in the following line to something that suits you. From my experience 32M works well.

memory_limit= 8M

iv. In my case, I was supposed to import the test suite from another test link instance. The problem I faced was during importing the test suite xml file. By default the limit on file size while importing is 200 Kb ( a test link characteristic). You can change this by editing the following line in the/opt/lampp/htdocs/testlink/config.inc.php file (information source)

define(‘TL_IMPORT_LIMIT’, ’204800′); // in bytes

3. Clean the red carpet

Your TL installation is available on http://localhost/testlink

PS: We tried something similar on Solaris too. For Solaris there is a package called Coolstack which contains PHP+MySQL+Apache (among other things). Plus TL requires quite a few extensions which come with with Coolstack but are not enable by default. One needs to enable them in the php.ini file.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

It is 1.8.3, try this. I am trying to implement in Win XP. Off course This tool is good in one aspect and worst in other aspect, never mind, let me know if you generate any type of custom reports other than reports present in Testlink.

Very good! Thank you, I’ was searching a instruction for configuration the testlink on Linux.

kindly provide installation guide for Testlink1.9.3 for linux

kindly provide us a detailed test link install guide for linux

Hi Manidhar,

This one is supposed to be for Linux. In terms of details can you tell me what exactly are you looking for.

Delayed comment but ‘Thank you’ Sarah

Hi Manidhar,

download testlink tar file from

http://downloads.pramati.com/downloads/linux/testlink-1.9.2.tar.gz

extract the tar file and in /testlink../docs/ folder , you will find “testlink_installation_manual.pdf” file, will help on how to install testlink on Linux.

Let me know if you need further help on this.

yes, i was of great help. i would like to express you need to instruct what params need to be set for testlink installation when one goes through the testlink localhost page.

Very nice tutorial!! Still works in 2014… thnks a lot man!

Leave a comment

(required)

(required)