1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace Magento\AcceptanceTest\_default\Backend;
- use Magento\FunctionalTestingFramework\AcceptanceTester;
- use Magento\FunctionalTestingFramework\DataGenerator\Handlers\CredentialStore;
- use Magento\FunctionalTestingFramework\DataGenerator\Handlers\PersistedObjectHandler;
- use \Codeception\Util\Locator;
- use Yandex\Allure\Adapter\Annotation\Features;
- use Yandex\Allure\Adapter\Annotation\Stories;
- use Yandex\Allure\Adapter\Annotation\Title;
- use Yandex\Allure\Adapter\Annotation\Description;
- use Yandex\Allure\Adapter\Annotation\Parameter;
- use Yandex\Allure\Adapter\Annotation\Severity;
- use Yandex\Allure\Adapter\Model\SeverityLevel;
- use Yandex\Allure\Adapter\Annotation\TestCaseId;
- /**
- */
- class PageReplacementTestCest
- {
- /**
- * @Features({"TestModule"})
- * @Parameter(name = "AcceptanceTester", value="$I")
- * @param AcceptanceTester $I
- * @return void
- * @throws \Exception
- */
- public function PageReplacementTest(AcceptanceTester $I)
- {
- $I->amGoingTo("create entity that has the stepKey: datakey");
- PersistedObjectHandler::getInstance()->createEntity(
- "datakey",
- "test",
- "simpleData",
- [],
- null
- );
- $I->amOnPage("/page.html");
- $I->amOnPage("/StringLiteral/page.html");
- $I->amOnPage("/John/page.html");
- $I->amOnPage("/" . PersistedObjectHandler::getInstance()->retrieveEntityField('datakey', 'firstname', 'test') . "/page.html");
- $I->amOnPage("/StringLiteral1/StringLiteral2.html");
- $I->amOnPage("/John/StringLiteral2.html");
- $I->amOnPage("/John/" . PersistedObjectHandler::getInstance()->retrieveEntityField('datakey', 'firstname', 'test') . ".html");
- $I->amOnPage("/" . PersistedObjectHandler::getInstance()->retrieveEntityField('datakey', 'firstname', 'test') . "/StringLiteral2.html");
- $I->amOnPage("/" . getenv("MAGENTO_BACKEND_NAME") . "/backend");
- $I->amOnPage("/" . getenv("MAGENTO_BACKEND_NAME") . "/StringLiteral/page.html");
- $I->amOnUrl("http://myFullUrl.com/");
- }
- }
|