magento / magento/magento2-functional-testing-framework

Entity with a CreateDataKey of createSimpleProduct could not be found

Open
#892 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
154
Forks
134
PR merge metrics
No merged PRs in 30d

Description

### Preconditions

1. Used below code in the script











### Steps to reproduce

1. craeted sample catgory and product with the following code












2.generated test
4. runned the mftf script

### Expected result

1. execute without any error

### Actual result

Test tests/functional/Magento/_generated/NestleSmokeTestSuite/ReviewLoggedInUserTestCest.php:ReviewLoggedInUserTest

[Magento\FunctionalTestingFramework\Exceptions\TestReferenceException] Entity with a CreateDataKey of createSimpleProduct could not be found

Scenario Steps:

5. $I->deleteEntity("createSimpleProduct","hook") at tests/functional/Magento/_generated/NestleSmokeTestSuite/ReviewLoggedInUserTestCest.php:42
4. $I->deleteEntity("createCategory","hook") at tests/functional/Magento/_generated/NestleSmokeTestSuite/ReviewLoggedInUserTestCest.php:41
3. $I->saveScreenshot() at tests/functional/Magento/_generated/NestleSmokeTestSuite/ReviewLoggedInUserTestCest.php:52
2. $I->createEntity("createSimp...","hook","SimpleProduct",["createCat...],[]) at tests/functional/Magento/_generated/NestleSmokeTestSuite/ReviewLoggedInUserTestCest.php:31
1. $I->createEntity("createCategory","hook","_defaultCategory",[],[]) at tests/functional/Magento/_generated/NestleSmokeTestSuite/ReviewLoggedInUserTestCest.php:30

#1 /home/manjulakalyan/www/magento2/src/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/PersistedObjectHandler.php:228
#2 /home/manjulakalyan/www/magento2/src/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/Handlers/PersistedObjectHandler.php:145
#3 /home/manjulakalyan/www/magento2/src/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Module/MagentoActionProxies.php:103
#4 Magento\FunctionalTestingFramework\Module\MagentoActionProxies->deleteEntity
#5 /home/manjulakalyan/www/magento2/src/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/_generated/AcceptanceTesterActions.php:3578
#6 /home/manjulakalyan/www/magento2/src/dev/tests/acceptance/tests/functional/Magento/_generated/NestleSmokeTestSuite/ReviewLoggedInUserTestCest.php:42
#7 Magento\AcceptanceTest\_NestleSmokeTestSuite\Backend\ReviewLoggedInUserTestCest->_after

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with PersistedObjectHandler.php at the reported stack frames and compare the generated create/delete sequence in tests/functional/Magento/_generated/NestleSmokeTestSuite/ReviewLoggedInUserTestCest.php. Run the MFTF script using the provided createData and deleteData definitions. Done means the generated test executes without the missing createSimpleProduct entity error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.