Test filesverification/TestModule/Test/ExtendedFunctionalTest/ParentExtendedTest.xml
") */ class ParentExtendedTestCest { /** * @var bool */ private $isSuccess = false; /** * @param AcceptanceTester $I * @throws \Exception */ public function _before(AcceptanceTester $I) { $I->comment('[START BEFORE HOOK]'); $I->amOnPage("/beforeUrl"); // stepKey: beforeAmOnPageKey $I->comment('[END BEFORE HOOK]'); } /** * @param AcceptanceTester $I * @throws \Exception */ public function _after(AcceptanceTester $I) { $I->comment('[START AFTER HOOK]'); $I->amOnPage("/afterUrl"); // stepKey: afterAmOnPageKey $I->comment('[END AFTER HOOK]'); if ($this->isSuccess) { unlink(__FILE__); } } /** * @param AcceptanceTester $I * @throws \Exception */ public function _failed(AcceptanceTester $I) { $I->saveScreenshot(); // stepKey: saveScreenshot } /** * @Severity(level = SeverityLevel::MINOR) * @Features({"TestModule"}) * @Stories({"Parent"}) * @param AcceptanceTester $I * @return void * @throws \Exception */ public function ParentExtendedTest(AcceptanceTester $I) { $I->comment("Parent Comment"); } public function _passed(AcceptanceTester $I) { // Test passed successfully. $this->isSuccess = true; } }