I am new to testlink API and wonder if we have something like get test status by build id?
The use case for this is I can call a script and it quickly tells me how many test cases in a given build has passed (or failed or not ran).
Which API do you recommend me to use? Doesn't seem to have a good one from: http://www.teamst.org/index.php/news-ma ... via-xmlrpc
getTestStatusByBuildID ?
Moderators: Amaradana, TurboPT, TL Developers
getTestStatusByBuildID ?
ISTQB CTAL / CTFL
Re: getTestStatusByBuildID ?
I am answering my own question again, the procedure that I should be using is "getLastExecutionResult"
I am using testlink 1.9.3, and I can see that the full list of api are here ~/lib/api/xmlrpc.class.php
I am using testlink 1.9.3, and I can see that the full list of api are here ~/lib/api/xmlrpc.class.php
Code: Select all
$this->methods = array( 'tl.reportTCResult' => 'this:reportTCResult',
'tl.setTestCaseExecutionResult' => 'this:reportTCResult',
'tl.createBuild' => 'this:createBuild',
'tl.createTestCase' => 'this:createTestCase',
'tl.createTestPlan' => 'this:createTestPlan',
'tl.createTestProject' => 'this:createTestProject',
'tl.createTestSuite' => 'this:createTestSuite',
'tl.uploadExecutionAttachment' => 'this:uploadExecutionAttachment',
'tl.uploadRequirementSpecificationAttachment' => 'this:uploadRequirementSpecificationAttachment',
'tl.uploadRequirementAttachment' => 'this:uploadRequirementAttachment',
'tl.uploadTestProjectAttachment' => 'this:uploadTestProjectAttachment',
'tl.uploadTestSuiteAttachment' => 'this:uploadTestSuiteAttachment',
'tl.uploadTestCaseAttachment' => 'this:uploadTestCaseAttachment',
'tl.uploadAttachment' => 'this:uploadAttachment',
'tl.assignRequirements' => 'this:assignRequirements',
'tl.addTestCaseToTestPlan' => 'this:addTestCaseToTestPlan',
'tl.getProjects' => 'this:getProjects',
'tl.getTestProjectByName' => 'this:getTestProjectByName',
'tl.getTestPlanByName' => 'this:getTestPlanByName',
'tl.getProjectTestPlans' => 'this:getProjectTestPlans',
'tl.getTestPlanPlatforms' => 'this:getTestPlanPlatforms',
'tl.getTotalsForTestPlan' => 'this:getTotalsForTestPlan',
'tl.getBuildsForTestPlan' => 'this:getBuildsForTestPlan',
'tl.getLatestBuildForTestPlan' => 'this:getLatestBuildForTestPlan',
'tl.getLastExecutionResult' => 'this:getLastExecutionResult',
'tl.getTestSuitesForTestPlan' => 'this:getTestSuitesForTestPlan',
'tl.getTestSuitesForTestSuite' => 'this:getTestSuitesForTestSuite',
'tl.getTestCasesForTestSuite' => 'this:getTestCasesForTestSuite',
'tl.getTestCasesForTestPlan' => 'this:getTestCasesForTestPlan',
'tl.getTestCaseIDByName' => 'this:getTestCaseIDByName',
'tl.getTestCaseCustomFieldDesignValue' => 'this:getTestCaseCustomFieldDesignValue',
'tl.getFirstLevelTestSuitesForTestProject' => 'this:getFirstLevelTestSuitesForTestProject',
'tl.getTestCaseAttachments' => 'this:getTestCaseAttachments',
'tl.getTestCase' => 'this:getTestCase',
'tl.getFullPath' => 'this:getFullPath',
'tl.getTestSuiteByID' => 'this:getTestSuiteByID',
'tl.deleteExecution' => 'this:deleteExecution',
'tl.doesUserExist' => 'this:doesUserExist',
'tl.checkDevKey' => 'this:checkDevKey',
'tl.about' => 'this:about',
'tl.setTestMode' => 'this:setTestMode',
// ping is an alias for sayHello
'tl.ping' => 'this:sayHello',
'tl.sayHello' => 'this:sayHello',
'tl.repeat' => 'this:repeat'
);
ISTQB CTAL / CTFL
Re: getTestStatusByBuildID ?
I have moved on and created my own RPC public function getTestStatusByBuild... works really well.
I thought this might be very useful because with an automated script we can check the outstanding test cases quickly, perhaps even a cron job to send an email to QA manager every hour or so
I wonder if it is possible for me to submit these as part of the contribution to next version of testlink release?
I thought this might be very useful because with an automated script we can check the outstanding test cases quickly, perhaps even a cron job to send an email to QA manager every hour or so

I wonder if it is possible for me to submit these as part of the contribution to next version of testlink release?
ISTQB CTAL / CTFL
Re: getTestStatusByBuildID ?
>> I wonder if it is possible for me to submit these as part of the contribution to next version of testlink release?
can you explain why this can not be possible ?
Just open an issue on Mantis, with right subject and requirement.
Comment code you have written following our rules, use also our standard naming convention
Upload there FULL FILES (no patch, no diff) in zip format.
we will review and see how easy or difficult will be add your contrib to standard code
can you explain why this can not be possible ?
Just open an issue on Mantis, with right subject and requirement.
Comment code you have written following our rules, use also our standard naming convention
Upload there FULL FILES (no patch, no diff) in zip format.
we will review and see how easy or difficult will be add your contrib to standard code