Test filesverification/TestModule/Test/XmlCommentedTest.xml
")
*/
class XmlCommentedTestCest
{
/**
* @param AcceptanceTester $I
* @throws \Exception
*/
public function _before(AcceptanceTester $I)
{
$I->comment("< > & \$abc \" abc ' /");
$I->amOnPage("/beforeUrl"); // stepKey: beforeAmOnPageKey
$I->comment("< > & \$abc \" abc ' /");
}
/**
* @param AcceptanceTester $I
* @throws \Exception
*/
public function _after(AcceptanceTester $I)
{
$I->comment("< > & \$abc \" abc ' /");
$I->amOnPage("/afterUrl"); // stepKey: afterAmOnPageKey
$I->comment("< > & \$abc \" abc ' /");
}
/**
* @param AcceptanceTester $I
* @throws \Exception
*/
public function _failed(AcceptanceTester $I)
{
$I->saveScreenshot(); // stepKey: saveScreenshot
}
/**
* @Severity(level = SeverityLevel::CRITICAL)
* @Features({"TestModule"})
* @Parameter(name = "AcceptanceTester", value="$I")
* @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
}
}