Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008785TestLinkTest Specification - Move/Copy Test Casespublic2019-10-24 08:252019-10-28 08:46
Reportersara.martinez 
Assigned Tofman 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Fixed in Version 
Summary0008785: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function moveTestCases()
DescriptionError moving multiple Test Cases from Test Specification:

PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function moveTestCases(), 5 passed in /opt/bitnami/testlink/lib/testcases/containerEdit.php on line 255 and exactly 6 expected in /opt/bitnami/testlink/lib/testcases/containerEdit.php:1065\nStack trace:\n#0 /opt/bitnami/testlink/lib/testcases/containerEdit.php(255): moveTestCases(Object(TLSmarty), 'testcases/', Object(testsuite), Object(tree), Object(stdClass))\n#1 {main}\n thrown in /opt/bitnami/testlink/lib/testcases/containerEdit.php on line 1065
Steps To Reproduce- Enter Testlink
- Go to Test Specification
- Click on any Test Suite
- Click on Actions Button
- Click on Test Case Operations -> Move/Copy Test Cases
- Choose a Test Suite target and select Test Cases
- Click on move button
- See apache log
Additional InformationI've solved this modifying moveTestCases() function with:

function moveTestCases(&$smartyObj,$template_dir,&$tsuiteMgr,&$treeMgr,$argsObj)
{
    if(sizeof($argsObj->tcaseSet) > 0)
    {
        $status_ok = $treeMgr->change_parent($argsObj->tcaseSet,$argsObj->containerID);
        $user_feedback= $status_ok ? '' : lang_get('move_testcases_failed');
        // objectID - original container
        $guiObj = new stdClass();
        $guiObj->attachments = getAttachmentInfosFrom($tsuiteMgr,$argsObj->objectID);
        $guiObj->id = $argsObj->objectID;
        $guiObj->refreshTree = true;

        $tsuiteMgr->show($smartyObj,$guiObj,$template_dir,$argsObj->objectID,null,$user_feedback);
    }
}

TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
BrowserChrome
PHP Version7
TestCaseID
QA Team - Task Workflow Status
Attached Files

- Relationships

-  Notes
(0029268)
fman (administrator)
2019-10-25 19:37

how you can not highlight the changes?
just to make developer life a little bit simpler?
(0029269)
sara.martinez (reporter)
2019-10-28 08:46

in lib/testcases/containerEdit.php, function moveTestCases()
line 1101 -> $lbl deleted
line 1113 -> deleted

- Issue History
Date Modified Username Field Change
2019-10-24 08:25 sara.martinez New Issue
2019-10-25 19:37 fman Note Added: 0029268
2019-10-25 19:37 fman Assigned To => fman
2019-10-25 19:37 fman Status new => feedback
2019-10-28 08:46 sara.martinez Note Added: 0029269
2019-10-28 08:46 sara.martinez Status feedback => assigned



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker