예제 #1
0
 if ($args->level == 'testcase') {
     // @TODO 20090815 - franciscom check what to do with platform
     if ($cfg->exec_cfg->show_last_exec_any_build) {
         // 20090716 - franciscom - get_last_execution() interface changes
         $options = array('getNoExecutions' => 1, 'groupByBuild' => 0);
         $gui->map_last_exec_any_build = $tcase_mgr->get_last_execution($tcase_id, $tcversion_id, $args->tplan_id, testcase::ANY_BUILD, $args->platform_id, $options);
         //Get UserID and Updater ID for current Version
         $tc_current = $gui->map_last_exec_any_build;
         foreach ($tc_current as $key => $value) {
             $testerid = $value['tester_id'];
             $userid_array[$testerid] = $testerid;
         }
     }
     $gui->req_details = $req_mgr->get_all_for_tcase($tcase_id);
     //Bug 2068
     $gui->other_execs = getOtherExecutions($db, $tcase_id, $tcversion_id, $gui, $args, $cfg, $tcase_mgr);
     // Get attachment,bugs, etc
     if (!is_null($gui->other_execs)) {
         //Get the Tester ID for all previous executions
         foreach ($gui->other_execs as $key => $execution) {
             foreach ($execution as $singleExecution) {
                 $testerid = $singleExecution['tester_id'];
                 $userid_array[$testerid] = $testerid;
             }
         }
         // asimon - added $g_bugInterfaceOn, $g_bugInterface
         $other_info = exec_additional_info($db, $attachmentRepository, $tcase_mgr, $gui->other_execs, $args->tplan_id, $args->tproject_id, $g_bugInterfaceOn, $g_bugInterface);
         $gui->attachments = $other_info['attachment'];
         $gui->bugs = $other_info['bugs'];
         $gui->other_exec_cfields = $other_info['cfexec_values'];
         // this piece of code is useful to avoid error on smarty template due to undefined value
예제 #2
0
 $gui->other_execs = null;
 $testerid = null;
 if ($args->level == 'testcase') {
     // @TODO 20090815 - franciscom check what to do with platform
     if ($gui->cfg->exec_cfg->show_last_exec_any_build) {
         $options = array('getNoExecutions' => 1, 'groupByBuild' => 0);
         $gui->map_last_exec_any_build = $mgr->tcase->get_last_execution($tcase_id, $tcversion_id, $args->tplan_id, testcase::ANY_BUILD, $args->platform_id, $options);
         // Get UserID and Updater ID for current Version
         $tc_current = $gui->map_last_exec_any_build;
         foreach ($tc_current as $key => $value) {
             $testerid = $value['tester_id'];
             $userid_array[$testerid] = $testerid;
         }
     }
     $gui->req_details = $mgr->req->get_all_for_tcase($tcase_id);
     $gui->other_execs = getOtherExecutions($db, $tcase_id, $tcversion_id, $gui, $args, $mgr->tcase, $smarty->tlImages);
     // Get attachment,bugs, etc
     if (!is_null($gui->other_execs)) {
         //Get the Tester ID for all previous executions
         foreach ($gui->other_execs as $key => $execution) {
             foreach ($execution as $singleExecution) {
                 $testerid = $singleExecution['tester_id'];
                 $userid_array[$testerid] = $testerid;
             }
         }
         // do not like to much this kind of layout but ...
         list($gui->attachments, $gui->bugs, $gui->other_exec_cfields) = exec_additional_info($db, $mgr, $gui->other_execs, $args->tplan_id, $args->tproject_id, $issueTrackerEnabled, $its);
         // this piece of code is useful to avoid error on smarty template due to undefined value
         if (is_array($tcversion_id) && count($gui->other_execs) != count($gui->map_last_exec)) {
             foreach ($tcversion_id as $version_id) {
                 if (!isset($gui->other_execs[$version_id])) {