Defect in API sample code

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
sfunk
TestLink user
Posts: 8
Joined: Fri Oct 10, 2008 1:22 am

Defect in API sample code

Post by sfunk »

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
Post Reply