|
| 1 | +<?php |
| 2 | +namespace Magento\AcceptanceTest\_default\Backend; |
| 3 | + |
| 4 | +use Magento\FunctionalTestingFramework\AcceptanceTester; |
| 5 | +use Magento\FunctionalTestingFramework\DataGenerator\Handlers\DataObjectHandler; |
| 6 | +use Magento\FunctionalTestingFramework\DataGenerator\Persist\DataPersistenceHandler; |
| 7 | +use Magento\FunctionalTestingFramework\DataGenerator\Objects\EntityDataObject; |
| 8 | +use Magento\FunctionalTestingFramework\DataGenerator\Handlers\CredentialStore; |
| 9 | +use \Codeception\Util\Locator; |
| 10 | +use Yandex\Allure\Adapter\Annotation\Features; |
| 11 | +use Yandex\Allure\Adapter\Annotation\Stories; |
| 12 | +use Yandex\Allure\Adapter\Annotation\Title; |
| 13 | +use Yandex\Allure\Adapter\Annotation\Description; |
| 14 | +use Yandex\Allure\Adapter\Annotation\Parameter; |
| 15 | +use Yandex\Allure\Adapter\Annotation\Severity; |
| 16 | +use Yandex\Allure\Adapter\Model\SeverityLevel; |
| 17 | +use Yandex\Allure\Adapter\Annotation\TestCaseId; |
| 18 | + |
| 19 | +/** |
| 20 | + * @Title("ChildExtendedTestSkippedParent") |
| 21 | + * @group Child |
| 22 | + */ |
| 23 | +class ExtendingSkippedTestCest |
| 24 | +{ |
| 25 | + /** |
| 26 | + * @param AcceptanceTester $I |
| 27 | + * @throws \Exception |
| 28 | + */ |
| 29 | + public function _before(AcceptanceTester $I) |
| 30 | + { |
| 31 | + $I->amOnPage("/beforeUrl"); |
| 32 | + } |
| 33 | + |
| 34 | + /** |
| 35 | + * @param AcceptanceTester $I |
| 36 | + * @throws \Exception |
| 37 | + */ |
| 38 | + public function _after(AcceptanceTester $I) |
| 39 | + { |
| 40 | + $I->amOnPage("/afterUrl"); |
| 41 | + } |
| 42 | + |
| 43 | + /** |
| 44 | + * @param AcceptanceTester $I |
| 45 | + * @throws \Exception |
| 46 | + */ |
| 47 | + public function _failed(AcceptanceTester $I) |
| 48 | + { |
| 49 | + $I->saveScreenshot(); |
| 50 | + } |
| 51 | + |
| 52 | + /** |
| 53 | + * @Severity(level = SeverityLevel::CRITICAL) |
| 54 | + * @Features({"TestModule"}) |
| 55 | + * @Stories({"Child"}) |
| 56 | + * @Parameter(name = "AcceptanceTester", value="$I") |
| 57 | + * @param AcceptanceTester $I |
| 58 | + * @return void |
| 59 | + * @throws \Exception |
| 60 | + */ |
| 61 | + public function ExtendingSkippedTest(AcceptanceTester $I) |
| 62 | + { |
| 63 | + $I->comment("text"); |
| 64 | + $I->comment("child"); |
| 65 | + } |
| 66 | +} |
0 commit comments