Test filesverification/TestModule/Test/XmlCommentedTest.xml
") */ class XmlCommentedTestCest { /** * @var bool */ private $isSuccess = false; /** * @param AcceptanceTester $I * @throws \Exception */ public function _before(AcceptanceTester $I) { $I->comment('[START BEFORE HOOK]'); $I->comment("< > & \$abc \" abc ' /"); $I->amOnPage("/beforeUrl"); // stepKey: beforeAmOnPageKey $I->comment("< > & \$abc \" abc ' /"); $I->comment('[END BEFORE HOOK]'); } /** * @param AcceptanceTester $I * @throws \Exception */ public function _after(AcceptanceTester $I) { $I->comment('[START AFTER HOOK]'); $I->comment("< > & \$abc \" abc ' /"); $I->amOnPage("/afterUrl"); // stepKey: afterAmOnPageKey $I->comment("< > & \$abc \" abc ' /"); $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::CRITICAL) * @Features({"TestModule"}) * @param AcceptanceTester $I * @return void * @throws \Exception */ public function XmlCommentedTest(AcceptanceTester $I) { $I->comment("< > & \$abc \" abc ' /"); $someVarDefinition = $I->grabValueFrom(); // stepKey: someVarDefinition $I->acceptPopup(); // stepKey: acceptPopupKey1 $I->comment("< > & \$abc \" abc ' /"); $I->amOnPage("/test/url"); // stepKey: amOnPageKey1 $I->appendField(".functionalTestSelector"); // stepKey: appendFieldKey1 $I->comment("< > & \$abc \" abc ' /"); $I->attachFile(".functionalTestSelector", "testFileAttachment"); // stepKey: attachFileKey1 $I->comment(""); $I->checkOption(".functionalTestSelector"); // stepKey: checkOptionKey1 } public function _passed(AcceptanceTester $I) { // Test passed successfully. $this->isSuccess = true; } }