Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006161TestLinkAPI - XMLRPCpublic2014-01-16 19:202017-06-15 20:55
Reporterlczub 
Assigned To 
PrioritylowSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version1.9.9 (2013 Q4 - bug fixing) 
Fixed in Version 
Summary0006161: getTestCasesForTestPlan parameter 'details' as no effect
Descriptionusing the xml-rpc api call getTestCasesForTestPlan with different settings for parameter 'details' returns always an equal set of arguments.

it seams, that the parameter 'details' is not evaluated.
Steps To Reproducemanual steps in TL:
1. create project 'P-A' with test suite 'TS-A', test case 'TC-A',
2. create test plan 'TP-A' with build 'B-A' and add test case 'TC-A' with some steps

API call from client
3. call xml-rpc api method getTestCasesForTestPlan with
   - testplanid TP-A, testcaseid TC-A , details = 'full'
   example return values
  {'6047': [{'tcase_id': '6047', 'feature_id': '607', 'tcversion_id': '6048',
   'platform_id': '0', 'tc_id': '6047', 'execution_type': '1',
   'tcase_name': 'Case i18 a', 'version': '1', 'execution_duration': '',
   'full_external_id': 'i18a-1', 'external_id': '1', 'platform_name': '',
   'execution_order': '1', 'exec_status': 'p'}]}
   
4. call xml-rpc api method getTestCasesForTestPlan with
   - testplanid TP-A, testcaseid TC-A , details = 'details'
   example return values
  {'6047': [{'tcase_id': '6047', 'feature_id': '607', 'tcversion_id': '6048',
   'platform_id': '0', 'tc_id': '6047', 'execution_type': '1',
   'tcase_name': 'Case i18 a', 'version': '1', 'execution_duration': '',
   'full_external_id': 'i18a-1', 'external_id': '1', 'platform_name': '',
   'execution_order': '1', 'exec_status': 'p'}]}

5. call xml-rpc api method getTestCasesForTestPlan with
   - testplanid TP-A, testcaseid TC-A , details = 'simple'
   example return values
  {'6047': [{'tcase_id': '6047', 'feature_id': '607', 'tcversion_id': '6048',
   'platform_id': '0', 'tc_id': '6047', 'execution_type': '1',
   'tcase_name': 'Case i18 a', 'version': '1', 'execution_duration': '',
   'full_external_id': 'i18a-1', 'external_id': '1', 'platform_name': '',
   'execution_order': '1', 'exec_status': 'p'}]}

TagsNo tags attached.
Database (MySQL,Postgres,etc)postgres 9.2
Browser
PHP Version
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
(0020347)
fman (administrator)
2014-01-20 22:43
edited on: 2014-01-20 22:53

when refactoring on 1.9.4 replacing call to get_linked_tcversions() with
call to getLTCVNewGeneration(), I've not checked that all documented option still
worked.

(0023311)
Mr.Bricodage (updater)
2015-05-03 14:13

Test on 1.9.14 dev,
$args["details"]='full';

<?xml version="1.0"?>
<methodCall>
<methodName>tl.getTestCasesForTestPlan</methodName>
<params>
<param><value><struct>
  <member><name>devKey</name><value><string>868617ce01e6edd5559d9defb5055543</string></value></member>
  <member><name>testplanid</name><value><int>8</int></value></member>
  <member><name>details</name><value><string>full</string></value></member>
</struct></value></param>
</params></methodCall>
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member><name>4</name><value><array><data>
<value><struct>
<member><name>tcase_name</name><value><string>TC101-1</string></value></member>
<member><name>tcase_id</name><value><string>4</string></value></member>
<member><name>tc_id</name><value><string>4</string></value></member>
<member><name>tcversion_id</name><value><string>5</string></value></member>
<member><name>version</name><value><string>1</string></value></member>
<member><name>external_id</name><value><string>1</string></value></member>
<member><name>execution_type</name><value><string>1</string></value></member>
<member><name>status</name><value><string>1</string></value></member>
<member><name>feature_id</name><value><string>1</string></value></member>
<member><name>platform_id</name><value><string>0</string></value></member>
<member><name>platform_name</name><value><string></string></value></member>
<member><name>execution_order</name><value><string>10000</string></value></member>
<member><name>exec_status</name><value><string>n</string></value></member>
<member><name>execution_duration</name><value><string></string></value></member>
<member><name>full_external_id</name><value><string>auto-1</string></value></member>
<member><name>exec_id</name><value><string>0</string></value></member>
<member><name>tcversion_number</name><value><string></string></value></member>
<member><name>exec_on_build</name><value><string></string></value></member>
<member><name>exec_on_tplan</name><value><string></string></value></member>
</struct></value>
</data></array></value></member>
<member><name>6</name><value><array><data>
<value><struct>
<member><name>tcase_name</name><value><string>KOMODO</string></value></member>
<member><name>tcase_id</name><value><string>6</string></value></member>
<member><name>tc_id</name><value><string>6</string></value></member>
<member><name>tcversion_id</name><value><string>7</string></value></member>
<member><name>version</name><value><string>1</string></value></member>
<member><name>external_id</name><value><string>2</string></value></member>
<member><name>execution_type</name><value><string>1</string></value></member>
<member><name>status</name><value><string>1</string></value></member>
<member><name>feature_id</name><value><string>2</string></value></member>
<member><name>platform_id</name><value><string>0</string></value></member>
<member><name>platform_name</name><value><string></string></value></member>
<member><name>execution_order</name><value><string>10010</string></value></member>
<member><name>exec_status</name><value><string>n</string></value></member>
<member><name>execution_duration</name><value><string></string></value></member>
<member><name>full_external_id</name><value><string>auto-2</string></value></member>
<member><name>exec_id</name><value><string>0</string></value></member>
<member><name>tcversion_number</name><value><string></string></value></member>
<member><name>exec_on_build</name><value><string></string></value></member>
<member><name>exec_on_tplan</name><value><string></string></value></member>
</struct></value>
</data></array></value></member>
</struct>
</value>
</param>
</params>
</methodResponse>

Same request with
$args["details"]='simple';

<?xml version="1.0"?>
<methodCall>
<methodName>tl.getTestCasesForTestPlan</methodName>
<params>
<param><value><struct>
  <member><name>devKey</name><value><string>868617ce01e6edd5559d9defb5055543</string></value></member>
  <member><name>testplanid</name><value><int>8</int></value></member>
  <member><name>details</name><value><string>simple</string></value></member>
</struct></value></param>
</params></methodCall>
<?xml version="1.0"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member><name>4</name><value><array><data>
<value><struct>
<member><name>tcase_name</name><value><string>TC101-1</string></value></member>
<member><name>tcase_id</name><value><string>4</string></value></member>
<member><name>tc_id</name><value><string>4</string></value></member>
<member><name>tcversion_id</name><value><string>5</string></value></member>
<member><name>version</name><value><string>1</string></value></member>
<member><name>external_id</name><value><string>1</string></value></member>
<member><name>execution_type</name><value><string>1</string></value></member>
<member><name>status</name><value><string>1</string></value></member>
<member><name>feature_id</name><value><string>1</string></value></member>
<member><name>platform_id</name><value><string>0</string></value></member>
<member><name>platform_name</name><value><string></string></value></member>
<member><name>execution_order</name><value><string>10000</string></value></member>
<member><name>exec_status</name><value><string>n</string></value></member>
<member><name>execution_duration</name><value><string></string></value></member>
<member><name>full_external_id</name><value><string>auto-1</string></value></member>
<member><name>exec_id</name><value><string>0</string></value></member>
<member><name>tcversion_number</name><value><string></string></value></member>
<member><name>exec_on_build</name><value><string></string></value></member>
<member><name>exec_on_tplan</name><value><string></string></value></member>
</struct></value>
</data></array></value></member>
<member><name>6</name><value><array><data>
<value><struct>
<member><name>tcase_name</name><value><string>KOMODO</string></value></member>
<member><name>tcase_id</name><value><string>6</string></value></member>
<member><name>tc_id</name><value><string>6</string></value></member>
<member><name>tcversion_id</name><value><string>7</string></value></member>
<member><name>version</name><value><string>1</string></value></member>
<member><name>external_id</name><value><string>2</string></value></member>
<member><name>execution_type</name><value><string>1</string></value></member>
<member><name>status</name><value><string>1</string></value></member>
<member><name>feature_id</name><value><string>2</string></value></member>
<member><name>platform_id</name><value><string>0</string></value></member>
<member><name>platform_name</name><value><string></string></value></member>
<member><name>execution_order</name><value><string>10010</string></value></member>
<member><name>exec_status</name><value><string>n</string></value></member>
<member><name>execution_duration</name><value><string></string></value></member>
<member><name>full_external_id</name><value><string>auto-2</string></value></member>
<member><name>exec_id</name><value><string>0</string></value></member>
<member><name>tcversion_number</name><value><string></string></value></member>
<member><name>exec_on_build</name><value><string></string></value></member>
<member><name>exec_on_tplan</name><value><string></string></value></member>
</struct></value>
</data></array></value></member>
</struct>
</value>
</param>
</params>
</methodResponse>
(0023312)
Mr.Bricodage (updater)
2015-05-03 14:14
edited on: 2015-05-03 14:15

==> 'simple' and 'full' get the same answer on 1.9.14-dev

(0026484)
MichielV (reporter)
2017-06-15 20:55

Hi, I'm experiencing the same issue on 1.9.16 with PHP7 and a MySQL 5.7 database.
I'm mainly interested in getting the step data and expected execution times. Is it possible to have a fix for this or is it recommended to work around the issue by requesting the list of testcases and then doing a gettestcase call for each case in the list?

- Issue History
Date Modified Username Field Change
2014-01-16 19:20 lczub New Issue
2014-01-16 19:29 fman QA Team - Task Workflow Status => TBD
2014-01-16 19:29 fman Product Version => 1.9.9 (2013 Q4 - bug fixing)
2014-01-20 22:43 fman Note Added: 0020347
2014-01-20 22:53 fman Note Edited: 0020347 View Revisions
2015-05-03 14:13 Mr.Bricodage Note Added: 0023311
2015-05-03 14:14 Mr.Bricodage Note Added: 0023312
2015-05-03 14:15 Mr.Bricodage Note Edited: 0023312 View Revisions
2017-06-15 20:55 MichielV Note Added: 0026484



Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker