TeamForge's native Webhooks-based Event Broker replaces EventQ as the default event broker to support TeamForge integration with TestLink. EventQ-based TeamForge—Testlink integration is no longer supported.

TestLink is a web-based Test Management system that supports all the various components and processes involved in a testing process. Using TestLink, you can create test specifications, execute test cases, create custom reports, generate test plan metrics and so on.

Before You Begin

Before you begin with the installation and the configuration of the TeamForge—TestLink integration plugin, generate the TeamForge Webhook URL by running the script.

TeamForge—TestLink Integration Overview

The TestLink integration plugin, collabnet-testlink-1.0.5.tar, if installed and configured, can notify the native TeamForge Webhooks-based Event Broker about the test cases and the test execution results.

The TeamForge—TestLink integration plugin, collabnet-testlink-1.0.5.tar, works only with the TestLink versions 1.9.17–1.9.20.

For more information about the installation requirements for TeamForge—TestLink integration, see:

Contact CollabNet for support on TeamForge—Testlink integration. For TestLink support, contact TestLink directly. Click here for more information.

TeamForge 16.7 through TeamForge 19.1 support integration only with TestLink 1.9.15 and 1.9.16 using the collabnet-testlink-1.0.2.tar plugin.

TeamForge 19.2 supports integration with TestLink versions 1.9.17–1.9.20 using the collabnet-testlink-1.0.3.tar plugin.

TeamForge 19.3 and later supports integration with TestLink versions 1.9.17–1.9.20 using the collabnet-testlink-1.0.5.tar plugin.

If you are on earlier versions of TestLink, upgrade to one of the supported TestLink versions and integrate it with TeamForge. This integration does not provide backward compatibility (Data reliability and Migration) to older TeamForge—TestLink 1.9.11 integration that is based on TeamForge’s Integrated Application Framework (IAF).

By default, only TeamForge Site Administrators can create test suites. If you want other users to create test suites, you must create a site-wide role in TeamForge, grant “CREATE/VIEW” access to “All Projects” for the role and assign this role to users.

TeamForge 20.0 supports integration with TestLink 1.9.17–1.9.20 to track and synchronize requirement and defect tracker artifacts between these two systems.

The TeamForge—TestLink integration has two primary touch points:

  • Requirements (TeamForge) to Test Suites (TestLink)
  • Test Case Run Failures (TestLink) to Defects (TeamForge)

    TeamForge-TestLink Integration Workflow

Here is a sample workflow to illustrate these touch points:

  1. Map TeamForge and TestLink projects—The first step is to establish a project mapping between the intended TeamForge and TestLink projects. During mapping, in TestLink, you’ll be able to specify the TeamForge “Requirements” and “Defects” trackers for your project. These trackers will be used throughout the workflow.
  2. Create Requirements and Test Suites—When a requirements tracker artifact is created in the TeamForge tracker specified in Step 1, you can choose to have a “Test Suite” created in TestLink. The Test Suite, once created, is associated with the requirements tracker artifact in TeamForge.

    TeamForge's Requirements Artifacts mapped with TestLink's Test Suites
  3. Populate Test Suite with Test Cases—Within TestLink, you can find and populate your Test Suite with Test Cases.
  4. Run Test Cases against Builds—Once the Test Cases have been defined, you can run them against desired builds, tracking results in TestLink. Test Case runs are associated to the build/binary being tested for traceability purposes.
  5. Create Defects for failed Test Case runs—If you encounter failing Test Case runs, you can simply click a button inside TestLink to create a defect in TeamForge. This is a “push button” defect that opens a new TeamForge window pre-populated with Test Case run failure data. An association will be created between the failing Test Case run and the new Defect.

  6. Visualize Traceability—Once this cycle is complete, you can view the associations chain between the requirements tracker artifact and the Test Suite, Test Case runs and any associated defects, the builds or binaries they exercised, the commits which triggered the build, and ultimately the requirements that started it all.

Set up the TeamForge Application Server

Follow these instructions to install the TestLink integration plugin on the TeamForge 20.0 Application Server.

  1. Log on to the TeamForge Application Server.
  2. If you have been having TeamForge—TestLink integrated earlier, delete the existing plugin JAR file (for example collabnet-testlink-1.0.3.jar) post upgrade to TeamForge 20.0.
    1. Go to My Workspace > Admin.
    2. Select Projects > System Tools > Customizations.
    3. Select the TestLink plugin JAR file (for example, collabnet-testlink-1.0.3.jar).
    4. Click Delete. A confirmation message is displayed.
    5. Click OK.
  3. Download the collabnet-testlink-1.0.4.jar file.
  4. Go to My Workspace > Admin.
  5. Select Projects > System Tools > Customizations and click Create.
  6. Click Choose File and select the collabnet-testlink-1.0.4.jar file.
  7. Click Add.
  1. Log on to the TestLink Server.

  2. If you’ve been having TeamForge integrated with TestLink 1.9.16 or earlier:
    1. Upgrade your TestLink server to one of the supported TestLink versions 1.9.17–1.9.20. Follow the TestLink’s official upgrade procedure.

      Make sure that you have the following RPMs available during TestLink installation:

    2. Remove the existing TeamForge—Testlink integration plugin.
    3. Uninstall the existing TeamForge—TestLink integration plugin.
      1. Delete the TeamForge project mapping.

        Before uninstalling the TeamForge—TestLink integration plugin, it is a best practice, but not mandatory, to delete the TeamForge project mapping in TestLink.

      2. Click TeamForge Setup.
      3. Click Delete. A confirmation message is displayed.
      4. Click OK. The TeamForge project mapping is deleted.
      5. Click the Plugins icon from the toolbar.
      6. Identify the TeamForge—TestLink integration plugin from the list of Installed Plugins and click Uninstall.
  3. If you are installing TestLink for the first time, just download and install one of the supported TestLink versions 1.9.17–1.9.20 on the TestLink server.

  4. Download the collabnet-testlink-1.0.5.tar plugin file to the /tmp directory and untar the file to <testlink-installation-directory>/plugins directory.

    cd <testlink-installation-directory>/plugins/
    tar -xvf /tmp/collabnet-testlink-1.0.5.tar
  5. Log on to TestLink.

  6. Click the Plugins icon from the toolbar.

  7. Identify the TeamForge—TestLink integration plugin from the list of Availabe Plugins and click Install.

    The TeamForge—TestLink integration plugin is installed and shows up in the Installed Plugins section.

  8. Go to TestLink Home and click the TeamForge Webhook Setup link.

  9. Enter the Webhook URL and click Save.

  10. Click the Home icon from the toolbar.

  11. Create a TestLink project.
    1. Click Test Project Management and click Create.
    2. Define project attributes such as the name, description, project prefix and so on. Click Create.
  12. Go to the home page and click the TeamForge Setup link. This is where oyu create the mapping between the TeamForge and TestLink projects.

  13. Enter the TeamForge Project Home URL, Username, Password, Defect Tracker ID, Requirements Tracker ID and click Save.

    For more information on creating a TeamForge project and setting up trackers, see:

    Association Between the Requirements Artifact and the Test Suite
    Once you create a mapping between the TeamForge and TestLink projects, three new fields show up on the TeamForge’s Requirements and Defect trackers.
    TestLink fields that show up when you map TeamForge—TestLink projects

    Select Create from the Test Suite drop-down list and type the TestLink project name to have a test suite created in TestLink whenever you create a new requirements artifact in TeamForge. The Test Suite so created is associated with the requirements tracker artifact as well.

    Select the Associations tab and view the association between the requirements artifact and the test suite.
    Association between the requirements artifact and the test suite