TestLink Tutorial

โšก Smart Summary

TestLink Tutorial Complete Guide explains how to use the open-source TestLink web platform for end-to-end test management, covering project setup, test plans, builds, test suites, test cases, user roles, requirements traceability, execution tracking, reporting, and import or export workflows.

  • ๐Ÿงญ Centralized Test Management: TestLink links requirements, test specifications, and execution status in a single web-based workspace so teams can track coverage across projects.
  • ๐Ÿ—๏ธ Project Hierarchy: Build a clean structure by first creating a Test Project, then a Test Plan, a Build, a Test Suite, and individual Test Cases with step-level detail.
  • ๐Ÿ‘ฅ Role-Based Access: Assign Guest, Tester, Senior Tester, Leader, and Admin roles so each user only edits or executes what their responsibility allows.
  • ๐Ÿ”— Requirement Traceability: Link requirement specifications to test cases to verify coverage and quickly surface gaps inside the Test Reports view.
  • ๐Ÿ“ค Portable XML Workflows: Export test cases or suites to XML and re-import them into another TestLink server or project without rebuilding artifacts manually.

TestLink Tutorial

What is TestLink?

TestLink is one of the most widely used web-based open-source test management tools. It synchronizes requirements specification and test specification in a single workspace, so teams can plan, document, and track quality activities together. Using TestLink, you can create a test project, document test cases, and onboard multiple users with distinct roles. The admin user manages test case assignments across the team.

TestLink supports both automated and manual execution of test cases. Testers can generate a Test Plan and Test Report in a fraction of the time using this tool. It supports reports in multiple formats, including Excel, MS Word, and HTML. It also integrates with popular Defect tracking systems such as JIRA, MANTIS, BUGZILLA, and TRAC. Because it is web-based, multiple users can use it concurrently with their own credentials and assigned roles.

Advantages of TestLink

Before diving into setup, it helps to understand why TestLink remains a popular choice for test management across QA teams.

  • It supports multiple projects under a single installation.
  • It allows easy export and import of test cases across servers.
  • It integrates easily with many defect management tools.
  • It executes automated test cases through XML-RPC.
  • It filters test cases by version, keywords, test case ID, and other attributes.
  • It assigns test cases to multiple users with a few clicks.
  • It generates test plans and test reports in various formats.
  • It provides credentials for multiple users and supports granular role assignment.

Login to TestLink

Once TestLink is installed, the first step is to sign in as the administrator and access the main dashboard.

Step 1) Open the TestLink home page and enter the login details.

  1. Enter the userID โ€“ admin
  2. Enter the password
  3. Click on the login tab

Login to TestLink

Creating a Test Project

A Test Project acts as the top-level container for all related test plans, suites, and cases. The following steps show how to create your first project.

Step 1) In the main window click on Test Project Management. It will open another window.

Creating a Test Project

Step 2) Click on the tab “Create” to create a new project.

Creating a Test Project

Step 3) Enter all the required fields, such as the category, project name, prefix, and description. After filling in the necessary details, click the “Create” tab at the bottom of the window.

Creating a Test Project

This creates your project “Guru99” successfully.

Creating a Test Project

Creating a Test Plan

A Test Plan captures complete information, including the scope of software testing, milestones, test suites, and test cases. Once the project exists, the next step is to define a Test Plan for it.

Step 1) From the home page, click on Test Plan Management.

Creating a Test Plan

Step 2) A new page opens. At the bottom of the page click on the “Create” tab.

Creating a Test Plan

Step 3) Fill in all the necessary information, such as name, description, and “create from existing test plan” option. Then click “Create”.

Creating a Test Plan

Step 4) The Guru99 Test Plan is created successfully.

Creating a Test Plan

Build Creation

A Build represents a specific release of the software under test. Builds are useful for grouping execution results against a particular version of the application.

Step 1) Click on Builds/Releases under Test Plan from the home page.

Build Creation

Step 2) In the next window, fill in all the details for the software release and click “Create” to save it.

  1. Enter the title name
  2. Enter the description for the software release
  3. Mark the check-box for status โ€“ Active
  4. Mark the check-box for status โ€“ Open
  5. Choose the release date
  6. Click on the “Create” button

Build Creation

Once a release is created, it appears like this.

Build Creation

Creating Test Suite

A Test Suite is a collection of test cases that validate the same component or feature. The following steps explain how to create a Test Suite for your project.

Step 1) Click on the “Test Specification” option from the home page.

Creating Test Suite

Step 2) On the right side of the panel, click the settings icon Creating Test Suite. A list of test operations is displayed.

Step 3) Click the “Create” tab for the Test Suite.

Creating Test Suite

Step 4) Fill in all the details for the Test Suite and click “Save”.

  1. Enter the Test Suite name
  2. Enter the details about your Test Suite
  3. Click “Save” to save the Test Suite

Creating Test Suite

You can see the Test Suite for Guru99 is created.

Creating Test Suite

Your Test Suite appears on the left side of the panel under the folder tree structure.

Creating a Test Case

A Test Case holds a sequence of test steps designed to validate a specific scenario with an expected result. The steps below explain how to create a Test Case along with its individual test steps.

Step 1) Click on the Test Suite folder on the left side of the panel under the folder tree structure.

Creating a Test Case

Step 2) Click the settings icon on the right side panel. A list of Test Case operations is displayed.

Creating a Test Case

Step 3) A new window opens. Click “Create” in the Test Case operations to start a new Test Case.

Creating a Test Case

Step 4) Enter the details on the Test Case specification page.

Creating a Test Case

Step 5) After entering the details, click “Create” to save them. The Test Case for Guru99 is created successfully.

Creating a Test Case

Step 6) Click on the Test Case from the folder. A new window opens. Click “Create steps” to launch the Test Case step editor.

Creating a Test Case

Step 7) Another window opens on the same page. Enter the following details.

  1. Enter the step action for your Test Case
  2. Enter the details about the step action
  3. Click “Save and add another step action” OR click “Save and exit” if there is no more test step to add

Creating a Test Case

Step 8) Once you save and exit the test step, it appears like this.

Creating a Test Case

Assigning Test Case to Test Plan

For a Test Case to be executed, it must be assigned to a Test Plan. The next steps explain how to add a Test Case to your Test Plan.

Step 1) Click the settings icon Assigning Test Case to Test Plan on the Test panel. A list of operations appears.

Step 2) Click on “Add to Test Plans”.

Assigning Test Case to Test Plan

Step 3) A new window opens. Search for your project “Guru99”.

  1. Mark the checkbox against your Test Plan
  2. Click on the “Add” button

Assigning Test Case to Test Plan

This adds your Test Case to the Test Plan.

Creating Users and Assigning Roles in TestLink

TestLink provides user management and authorization features so you can grant the right permissions to each team member.

Below is the list of default roles in TestLink and their rights.

Role Test Cases Test Metrics
Guest View View
Tester Execute View
Senior Tester Edit & Execute View
Leader & Admin Edit & Execute Edit & Execute

Step 1) From the TestLink home page, click on the Users/Roles icon in the navigation bar.

Creating Users and Assigning Roles in TestLink

Step 2) Click “Create”.

Creating Users and Assigning Roles in TestLink

Step 3) Fill in all the user details and click the “Save” button.

Creating Users and Assigning Roles in TestLink

The newly created users appear in the list.

Creating Users and Assigning Roles in TestLink

Step 4) Allot a Test Project role to the user.

  1. Click on the “Assign Test Project Roles” tab
  2. Choose the project name
  3. Select the user role from the drop-down

Creating Users and Assigning Roles in TestLink

Writing Requirements

Requirements describe what the system should do, and TestLink lets you store them alongside the test cases that verify them. The next steps show how to add a Requirement specification.

Step 1) From the navigation bar select the “Requirements” link. It opens the Requirement page.

Writing Requirements

Step 2) On the right side of the Requirement page, click “Create”.

Writing Requirements

Step 3) A new window opens. Enter all the details, including:

  1. Document ID
  2. Title name
  3. Requirement Description
  4. Click “Save”

For the type, you can choose an option from the drop-down. In this example, we chose “User Requirement Specification”.

Writing Requirements

Step 4) The Requirement Specification is created and displayed on the left side panel under the project “Guru99”.

Writing Requirements

Step 5) Select the settings button from the Requirements Specification home page. Another window opens.

Writing Requirements

Step 6) Click the “Create” tab under Requirement Operations.

Writing Requirements

Step 7) Fill in all the specified details and click “Save”.

  1. Enter the document ID
  2. Enter the title name
  3. Enter the description
  4. Enter the status โ€“ draft, rework, review, not testable, or valid (we chose valid)
  5. Enter the type โ€“ user interface, non-functional, informational, feature, or use case (we chose use case)
  6. Enter the number of test cases needed
  7. Click “Save” at the end

Writing Requirements

Note: To add more requirements, mark the check-box and click “Save”.

On the left side of the panel, the new Requirement is visible.

Writing Requirements

Assigning Requirement to Test Cases

In TestLink, a Requirement can be linked to Test Cases. This is a crucial feature for tracking test coverage. Inside the test reports view, you can verify which requirements are not covered and add them to test suites for maximum coverage.

Step 1) From the Test Specification section, open any single Test Case and click the Requirement icon.

Assigning Requirement to Test Cases

Step 2) To assign a Requirement Specification to a Test Case, follow these steps.

  1. Use the drop-down to select the Requirement Specification
  2. Mark the requirement checkbox
  3. Click on the “Assign” tab

Assigning Requirement to Test Cases

After clicking the “Assign” tab, a window appears with the message “Assigned Requirement”.

Assigning Requirement to Test Cases

Executing a Test Case

In TestLink, you can run a Test Case and change its execution status. A Test Case status can be set to “Blocked”, “Passed”, or “Failed”. Initially, the case is in “Not Run” status, but once updated, it cannot be altered back to “Not Run”.

Step 1) From the navigation bar click on the “Test Execution” link. It opens the Test Execution Panel.

Executing a Test Case

Step 2) Pick the Test Case you want to run from the left side panel.

Executing a Test Case

Step 3) Once you have selected the Test Case, a new window opens.

Executing a Test Case

Step 4) Follow these steps.

  1. Enter the notes related to the executed Test Case
  2. Select its status

Executing a Test Case

Step 5) On the same page, fill in similar details about the execution. Pick the status and click “Save Execution”.

Executing a Test Case

Generating Test Reports

Test Reports give visibility into execution progress, requirement coverage, and overall quality posture. TestLink supports several formats for sharing reports with stakeholders.

  • HTML
  • MS Word
  • MS Excel
  • OpenOffice Writer
  • OpenOffice Calc

Step 1) From the navigation bar, click on the Test Reports option.

Generating Test Reports

Step 2) From the left side panel, select the “Test Report” link.

Generating Test Reports

Step 3) To generate a report, follow these steps.

  1. Mark or unmark the options you want to highlight in your test report
  2. Click on your project folder

Generating Test Reports

The test report looks like this.

Generating Test Reports

Export Test Case / Test Suite

TestLink lets you export Test Projects and Test Suites, and then import them into another TestLink project on a different server or system. The next steps walk through the export workflow.

Step 1) Choose the Test Case you want to export on the Test Specification page.

Export Test Case / Test Suite

Step 2) On the right-hand side of the panel click the Export Test Case / Test Suite settings icon. It displays the operations that can be performed on the Test Case.

Step 3) Click the “Export” button.

Export Test Case / Test Suite

Step 4) Another window opens. Mark the option as per requirement and click the “Export” tab.

Export Test Case / Test Suite

The following XML is generated.

Export Test Case / Test Suite

Importing Test Case / Test Suite

Importing brings Test Cases or Suites from an XML export into the target Test Suite of your choice.

Step 1) Select the Test Suite folder where you want to import the Test Case.

Importing Test Case / Test Suite

Step 2) Click the settings icon Importing Test Case / Test Suite on the right-hand side of the panel. It displays the operations that can be executed on the Test Suite or Test Case.

Step 3) Click “Import” in the Test Case operations list.

Importing Test Case / Test Suite

Step 4) Browse for and attach the XML test case file you exported from TestLink, and click “Upload”.

  1. Use the browse option to attach the XML test case file you exported from TestLink
  2. Click on “Upload file”

Importing Test Case / Test Suite

When you upload a file, a window opens stating “Import test cases”.

Importing Test Case / Test Suite

Step 5) The Test Case is uploaded and displayed on the right-hand side of the panel.

Importing Test Case / Test Suite

FAQs

TestLink officially supports MySQL, Microsoft SQL Server, and PostgreSQL. MySQL remains the most common backend for production installations because it is well documented in the TestLink install guide and most hosting platforms support it.

TestLink integrates with popular defect tracking systems, including JIRA, MANTIS, BUGZILLA, TRAC, Redmine, and YouTrack. Each integration is configured through the cfg/ directory so failed test cases can be linked directly to a defect ticket.

Yes. TestLink is open-source software released under the GNU General Public License. Teams can download, install, and modify it without paying license fees, although they still need to provide hosting, a database, and ongoing maintenance effort.

Yes. AI assistants can draft test case titles, steps, and expected results from a requirement description. Reviewers should still verify accuracy and adjust the language before pasting the cases into TestLink to keep them aligned with project standards.

Not natively. TestLink stores execution data in its database, so teams typically export it or use the XML-RPC API to feed BI or AI tools. External AI dashboards can then highlight flaky tests, slow areas, and likely regression risks.

Summarize this post with: