Пример #1
0
 /**
  * Run scenario and optionally write results to report file
  *
  * @param \Magento\TestFramework\Performance\Scenario $scenario
  * @param string|null $reportFile Report file to write results to, NULL disables report creation
  * @throws \Magento\Framework\Exception
  */
 public function run(\Magento\TestFramework\Performance\Scenario $scenario, $reportFile = null)
 {
     $scenarioExtension = pathinfo($scenario->getFile(), PATHINFO_EXTENSION);
     /** @var $scenarioHandler \Magento\TestFramework\Performance\Scenario\HandlerInterface */
     $scenarioHandler = $this->getHandler($scenarioExtension);
     if (!$scenarioHandler) {
         throw new \Magento\Framework\Exception("Unable to run scenario '{$scenario->getTitle()}', format is not supported.");
     }
     $scenarioHandler->run($scenario, $reportFile);
 }
Пример #2
0
 public function testGetTitle()
 {
     $this->assertEquals('Test title', $this->_object->getTitle());
 }