Defect in API sample code

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

Defect in API sample code

Postby sfunk » Thu Oct 30, 2008 3:49 am

There is a defect in the Python code where the dictionary parameter names do not align with the dictionary in TestlinkXMLRPCServer where they are passed to:

EXAMPLE NAMES in all Sample Code regardless of language:

def reportTCResult(self, tcid, tpid, status):
data = {"devKey":self.devKey, "tcid":tcid, "tpid":tpid, "status":status}
return self.server.tl.reportTCResult(data)

ACTUAL DICTIONARY NAMES:
Parameters:
struct $args:
string $args["devKey"]:
int $args["testcaseid"]:
int $args["testplanid"]:
string $args["status"]: - status is $validStatusList
int $args["buildid"]: - optional
string $args["notes"]: - optional
bool $args["guess"]: - optional
sfunk
TestLink user
 
Posts: 8
Joined: Fri Oct 10, 2008 1:22 am

Return to XML-RPC API



Who is online

Users browsing this forum: No registered users and 1 guest

cron