invalid developer keycode2000 problem

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

invalid developer keycode2000 problem

Postby srikanth » Thu Jul 09, 2009 10:53 am

i am trying connect the Test link server using ruby client code with XML-RPC.
After i ran the code throwing error like :
result was: message(reportTCResult) - Can not authenticate client: invalid developer keycode2000

Because i have used some key it is not generated by me.
Below is my client code:
#!/usr/bin/env ruby

# Testlink API Sample Ruby Client implementation
require 'xmlrpc/client'

class TestlinkAPIClient
# substitute your server URL Here
SERVER_URL = "http://testlinkpc/testlink/lib/api/xmlrpc.php"
def initialize(dev_key)
@server = XMLRPC::Client.new2(SERVER_URL)
@devKey = dev_key

def reportTCResult(tcid, tpid, status)
args = {"devKey"=>@devKey, "tcid"=>tcid, "tpid"=>tpid, "status"=>status}"tl.reportTCResult", args)

# substitute your Dev Key Here
client ="f2a979d533cdd9761434bba60a88e4d8")
# Substitute for tcid and tpid that apply to your project
result = client.reportTCResult(18,2361,"f")
# Typically you'd want to validate the result here and probably do something more useful with it
puts "result was: %s" %(result)
Can any one suggest how to get the API key for the testlink access.

TestLink user
Posts: 2
Joined: Tue Jun 30, 2009 6:54 am

Return to XML-RPC API

Who is online

Users browsing this forum: No registered users and 2 guests