Skip to content
Jason Mavandi edited this page Jul 7, 2015 · 3 revisions

Welcome to the testlink-connect wiki!

testlink-connect is a node module that can be used to interact with testlink's xmlrpc api.

Downloading

To download from npmjs.org

npm i testlink-connect

Getting Started

Require testlink-connect in your .js file.

var TestlinkConnect = require("testlink-connect");

Initialize your your instance of testlink-connect into a variable.

var tc = new TestlinkConnect(<api key>, <xmlrpc url>);

You can find your api key, on the account settings page of your testlink. You can find it by going to your testlink url plus '/lib/usermanagement/userInfo.php'. It will probably look like the image below.

Testlink API Key

The xmlrp url is usually your testlink url plus '/lib/api/xmlrpc/v1/xmlrpc.php'. If you go there you should see the text "XML-RPC server accepts POST requests only."

Test to make sure that everything is working
tc.getTestLinkVersion(function(callback){ 
   console.log(callback); 
});

It should print something like this to your console:

{ string: '1.9.13' }

Going Forward

Go to the Methods page to see the list of methods and how to use them.