Exemplo n.º 1
0
 /**
  * Run scenario and optionally write results to report file
  *
  * @param Magento_Performance_Scenario $scenario
  * @param string|null $reportFile Report file to write results to, NULL disables report creation
  * @throws Magento_Exception
  */
 public function run(Magento_Performance_Scenario $scenario, $reportFile = null)
 {
     $scenarioExtension = pathinfo($scenario->getFile(), PATHINFO_EXTENSION);
     /** @var $scenarioHandler Magento_Performance_Scenario_HandlerInterface */
     $scenarioHandler = $this->getHandler($scenarioExtension);
     if (!$scenarioHandler) {
         throw new Magento_Exception("Unable to run scenario '{$scenario->getTitle()}', format is not supported.");
     }
     $scenarioHandler->run($scenario, $reportFile);
 }
Exemplo n.º 2
0
 public function testGetTitle()
 {
     $this->assertEquals('Test title', $this->_object->getTitle());
 }