public function getVisualProgress($end = null)
 {
     // TODO: move implementation to this method
     if (!$this->fileHandler->dirExists($this->localPaths->videoDir())) {
         return array();
     }
     return GetVisualProgressForStep($this->localPaths, $this->testInfo->isRunComplete($this->run), null, $end, $this->getStartOffset());
 }
Beispiel #2
0
 /**
  * Constructs a TestResults object by loading the information from result files
  * @param TestInfo $testInfo Test information used to load the data
  * @param FileHandler $fileHandler FileHandler to use
  * @param array $options Options to load the TestRunResults
  * @return TestResults The new instance
  */
 public static function fromFiles($testInfo, $fileHandler = null, $options = null)
 {
     $runResults = array();
     $numRuns = $testInfo->getRuns();
     $firstViewOnly = $testInfo->isFirstViewOnly();
     $testComplete = $testInfo->isComplete();
     for ($runNumber = 1; $runNumber <= $numRuns; $runNumber++) {
         if (!$testComplete && !$testInfo->isRunComplete($runNumber)) {
             continue;
         }
         $firstView = TestRunResults::fromFiles($testInfo, $runNumber, false, $fileHandler, $options);
         $repeatView = $firstViewOnly ? null : TestRunResults::fromFiles($testInfo, $runNumber, true, $fileHandler, $options);
         $runResults[] = array($firstView, $repeatView);
     }
     return new self($testInfo, $runResults, $fileHandler);
 }