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