Chapter 4. TestLink Configuration

Table of Contents

Installing TestLink
Creating a Test Project
Creating and assigning a Custom Field
Specifying Test Suite and Test Cases
Create a Test Plan and add the Test Cases

Installing TestLink

In this part of the tutorial we will show how to install and configure TestLink. Let's start by downloading testlink-1.9.3.tar.gz from http://www.teamst.org. Decompress it with tar -zxvf testlink-1.9.3.tar.gz. Move the directory created to your HTTP server root directory and open http://localhost/testlink-1.9.3 in your browser.

Now the installation wizard will guide you through the rest of the installation. But before going on, we need to create a database in MySQL.

mysql> create database testlink;

The next step is to create a user that TestLink will use to access the database.

mysql> grant all privileges on testlink.* to 'testlink' identified by 'testlink';

mysql> flush privileges;

If everything worked out correctly you should be asked to log in with user admin and password admin. The examples in this tutorial require you to have a user with administrator rights in TestLink.

By default, the XML-RPC comes disabled in TestLink. Let's enable it by editing config.inc.php, located in TestLink root folder.

$tlCfg->api->enabled = TRUE;

Finally, let's make sure that the attachments retrieved from the database are ordered by its ID. This way, the order of attachments will be preserved in TestLink. We could use the date that the attachment was inserted in database, however the precision of the date_added column is in seconds, what could lead to inconsistencies in the way that attachments are displayed in TestLink.

$g_attachments->order_by = " ORDER BY id ASC ";