ChildExtendedTestMerging.txt 1.7 KB

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