Giter Club home page Giter Club logo

Comments (8)

KevinBKozan avatar KevinBKozan commented on August 11, 2024 1

@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 MFTF 2.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.

KevinBKozan avatar KevinBKozan commented on August 11, 2024

@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.

ranahemantkumar avatar ranahemantkumar commented on August 11, 2024

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.

KevinBKozan avatar KevinBKozan commented on August 11, 2024

@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.

ranahemantkumar avatar ranahemantkumar commented on August 11, 2024

@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.

ranahemantkumar avatar ranahemantkumar commented on August 11, 2024

@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.

soumyau avatar soumyau commented on August 11, 2024

Hi @ranahemantkumar Apologies for the late response. Have you tried this with the latest MFTF release 2.5.2?

from magento2-functional-testing-framework.

soumyau avatar soumyau commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.