Comments (8)
@ranahemantkumar I believe I know the cause then. MFTF 2.2.0
did not include full support for parsing any tests under vendor
, and it's not being able to find that file.
I would reccomend either:
- Using Magento
2.2.7
instead, which uses MFTF2.3.x
as a root dependency - Set up MFTF as standalone and use latest MFTF version for parsing tests.
I'm confident that either option would solve your issue, let me know if the problem persists.
from magento2-functional-testing-framework.
@ranahemantkumar, I think the actual error that is being thrown here is not related to the Undefined index
Notice (notices are by definition only a notice, not a runtime error). I pulled tags/2.2.6
from Magento2CE and did not get that notice or error though, strangely.
I do see in your error message though that there is:
[error] Could not resolve entity reference {{StorefrontCustomerOrderSection.isMyOrdersSection}} in Test "StorefrontRedirectToOrderHistory"
That looks like the real culprit.
Is the following file in your 2.2.6
installation magento2ce/app/code/Magento/Customer/Test/Mftf/Section/StorefrontCustomerOrderSection.xml
?
from magento2-functional-testing-framework.
Hey @KevinBKozan
Thanks for looking into it.
Yup its first a notice but same thing is shown in errors right below it.
I don't have Magento folder inside my app/code or do you mean any other location.
Also want to add I have tested it with 3 magento2.6 installations (two of them being vanilla magento)
from magento2-functional-testing-framework.
@ranahemantkumar Apologies, yes a composer installation would have it living somewhere under vendor/magento
. If you can search for the file StorefrontCustomerOrderSection.xml
in vendor
it may help in finding the issue.
The reason I'm asking about that file is because StorefrontCustomerOrderSection
lives there, which is where the error is coming from. If that file is nowhere in vendor that will probably be the source of errors.
I will try composer installing 2.2.6
and 2.2.7
to see if I can reproduce these errors.
Edit: To double check, do you have magento installed via composer or git?
from magento2-functional-testing-framework.
@KevinBKozan
File is there under vendor/magento/module-customer/Test/Mftf/Section StorefrontCustomerOrderSection.xml , below is content of file:
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="StorefrontCustomerOrderSection">
<element name="isMyOrdersSection" type="text" selector="//*[@class='page-title']//*[contains(text(), 'My Orders')]"/>
<element name="productCustomOptions" type="text" selector="//strong[contains(@class, 'product-item-name') and normalize-space(.)='{{var1}}']/following-sibling::*[contains(@class, 'item-options')]/dt[normalize-space(.)='{{var2}}']/following-sibling::dd[normalize-space(.)='{{var3}}']" parameterized="true"/>
<element name="productCustomOptionsFile" type="text" selector="//strong[contains(@class, 'product-item-name') and normalize-space(.)='{{var1}}']/following-sibling::*[contains(@class, 'item-options')]/dt[normalize-space(.)='{{var2}}']/following-sibling::dd[contains(.,'{{var3}}')]" parameterized="true"/>
</section>
</sections>
from magento2-functional-testing-framework.
@KevinBKozan
I ll try above recommendations and let you know outcome anyways.
Again, Thanks for looking into it. I have been struggling through this from last couple of days.
from magento2-functional-testing-framework.
Hi @ranahemantkumar Apologies for the late response. Have you tried this with the latest MFTF release 2.5.2?
from magento2-functional-testing-framework.
Closing this issue due to no response. Please feel free to open this ticket if the issue persists with latest MFTF.
from magento2-functional-testing-framework.
Related Issues (20)
- Can't install MFTF framework HOT 4
- Load URL with Basic Http Authentication in MFTF HOT 2
- Entity with a CreateDataKey of createSimpleProduct could not be found HOT 1
- Invalid argument supplied for foreach() at ../src/Magento/FunctionalTestingFramework/Extension/BrowserLogUtil HOT 1
- CLI command execution in MFTF throws error HOT 2
- How to add chrome browser desired capabilities for testing ? HOT 1
- Errors via allure dependency HOT 3
- upgrade:tests references nonexistent class HOT 2
- Entity with a CreateDataKey of createCustomer could not be found HOT 2
- Serialization of 'Closure' is not allowed HOT 1
- update symfony/http-foundation HOT 1
- run:test with --remove not creating testManifest.txt file HOT 3
- Filesystem::remove() argument #1 must be string, SplFileInfo given HOT 8
- v4.3.4 - Empty exception messages thrown after test failure HOT 2
- v4.3.4 - Action waitForElementClickable ignores the "time" argument HOT 1
- Upgrading Magento 2 functional testing framework above 4.2.1 breaks test because of Namespace Changes in allure-framework HOT 2
- cannot use strings with comma sign in locatorFunction as it is wrapped with " which breaks Php HOT 1
- Console command build:project starts subprocess with system-default PHP instead of the runtime PHP HOT 1
- symfony/console dependency mismatch in MFTF v4.7.2 Standalone and Magento v.2.4.7 HOT 1
- Helpers Autoload Issue - Class `Group\AppConfigDumpSuite` is not defined. Autoload it or include into '_bootstrap.php' file of 'tests' directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-functional-testing-framework.