Questions tagged [mftf]

Questions related to the Magento Functional Testing Framework. Use this tag to distinguish from other testing methods in Magento 2.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Unable to create new service: ChromeDriverService error in MFTF Test for custom Plugins

I'm getting this error message while Running MFTF test commands in terminal
0
votes
0answers
23 views

Cannot run MFTF tests: Chromium started but does nothing

I installed MFTF and selenium accoring to https://devdocs.magento.com/mftf/docs/getting-started.html I run: $ java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone-3.141.59.jar ...
0
votes
1answer
80 views

Magento2 :Unable to create new service: ChromeDriverService

I've been trying to implements functional testing in magento using mftf i followed the same steps from this documenation but i keep getting : [Facebook\WebDriver\Exception\UnknownErrorException] ...
0
votes
0answers
23 views

Selenium : Admin should be able to log into the Magento Admin backend successfully

I'm trying to run functional tests on my magento project following this tutorial i'm using selenium docker image by running this command : docker run -d -p 4444:4444 --shm-size 2g selenium/standalone-...
2
votes
1answer
27 views

What are good debugging strategies for MFTF (v2) tests which only faily sometimes?

We have a MFTF test related to coupon codes that fail in 4 of 10 cases. How can we debug this properly. We already isolated the single test case and can reproduce it locally, it still takes 50 minutes ...
0
votes
0answers
12 views

How to create entity array in mftf data?

I have this code defined on my shop-meta.xml: <?xml version="1.0" encoding="UTF-8"?> <operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
1answer
9 views

Changed value in inline edit field can not be saved in MFTF test

In a custom admin grid I try to change a value in an inline edit field and save it afterwords using a MFTF test. I use AdminCustomerGridInlineEditorSection as template and select the inline edit field ...
0
votes
0answers
57 views

MFTF Dependency Conflict After Magento 2.4 Update

After I updated to Magento 2.4 I am getting this error when I try to update any module via composer: Your requirements could not be resolved to an installable set of packages. Problem 1 - The ...
0
votes
0answers
38 views

how can I set custom attribute value for entity (for product) in MFTF test

The selected customer attribute is not saving for created by MFTF product (https://prnt.sc/tqqy8m). Let me know please.
1
vote
0answers
38 views

Magneto MFTF setup is not working/ Throwing error Could not find ActionGroup by ref “ResetAdminDataGridToDefaultViewActionGroup” in Element

I struck while setting up my MFTFframework in my local environment, your help is much appreciated. I followed steps as per below url to setup MFTF but It is throwing error when i run mftf generate:...
0
votes
0answers
16 views

MFTF - How to click the radio button?

I know how to use fillfield and click, but is there any way to click the radio button?
0
votes
0answers
59 views

MFTF is not entering the frontend url but chrome driver is launching on running the command 'mftf run:test EndToEndB2CLoggedInUserTest --remove'

I have ran the below command to run one MFTF default frontend test case: C:\xampp\htdocs\magento2app\vendor\bin>mftf run:test EndToEndB2CLoggedInUserTest --remove Data in .env file: ...
0
votes
2answers
329 views

PHP Fatal error: Uncaught Error: Class 'Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser' not found

I am using Magento 2.3.4 and MFTF 2.6.3. I have setup the MFTF by setting environment credentials in dev/test/acceptance/.env running vendor/bin/mftf build:project running vendor/bin/mftf generate:...
0
votes
0answers
49 views

MFTF codecept build command failed unexpectedly. Magento 2

When I run the vender/bin/mftf build:project I get an error 'C:\xampp\htdocs\magento23\vendor\bin\codecept' is not recognized as an internal or external command, operable program or batch file. ...
1
vote
0answers
32 views

MFTF color console output

Please advice if there is a way to output in more pretty look MFTF execution in console. With comments, indentations, colors and other stuff. When I executed magento tests sometimes this magic ...
6
votes
0answers
303 views

Running a single MFTF test that is included within a suite

I am trying to only run the test StorefrontVerifySecureURLRedirectCheckout. To run it I am using the following command: vendor/bin/mftf run:test StorefrontVerifySecureURLRedirectCheckout -k (I have to ...
0
votes
1answer
76 views

How to find core test names to generate specific tests

I am trying to run MFTF tests only for Checkout. In the DevDocs there are various examples how to generate and run specific tests(MFTF - Getting started - Step 4 - Run a simple test, Generate tests ...
0
votes
1answer
165 views

Magento 2 mftf Could not parse any test in xml

I have followed the steps written in the devdocs for MFTF tetsing, but when i come to the step where i have to run- vendor/bin/mftf generate:tests This error shows up- Could not parse any test ...
1
vote
2answers
705 views

Error More than one node matching the query when running custom MFTF Test

When running my custom mftf test, I get the error More than one node matching the query: /entities/entity/requiredEntity[@type='custom_attribute_array'].Exception occurred parsing action at StepKey "...
0
votes
0answers
135 views

Can not run vendor/bin/mftf generate:tests on Command line in Magento 2.3

When I run this command line vendor/bin/mftf generate:tests in Magento root it shows me an error : in ModuleReSovlver.php line 444: Could not retrieve API from Magento instance <403 Forbidden> ...
3
votes
0answers
66 views

How can run MFTF in parallel?

Is it possibe to run MFTF in parallel? If yes, could you guide me or show me documens related that? Thanks All
2
votes
1answer
70 views

How do I access a child entity field for reference in an MFTF Test

I need assistance trying to access a field of a required entity inside a parent entity created for a test Example I am trying to create a configurable product <createData entity="...
0
votes
1answer
708 views

PHP Fatal error: Class Mock_LoggerInterface contains 8 abstract >methods and must therefore be declared abstract or implement the remaining

Preconditions (*) Magento 2.3.1 upgraded from Magento 2.3.0 Php 7.2.15 OS : Ubuntu 18.04 Bionic Phpstorm 2019.1.1 Evnironemnt : Magento development PHPUnit 6.5.0 magento/magento2-functional-testing-...
3
votes
1answer
1k views

Error: Class “Yandex\Allure\Adapter\AllureAdapter” does not exist

Preconditions (*) Magento 2.3.1 upgraded from Magento 2.3.0 Php 7.2.15 OS : Ubuntu 18.04 Bionic Phpstorm 2019.1.1 Evnironemnt : Magento development Steps to reproduce (*) Issue appears after ...
1
vote
1answer
192 views

Magento 2.3.1 MFTF command error Permissin denied

I am working on the MFTF concept in Magento 2.3 community version. I am trying to run commands like vendor/bin/mftf --version and vendor/bin/mftf build:project, but getting error every time as: -"...
5
votes
3answers
1k views

MFTF stand alone - Could not retrieve API token from Magento Instance (302 Found) error

I installed MFTF stand alone and have a magento instance. Just following the getting started document before I write tests of my own. When generated/run the test it gives error - Could not retrieve ...
2
votes
0answers
41 views

Getting undefined index sampleData when trying to use generate:tests command in MFTF

I am working to use MFTF, it went well upto build:project and changes in .env file but when trying to generate tests I am getting ERROR Undefined index: SampleData in C:\xampp2\htdocs\magento2\dev\...