Hi
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
end
def reportTCResult(tcid, tpid, status)
args = {"devKey"=>@devKey, "tcid"=>tcid, "tpid"=>tpid, "status"=>status}
@server.call("tl.reportTCResult", args)
end
end
# substitute your Dev Key Here
client = TestlinkAPIClient.new("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.
Thanks
Srikanth
invalid developer keycode2000 problem
Moderators: Amaradana, TurboPT, TL Developers