forked from ChaitanyaQA/testlink-api-client
-
Notifications
You must be signed in to change notification settings - Fork 7
Getting Started
Jason Mavandi edited this page Jul 7, 2015
·
3 revisions
testlink-connect
is a node module that can be used to interact with testlink's xmlrpc api.
To download from npmjs.org
npm i testlink-connect
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.
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."
tc.getTestLinkVersion(function(callback){
console.log(callback);
});
It should print something like this to your console:
{ string: '1.9.13' }
Go to the Methods page to see the list of methods and how to use them.