Page 1 of 1

what valued should be used as 'testResultStatus' parameter

Posted: Tue Jun 12, 2012 6:01 pm
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?

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

Posted: Tue Jun 12, 2012 6:35 pm
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.