Thinking

Results 2 issues of Thinking

dear friend, can u write one detail document pls?@bewestphal

//CaseModel **$ret = $this->runCmd($caseId, $planId);** //当这个runCmd长时间运行结束后,当执行到setOver中的$ret = $this->save($data)时,无反应,一直卡着不动,能帮忙分析一下原因吗? $data['log'] = implode("\r",$ret['msg']); $data['id'] = $reportId; D('Report')->setOver($data); //ReportModel public function setOver($data){ //将执行该条case时的log保存下来 $this->saveJmeterLog($data['id']); file_put_contents('log.txt',"this:".var_export($this,true).PHP_EOL,FILE_APPEND); file_put_contents('log.txt',"开始查询detail表:".var_export(time(),true).PHP_EOL,FILE_APPEND); $details = D("Detail")->getDetail(array('reportId'=>$data['id'])); file_put_contents('log.txt',"结束查询detail表:".var_export(time(),true).PHP_EOL,FILE_APPEND); file_put_contents('log.txt',"开始遍历details:".var_export(time(),true).PHP_EOL,FILE_APPEND); $data['result'] =...