You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Selenium driver 3.141.59 with chromium 98.0.4758.9
Steps to reproduce
I have a test which looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<testsxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<testname="StorefrontGuestCheckoutHandballTest">
<annotations>
<featuresvalue="Checkout"/>
<storiesvalue="Checkout via Guest Checkout"/>
<titlevalue="Guest Checkout - guest should be able to place an order"/>
<descriptionvalue="Should be able to place an order as a Guest"/>
<severityvalue="CRITICAL"/>
<testCaseIdvalue="internal-66062"/>
<groupvalue="checkout"/>
</annotations>
<amOnPageurl="{{HandballFuturaProduct.url}}"stepKey="onProductPage"/>
<waitForPageLoadstepKey="waitForPageLoad1"/>
<clickselector="button[form=product_addtocart_form]"stepKey="addToCart"/>
<waitForElementVisibleselector="{{StorefrontCategoryMainSection.SuccessMsg}}"time="30"stepKey="waitForProductAdded"/>
<seeselector="{{StorefrontCategoryMainSection.SuccessMsg}}"userInput="Sie haben {{HandballFuturaProduct.name}} zu ihrem Warenkorb hinzugefügt."stepKey="seeAddedToCartMessage"/>
<seeselector="{{StorefrontProductDetailSection.quantity}}"userInput="1"stepKey="seeCartQuantity"/>
</test>
</tests>
The test is placed in dev/tests/acceptance/tests/functional/Magento/FunctionalTest/CompanyGeneral/Test/StorefrontGuestCheckoutHandballTest.xml.
The testsuite is saved in dev/tests/acceptance/tests/_suite/CompanyCheckoutSuite.xml.
I have MODULE_ALLOWLIST=Magento_Framework,CompanyGeneral set in my .env.
Trying to generate the suite does not work:
$ vendor/bin/mftf generate:suite Company_Checkout --remove
NOTICE: 287 Section name violations detected. See mftf.log for details.[]
NOTICE: 741 section element name violations detected. See mftf.log for details.[]
NOTICE: 372 data entity name violations detected. See mftf.log for details.[]
NOTICE: 11 data entity key violations detected. See mftf.log for details.[]
NOTICE: 441 action group name violations detected. See mftf.log for details.[]
NOTICE: 45 Page name violations detected. See mftf.log for details.[]
ERROR: 1 Suite(s) has(have) tests with annotation errors or some included tests missing. See mftf.log for details.
ERROR: 17 Test(s) failed to generate. See mftf.log for details.
Suites Generated (with errors)
There's so many log entries I don't know what to do about this. Pretty much all of them seem unrelated to my test suite or the test I created. Here is the full log
Trying to run the suite runs a million other tests, but not the one test specified in the suite:
$ vendor/bin/mftf run:group Company_Checkout --remove
ERROR: 1 Suite(s) has(have) tests with annotation errors or some included tests missing. See mftf.log for details.
ERROR: 17 Test(s) failed to generate. See mftf.log for details.
Generate Tests Command Run (with errors)
Codeception PHP Testing Framework v4.1.28
Powered by PHPUnit 9.1.5 by Sebastian Bergmann and contributors.
[Groups] Kuebler_Checkout
Magento\FunctionalTestingFramework.functional Tests (3567) ---------------------
Modules: \Magento\FunctionalTestingFramework\Module\MagentoWebDriver, \Magento\FunctionalTestingFramework\Module\MagentoSequence, \Magento\FunctionalTestingFramework\Module\MagentoAssert, \Magento\FunctionalTestingFramework\Module\MagentoActionProxies, Asserts, \Magento\FunctionalTestingFramework\Helper\HelperContainer
--------------------------------------------------------------------------------
.... more test runs omitted....
The logs only tell me it worked:
[2022-01-28 15:43:23] Magento\FunctionalTestingFramework\Suite\SuiteGenerator.INFO: suite generated {"suite":"Company_Checkout","relative_path":"_generated/Company_Checkout"} []
Trying to run only the test (without the suite) doesn't work either:
$ vendor/bin/mftf run:test StorefrontGuestCheckoutHandballTest --remove
ERROR: 1 Suite(s) has(have) tests with annotation errors or some included tests missing. See mftf.log for details.
ERROR: 1 Test(s) failed to generate. See mftf.log for details.
Generate Tests Command Run (with errors)
In RunTestCommand.php line 152:
StorefrontGuestCheckoutHandballTestCest.php is not available under /home/konrad/projects/company.de/dev/tests/acceptance/tests/functional/Magento/FunctionalTest/_generated/default/
run:test [-k|--skip-generate] [-r|--remove] [-f|--force] [-a|--allow-skipped] [-d|--debug [DEBUG]] [--] <name>...
This time though, the logs say
[2022-01-28 15:46:58] Magento\FunctionalTestingFramework\Test\Handlers\TestObjectHandler.ERROR: Line 289: Test StorefrontGuestCheckoutHandballTest not defined in xml. [] []
[2022-01-28 15:46:58] Magento\FunctionalTestingFramework\Suite\Util\SuiteObjectExtractor.ERROR: Unable to find <test> reference StorefrontGuestCheckoutHandballTest for suite StorefrontGuestCheckoutHandballTest [] []
but the test does exist, the mftf just doesn't find it??
Honestly, at this point I'm pretty frustrated. I've tried for a few hours to get this to work, tried a few different configurations and nothing worked.
Expected result
Tests run or at least tell me what's wrong.
Actual result
Tests don't run.
The text was updated successfully, but these errors were encountered:
Preconditions
Steps to reproduce
I have a test which looks like this:
The test is placed in
dev/tests/acceptance/tests/functional/Magento/FunctionalTest/CompanyGeneral/Test/StorefrontGuestCheckoutHandballTest.xml
.And a test suite which contains it:
The testsuite is saved in
dev/tests/acceptance/tests/_suite/CompanyCheckoutSuite.xml
.I have
MODULE_ALLOWLIST=Magento_Framework,CompanyGeneral
set in my.env
.Trying to generate the suite does not work:
There's so many log entries I don't know what to do about this. Pretty much all of them seem unrelated to my test suite or the test I created.
Here is the full log
Trying to run the suite runs a million other tests, but not the one test specified in the suite:
The logs only tell me it worked:
Full logs here.
Trying to run only the test (without the suite) doesn't work either:
This time though, the logs say
but the test does exist, the mftf just doesn't find it??
Full log.
Honestly, at this point I'm pretty frustrated. I've tried for a few hours to get this to work, tried a few different configurations and nothing worked.
Expected result
Tests run or at least tell me what's wrong.
Actual result
Tests don't run.
The text was updated successfully, but these errors were encountered: