Questions tagged [testing]

All questions related to testing Magento: manual testing, automated testing, unit tests, integration tests, functional tests, static analysis, load test, ...

Filter by
Sorted by
Tagged with
1 vote
0 answers
24 views

Magento 2 - How To Generate Custom Data Fixture For Integration Testing

I'm required to generate 1000+ orders to test an integration + address verification. I've come across this data generation technique in my search and wish to create my own data fixture based off: ...
user avatar
0 votes
0 answers
51 views

Install MFTF Automation testing in Magento Version 2.4

I am trying to install MFTF automation testing in Magento's latest version 2.4. I am following the Magento basic documentation. In the Magento root directory, I run the command vendor/bin/mftf build: ...
user avatar
2 votes
0 answers
28 views

GitHub Test Instances - CLI access

On the Magento GitHub Repository it is possible to spin up instances for verifiying bugs / testing pull requests. This is done by pinging the magento bot @magento give me test instance Is is ...
user avatar
  • 14.7k
0 votes
0 answers
13 views

Test function with multiple data fixtures?

I want to test the correct functionality of a function with data fixtures, in my case products with different settings. The test is working with @magentoDataFixture ... but i can use this only for one ...
user avatar
  • 1
2 votes
1 answer
157 views

Plugin not executed in test

I have a plugin that plugs into the execute method of \Magento\Checkout\Controller\Cart\Index and redirects under some condition. di.xml: <?xml version="1.0" ?> <config xmlns:xsi=&...
user avatar
  • 288
0 votes
0 answers
50 views

MFTF Testing for custom module in magento 2.4.3

How to Test custom module using "MFTF" in Magento2.4.3 Recently I uploaded a custom module in the marketplace and the module reject-with these error:- I don't know how to resolve these ...
user avatar
  • 5,596
1 vote
1 answer
43 views

MFTF Custom Helper get stepKey variable value

I'm trying to write a Custom Helper, according to https://devdocs.magento.com/mftf/docs/custom-helpers.html To perform Tax Calculations and return a Fee. According to documentation you can return a ...
user avatar
0 votes
2 answers
59 views

Magento 2 AB testing category page

I'm looking to create variants of the same category page to perform AB testing? For example, If I have a category page called /bags, we need to create one more version of the same category page called ...
user avatar
  • 9,509
0 votes
0 answers
24 views

Configure MFTF in Magento 2

I have gone thruogh the Magnto doc for MFTF but not getting proper setup.Can any one help me on this.
user avatar
  • 1,199
0 votes
1 answer
169 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-...
user avatar
0 votes
2 answers
468 views

Magento 2 : Installation & Varnish Test Results Failed => Class Does not exist Magento Marketplace

We have created the custom module and uploaded to Magento Marketplace and Installation & Varnish Test has been failed due to class does not exist. If the class not exists, How the Code Sniffer ...
user avatar
  • 3,896
2 votes
0 answers
29 views

What are the best method's to check/test patches on site?

I have applied changes for following patches SUPEE-10975 SUPEE-11086 SUPEE-11155 SUPEE-11219 SUPEE-11295 SUPEE-11314 For magento 1 website. Please let me know what are the best method's to check/test ...
user avatar
  • 21
0 votes
2 answers
39 views

Magento 2 stage

We have a multiple sites on our system but as far as i have been told in stage you can only have 1 store view at a time. We used to have a developer helping us and he was changing something somewhere ...
user avatar
0 votes
1 answer
93 views

Integration tests - error when connecting to the database

I'm having trouble running the magento2 integration tests. I followed the documentation and set up the database parameters in install-config-mysql.php : 'db-host' => 'mysql:3306', 'db-user' => ...
user avatar
  • 81
1 vote
1 answer
976 views

Magento 2 Marketplace Varnish Test Failed Error: Your requirements could not be resolved to an installable set of packages

I have uploaded the extension on the marketplace but it's failed in varnish test. Error:- Your requirements could not be resolved to an installable set of packages. Problem 1 - Conclusion: don't ...
user avatar
  • 1,838
1 vote
1 answer
2k views

Call to undefined method Magento\Customer\Api\Data\CustomerExtension::getIsSubscribed()

I'm getting an error Call to undefined method Magento\Customer\Api\Data\CustomerExtension::getIsSubscribed() when running integration tests on my local development environment. For some reason it ...
user avatar
0 votes
2 answers
184 views

after run php bin/magento module:disable --all my setup become messy

in my local setup I have run the command for testing, what happens. php bin/magento module:disable --all I have found an error in most of commands and nothing is working. after that, I have ...
user avatar
0 votes
1 answer
353 views

Login doesn’t work and it redirects again to login page in magento 2 using jmeter

I am new to JMeter. I tried to record login or sign-up using the JMeter proxy in Magento 2.2.7 and I tried to view the result in the JMeter, but in JMeter. I'm unable to get the response of the login ...
user avatar
  • 309
1 vote
1 answer
1k views

PHPUnit testing a Method Internally calling a Helper Method

Testing in magento 1.9 is painful. But somehow I am trying to figure out using PHPUnit. I have a method which I want to test. And for unit testing I want to mock all the dependency that this method ...
user avatar
  • 149
7 votes
0 answers
479 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 ...
user avatar
  • 1,924
0 votes
1 answer
66 views

What is '-c' in the command ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml app/code/Vendor/Module/Test/Unit?

I just know I can execute my test file with this command through PHP-Unit framework but haven't figured out what '-c' is for.
user avatar
  • 3
4 votes
1 answer
202 views

Run Integration/Functional Tests on an Existing Database for Customer Specific Projects

We develop customer specific projects in Magento 2.3.x, with different customer specific extensions. Development is based on a copy of the production database (master.sql), so we do not usually use ...
user avatar
  • 14.7k
1 vote
0 answers
104 views

Magento 2.3.1 : A/B testing

I am not sure if this question has been asked before but I badly need to know if AB testing can be set up for Magento 2.3.1 community edition. I know it can be done for Magento 2 enterprise edition ...
user avatar
  • 115
0 votes
1 answer
108 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 ...
user avatar
  • 1,924
6 votes
2 answers
195 views

Can @magentoDataFixture files be inside the module itself and not on default directory dev/tests/integration/testsuite?

A very good thing about Magento 2 is that we put together all files inside the module itself. Layout XML, Templates, Less/Sass, Blocks, Models, Helpers, API, SQL scripts and everything. It's important ...
user avatar
2 votes
4 answers
2k views

Magento 2 - Test cronjob from browser

I have created a cronjob in: app/code/Vendor/Module/Cron/MyCron.php It's in development phase, so every time I need to check the data or debug anything I am creating a log file and rescheduling it ...
user avatar
4 votes
1 answer
2k 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 ...
user avatar
  • 503
1 vote
2 answers
221 views

Get product only with attributes used in product listing in a test

In my test I am creating a product like this: $product = $this->objectManagerHelper->create('Magento\Catalog\Model\Product'); $product ->setId(1) ->setTypeId(Product\Type::...
user avatar
  • 1,924
2 votes
2 answers
1k views

Magento2 Application Automation Testing - For Automation Testers

I am doing automation testing on Magento2 application for one of my client. I have heard from some people there are some automated testing frameworks for Magento 2. But everything seems to be ...
user avatar
5 votes
0 answers
236 views

Add to cart not working in Magento 2.2.5 performance testing script "benchmark_2015.jmx" for customer account

In Magento2 - I am using Magento benchmark script "benchmark_2015.jmx" for a default Magento(v2.2.5) installation. In Customer Checkout thread group >> "Add to cart" request(http://prntscr.com/mty00o)...
user avatar
0 votes
1 answer
3k views

How to clean up magento2 database programatically?

How can I delete all test data from Magento 2 database programatically by running an API?
user avatar
2 votes
0 answers
184 views

What is the correct way to create Mock input interface in Web-Api functional test?

I've already write successfully a Web-Api unit test for a Custom API. But I'm wondering if there is a way to automatically create a Mock for input data for the API? For example, AccountManagement ...
user avatar
1 vote
0 answers
18 views

Need to automate Magento website [closed]

Can any one please tell me what is the difference between automating through MTAF and normal Selenium + TestNG? What can I achieve from MTAF which I can't achieve using Selenium+ Java+ TestNG ? ...
user avatar
1 vote
1 answer
49 views

Magento2 Object Manager Issue in MTF test run windows

I am learning on how to use MTF in my test module. I am trying to run generator using command php generate.php But I am getting following error - Uncaught Error: Class 'Magento\Mtf\...
user avatar
  • 1,458
0 votes
1 answer
639 views

Magento Stress test

I've built a website using Magento version 2.2.3. Now, I want to stress test my website. I've heard that the JMeter is one of the best tools for testing the performance of the site. So I used JMeter ...
user avatar
  • 1,124
8 votes
1 answer
263 views

Magento 2 : What is the intended use of the integration test functionality?

I write a lot of integration tests for Magento 2. This helps my local development and they fit nicely in a CI way of working. However, there are some oddities about the integration test suite of ...
user avatar
  • 11.6k
2 votes
1 answer
531 views

Why the CatalogSearch is not installing during the integration test?

I'm trying to run my Integration test on magento2 but keep getting the same error. Module 'Magento_CatalogSearch': Installing data... [Magento\CatalogSearch\Model\Indexer\Scope\...
user avatar
  • 571
2 votes
0 answers
436 views

Magento integration test conflict with new customer eav attribute

I tried to run my integration test using bin/magento dev:tests:run integration but i always got an error like this: Module 'Company_CutomerExtraAttribute': Upgrading data... [Magento\Framework\...
user avatar
1 vote
0 answers
175 views

MFTF and the replacement of the Functional Testing Framework

I would like to understand more about how this works and how to utilize it properly. I do know It’s not available in the latest version of Magento installed by Composer. You need to install Magento ...
user avatar
9 votes
1 answer
3k views

How to setup CI on Magento 2 extension using Bitbucket Pipeline?

How can I prepare a CI script to check the syntax and code quality of my extension code? It's not necessary to run Unit Test or Integration Test, I'm using Bitbucket and I would like to use Bitbucket ...
user avatar
1 vote
2 answers
40 views

Magento 2 : Redirect in case it's not me during dev phase

I've already installed Magento 2 and started with config and uploading products - working quite nice. Now I'd like to forward all traffic to another website (currently just using a index.php with a ...
user avatar
  • 577
0 votes
1 answer
1k views

Magento 2 Incorrect dependency in class already exists in context object

I created a extension submitted for approval On my local there is Varnish cashe enabled but sudo php bin/magento setup:di:compile runs without any error. I got 6 errors in Technical Report ...
user avatar
  • 1,656
2 votes
1 answer
164 views

Problems Loading a Custom Model in an Integration Test

I’m working on an integration test that utilizes a custom model and am unable to load the object. Core objects are loading fine. I can create a quote using my own fixture without issue. As far as I ...
user avatar
1 vote
1 answer
66 views

Testing Pull Requests and Patches from Magento 2's GitHub

I'd like to test the following patch applied by the community. As seen here, https://github.com/magento/magento2/pull/13359/files. Since I've always installed Magento via composer, is there an easy ...
user avatar
  • 524
1 vote
0 answers
78 views

Magento 2 contributing tests to the new MFTF

I would like to know if it's possible to contribute tests to the new MFTF framework. In the documentation it talks about contributing to the MFTF core itself, but not how to contribute tests for it, ...
user avatar
2 votes
1 answer
762 views

Magento 2, how to create a test from a custom module in the new MFTF (magento functional testing framework)

I've read the documentation that is available for the new MFTF for Magento 2, however I can't figure out how to go about creating tests that are located in a different folder other than the folders ...
user avatar
1 vote
1 answer
142 views

Testing/Development Environment on local server

I need to create a local development environment and struggling a little with the setup. I want to replicate my live server as close as I possibly can. I hope I'm posting this question in a right ...
user avatar
  • 2,749
5 votes
2 answers
1k views

Magento 2 Remove test data that is generated from Performance Toolkit?

I tried to test Magento 2 performance on my local computer by using the Magento Performance Toolkit, php bin/magento setup:perf:generate-fixtures /var/www/html/magento2/setup/performance-toolkit/...
user avatar
2 votes
1 answer
685 views

What is Magento Functional Testing Framework (MTFT)

With the new release of Magento version 2.2.2 in release notes they have mentioned a new feature as Magento Functional Testing Framework (MTFT). What is this framework do exactly? Is this a option/...
user avatar
  • 7,342
2 votes
0 answers
97 views

As a system integrator, what is the recommended set of tests to run on each build?

To clarify, by "System Integrator" I mean, "I am working on a full Magento project, not just a module" I am currently working with Travis and already am using composer to import all custom extensions ...
user avatar