/** * 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); }
public function testGetTitle() { $this->assertEquals('Test title', $this->_object->getTitle()); }