what valued should be used as 'testResultStatus' parameter

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
sjoshi
TestLink user
Posts: 3
Joined: Thu Sep 02, 2010 7:41 pm

what valued should be used as 'testResultStatus' parameter

Post by sjoshi »

Hello,
I want to use reportTestCaseResult() api to update my result into TestLink. What value should I use for 'testResultStatus' parameter?
I tried using all different strings as 'Pass', 'P', 'Passed', 'pass', 'PASS'. But every time I am getting following error message.

testlink.api.java.client.TestLinkAPIException:
The xml-rpc call to TestLink API method tl.reportTCResult failed.
Result[0] = {message=The status code (Passed) provided is not valid!, code=6000}

Does anyone have any idea on this one?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: what valued should be used as 'testResultStatus' paramet

Post by fman »

1. we have invested time to write examples on PHP, that can be used to understand this
2. you can give a look to xmlrpc server implementation
3. you have to use code as if defined on TL config files using exact case => 'p' for passed.
Post Reply