Esempio n. 1
0
     }
     $tplans = $platform_mgr->getDeviceTplan($device['id'], $all);
     $a = count($tplans[0]);
     echo "<p align='center'>搜索到<span style='color:red'>{$a}</span>个测试计划<b>{$tplans['all']}</b></p>";
     $tindex = 1;
     foreach ($tplans[0] as $nn => $tplan) {
         echo "<p align='center'><b>step3.{$tindex}.</b>更新测试计划<span style='color:red'>{$tplan['name']}</span>的测试例...</p>";
         if ($needdelete[$device['id'] . '-' . $tplan['id']] == null) {
             echo "<p align='center'><span style='color:red'>测试计划{$tplan['name']}</span>中需要<span style='color:red'>添加</span>的测试例维护完毕!没有需删除的测试例。</p>";
         } else {
             $total = count($needdelete[$device['id'] . '-' . $tplan['id']]);
             echo "<p align='center'><span style='color:red'>测试计划{$tplan['name']}</span>中需要<span style='color:red'>添加</span>的测试例维护完毕!请确认如下{$total}个测试例可被删除:</p>";
             $temp = " <p align='center'><table cellpadding='2' cellspacing='0' align='center' border='2' bordercolor='#000000'><tr>";
             $tcvindex = 1;
             foreach ($needdelete[$device['id'] . '-' . $tplan['id']] as $tcvid) {
                 $casename = $platform_mgr->getCaseNamebyTCVid($tcvid);
                 if ($tcvindex % 5 == 0) {
                     $temp .= " </tr><tr><td align='center'>{$casename}</td> ";
                 } else {
                     $temp .= " <td align='center'>{$casename}</td>";
                 }
                 $tcvindex++;
             }
             $temp .= " </tr></table></p> ";
             echo $temp;
         }
         $tindex++;
     }
     $dindex++;
     echo "<br>";
 }