ChildExtendedTestRemoveHookAction.txt 1.5 KB

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