Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005857TestLinkAPI - XMLRPCpublic2013-08-14 13:312013-09-08 17:53
Reporterradoslaw.sporny 
Assigned Tofman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.9.7 (2013 Q2 - bug fixing) 
Fixed in Version1.9.8 (2013 Q3 - bug fixing) 
Summary0005857: getTestCase() method with specified 'version' param always return version 1
DescriptionWhen you call XMLRPC API method getTestCase() with 'version' parameter it always returns version 1.

It may cause unexpected failures. For example, TC-1 has version 2 and 3, but version 1 was deleted. When you call getTestCase() with specified 'version' param (let's say that you want 2) it returns error message "(getTestCase) - No Test Case found for search criteria". In that case there is no way to get TC-1 in version 2.
Steps To Reproduce1. Call getTestCase('testcaseid', 'version').

Example request:
<?xml version="1.0" encoding="ISO-8859-1"?>
<methodCall>
   <methodName>tl.getTestCase</methodName>
   <struct>
      <devKey>
         <name>devKey</name>
         <value><string>your.dev.key</string></value>
      </devKey>
      <testcaseid>
         <name>testcaseid</name>
         <value><int>tc.internal.id</int></value>
      </testcaseid>
      <version>
         <name>version</name>
         <value><int>2</int></value>
      </version>
   </struct>
</methodCall>
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
Browser
PHP Version
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Files

- Relationships
child of 0005731closedfman Availables hot-fixes for 1.9.7 & How To get full fixed package from gitorious 

-  Notes
(0019420)
fman (administrator)
2013-08-14 14:02

quick fix

Original
$result = $testCaseMgr->get_by_id($id,$version_id,'ALL','ALL',$version_number);
    

Replace with
$filters = array('active_status' => 'ALL', 'open_status' => 'ALL', 'version_number' => $version_number);

    $result = $testCaseMgr->get_by_id($id,$version_id,$filters);
(0019421)
radoslaw.sporny (reporter)
2013-08-14 14:38

works very well for me - thanks for fast response!
(0019525)
fman (administrator)
2013-09-08 17:53

1.9.8 released

- Issue History
Date Modified Username Field Change
2013-08-14 13:31 radoslaw.sporny New Issue
2013-08-14 13:44 fman Assigned To => fman
2013-08-14 13:44 fman Status new => acknowledged
2013-08-14 14:02 fman Note Added: 0019420
2013-08-14 14:02 fman QA Team - Task Workflow Status TBD => READY FOR TESTING
2013-08-14 14:02 fman Status acknowledged => resolved
2013-08-14 14:02 fman Fixed in Version => 1.9.8 (2013 Q3 - bug fixing)
2013-08-14 14:02 fman Resolution open => fixed
2013-08-14 14:04 fman Relationship added child of 0005731
2013-08-14 14:38 radoslaw.sporny Note Added: 0019421
2013-09-08 17:53 fman Note Added: 0019525
2013-09-08 17:53 fman Status resolved => closed



Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker