ActionGroupUsingCreateData.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. */
  17. class ActionGroupUsingCreateDataCest
  18. {
  19. /**
  20. * @param AcceptanceTester $I
  21. * @throws \Exception
  22. */
  23. public function _before(AcceptanceTester $I)
  24. {
  25. $I->amGoingTo("create entity that has the stepKey: createCategoryKey1");
  26. PersistedObjectHandler::getInstance()->createEntity(
  27. "createCategoryKey1",
  28. "hook",
  29. "ApiCategory",
  30. [],
  31. null
  32. );
  33. $I->amGoingTo("create entity that has the stepKey: createConfigProductKey1");
  34. PersistedObjectHandler::getInstance()->createEntity(
  35. "createConfigProductKey1",
  36. "hook",
  37. "ApiConfigurableProduct",
  38. ["createCategoryKey1"],
  39. null
  40. );
  41. }
  42. /**
  43. * @Features({"TestModule"})
  44. * @Parameter(name = "AcceptanceTester", value="$I")
  45. * @param AcceptanceTester $I
  46. * @return void
  47. * @throws \Exception
  48. */
  49. public function ActionGroupUsingCreateData(AcceptanceTester $I)
  50. {
  51. }
  52. }