SkippedTestWithHooks.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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]: skippedTestWithHooks")
  17. * @Description("")
  18. */
  19. class SkippedTestWithHooksCest
  20. {
  21. /**
  22. * @Stories({"skippedWithHooks"})
  23. * @Severity(level = SeverityLevel::MINOR)
  24. * @Features({"TestModule"})
  25. * @Parameter(name = "AcceptanceTester", value="$I")
  26. * @param AcceptanceTester $I
  27. * @return void
  28. * @throws \Exception
  29. */
  30. public function SkippedTestWithHooks(AcceptanceTester $I, \Codeception\Scenario $scenario)
  31. {
  32. $scenario->skip("This test is skipped due to the following issues:\nSkippedValue");
  33. }
  34. }