Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005477TestLinkTest Plan - Add/Remove Test Casespublic2013-01-16 13:182013-01-28 20:15
Assigned Tofman 
StatusclosedResolutionunable to reproduce 
PlatformSUSE Linux Enterprise Server OSLinuxOS Version11.2
Product Version1.9.5 (2012 Q4 - bug fixing) 
Fixed in Version 
Summary0005477: Not possible to add multiple test cases to a testplan
DescriptionAfter upgrade from 1.9.3 to 1.9.5 I've got following problems:

When adding multiple test cases to a test plan only the first one is added.

The same behavior is observed when assigning and unassigning requirements to a test case.

Sometimes when adding test cases to the test plan an db error occurs:
From the event log:
16/01/2013 10:17:44
 ERROR ON exec_query() - database.class.php
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 - /* Class:tree - Method: _get_path */ SELECT id,name,parent_id,node_type_id,node_order FROM nodes_hierarchy WHERE id =
THE MESSAGE : /* Class:tree - Method: _get_path */ SELECT id,name,parent_id,node_type_id,node_order FROM nodes_hierarchy WHERE id = Query failed: errorcode[1064] errormsg:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Displayed in the browser:
 DB Access Error - debug_print_backtrace() OUTPUT START
#0 database->exec_query() called at [/srv/www/htdocs/lib/functions/tree.class.php:461]
#1 tree->_get_path() called at [/srv/www/htdocs/lib/functions/tree.class.php:393]
0000002 tree->get_path() called at [/srv/www/htdocs/lib/functions/testcase.class.php:1414]
0000003 testcase->getPrefix() called at [/srv/www/htdocs/lib/functions/testplan.class.php:443]
0000004 testplan->tcversionInfoForAudit() called at [/srv/www/htdocs/lib/functions/testplan.class.php:482]
0000005 testplan->link_tcversions() called at [/srv/www/htdocs/lib/plan/planAddTC.php:89]
Warnings in the eventlog at the same time.
 E_NOTICE Undefined index: filter_active_inactive - in /srv/www/htdocs/gui/templates_c/%%31^31A^31A35F5F%%inc_filter_panel.tpl.php - Line 229
16/01/2013 10:19:15
 E_NOTICE Undefined offset: 3077 - in /srv/www/htdocs/lib/plan/planAddTC.php - Line 411
16/01/2013 10:16:55

Steps To Reproduce1. Enter "test plan contents"->"Add / remove testcases"
2. Select a folder with requirements
3. Select all test cases with "check all platforms adding"
4. Press "add / remove" selected button
5. Result: Only one test case is added to the test plan

TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL 5.0.94
BrowserChrome 24.0.1312.52
PHP VersionPHP 5.3.8
QA Team - Task Workflow StatusTBD
Attached Fileszip file icon [^] (370,361 bytes) 2013-01-16 13:20

- Relationships
duplicate of 0004340closedfman I am not able add test cases to test plan which already contains 448 test cases. 

-  Notes
claesstrale (reporter)
2013-01-16 13:20

attached screenshots
fman (administrator)
2013-01-16 16:30
edited on: 2013-01-16 16:33

we need detailed steps to reproduce with expected and actual results.
Without this info this ticket can not be processed
Details provided are not enough.

1. create test project X
2. create test suite ...
3. create test plan Y
4. create platform A,B,C ecc
5. ....

This is only way we can try to reproduce

Please TRY WITH FRESH INSTALL to check if issue is originated on UPGRADE

fman (administrator)
2013-01-19 15:48

any news ?
claesstrale (reporter)
2013-01-22 08:29

Here is a result of some testing on different environments.

First when I ported from 1.9.3 I started of with:

That did not work so I tried a clean installation of 1.9.5 on Wampserver 2.2
Apache 2.2.22
PHP 5.3.13
MySQL 5.5.24
Windows 7

Everything worked fine. So I imported the db from the Linux installation. Everything still worked.

So it ended up in Ubuntu 12.04
Source: mysql-source-5.5 Version: 5.5.28-0ubuntu0.12.04.3
PHP Version 5.3.10-1ubuntu3.4
Package: apache2 Version: 2.2.22-1ubuntu1.2

with the very same db and it still worked. So it seems like an environment problem and not a db problem.

Since all problems were originated by a post of multiple choices, it may have something to do with PHP?
Lots of bugs has been corrected in PHP 5.3.9 (>90)
fman (administrator)
2013-01-22 20:55

give a look to solution on 0004340
and please provide feedback
claesstrale (reporter)
2013-01-23 08:06

No, I don't think it is a due to that PHP configuration issue.
Both the old and the new environment was set up with the default configuration value for max_input_vars.

And even very small pages like the "add requirement page" with like 8 checkboxes and selecting only two of them resulted in only one posted.

- Issue History
Date Modified Username Field Change
2013-01-16 13:18 claesstrale New Issue
2013-01-16 13:20 claesstrale File Added:
2013-01-16 13:20 claesstrale Note Added: 0018173
2013-01-16 16:30 fman Note Added: 0018174
2013-01-16 16:31 fman Description Updated View Revisions
2013-01-16 16:33 fman Note Edited: 0018174 View Revisions
2013-01-16 16:36 fman Product Version => 1.9.5 (2012 Q4 - bug fixing)
2013-01-19 15:48 fman Note Added: 0018191
2013-01-19 15:48 fman Status new => feedback
2013-01-22 08:29 claesstrale Note Added: 0018204
2013-01-22 08:29 claesstrale Status feedback => new
2013-01-22 20:54 fman Relationship added duplicate of 0004340
2013-01-22 20:55 fman Note Added: 0018207
2013-01-23 08:06 claesstrale Note Added: 0018208
2013-01-28 20:15 fman Status new => closed
2013-01-28 20:15 fman Assigned To => fman
2013-01-28 20:15 fman Resolution open => unable to reproduce

Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker