I am new to testlink and I have come a long way, setting up everything from mysql, php, apache, testlink with the help of this forum......

I am stuck with the api now

I get the error, "reportTCResult result was: [{'message': 'LOCALIZE: INSUFFICIENT_RIGHTS', 'code': 2010}]
Here is my python code:
#! /usr/bin/python
"""
Testlink API Sample Python Client implementation
"""
import xmlrpclib
class TestlinkAPIClient:
# substitute your server URL Here
SERVER_URL = "http://localhost:8080/testlink/lib/api/xmlrpc.php"
def __init__(self, devKey):
self.server = xmlrpclib.Server(self.SERVER_URL)
self.devKey = devKey
def getdevKey(self):
return self.devKey
def reportTCResult(self, tcid, tpid, buildid, status):
print tcid
print tpid
data = {"devKey":self.devKey, "testcaseid":tcid, "testplanid":tpid, "buildid":buildid, "status":status}
return self.server.tl.reportTCResult(data)
def getInfo(self):
return self.server.tl.about()
#client = TestlinkAPIClient()
client = TestlinkAPIClient("51f1257065e1721a8bc6aee7ec565530")
print client.getInfo()
result = client.reportTCResult(3,7,1,"p")
print "reportTCResult result was: %s" %(result)