ChildExtendedTestReplaceHook.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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]: ChildExtendedTestReplaceHook")
  17. * @group Child
  18. */
  19. class ChildExtendedTestReplaceHookCest
  20. {
  21. /**
  22. * @param AcceptanceTester $I
  23. * @throws \Exception
  24. */
  25. public function _before(AcceptanceTester $I)
  26. {
  27. $I->amOnPage("/slightlyDifferentBeforeUrl");
  28. }
  29. /**
  30. * @param AcceptanceTester $I
  31. * @throws \Exception
  32. */
  33. public function _after(AcceptanceTester $I)
  34. {
  35. $I->amOnPage("/afterUrl");
  36. }
  37. /**
  38. * @param AcceptanceTester $I
  39. * @throws \Exception
  40. */
  41. public function _failed(AcceptanceTester $I)
  42. {
  43. $I->saveScreenshot();
  44. }
  45. /**
  46. * @Severity(level = SeverityLevel::TRIVIAL)
  47. * @Features({"TestModule"})
  48. * @Stories({"Child"})
  49. * @Parameter(name = "AcceptanceTester", value="$I")
  50. * @param AcceptanceTester $I
  51. * @return void
  52. * @throws \Exception
  53. */
  54. public function ChildExtendedTestReplaceHook(AcceptanceTester $I)
  55. {
  56. $I->comment("Parent Comment");
  57. }
  58. }