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
0 votes
1 answer
29 views

Duplicating magento for testing . Where to host?

I have a Magento website running and I need to run some tests on a duplicate magento website. Duplicating website process is fine, however I wanted to know where people duplicate their website? I saw ...
Henri's user avatar
  • 113
1 vote
0 answers
93 views

Magento2 how to write PHP unit test cases for GraphQl?

Can any one provide me the steps, how to write PHP unit test cases for Magento2 Graphql API with simple example.
Nagaraju Kasa's user avatar
0 votes
0 answers
9 views

does anyone have magento testing documentation other than the official or alternative documentation?

I am trying to understand how magento testin works because there is very little information about it, so I am looking for someone who has more experience in this field of magento testing, I would ...
JowDi's user avatar
  • 1
2 votes
0 answers
168 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: ...
Chris Rogers's user avatar
0 votes
0 answers
146 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: ...
Manoj Jarial's 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 ...
Alex's user avatar
  • 13.7k
2 votes
1 answer
242 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=&...
kolaente's user avatar
  • 308
2 votes
0 answers
119 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 ...
Ronak Rathod's user avatar
  • 6,216
1 vote
1 answer
57 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 ...
Mediterranean1973's user avatar
0 votes
2 answers
125 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 ...
Bilal Usean's user avatar
  • 9,887
0 votes
0 answers
36 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.
rajat kara's user avatar
  • 1,209
0 votes
1 answer
240 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-...
Nisrine Hafi's user avatar
0 votes
2 answers
692 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 ...
Bojjaiah's user avatar
  • 4,018
2 votes
0 answers
32 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 ...
dev's user avatar
  • 21
0 votes
2 answers
49 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 ...
Jan-petter Havna's user avatar
0 votes
1 answer
156 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' => ...
Badong's user avatar
  • 91
1 vote
1 answer
1k 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 ...
Mohit Rane's user avatar
  • 1,935
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 ...
Matti Teräslahti's user avatar
0 votes
2 answers
333 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 ...
Bhavesh Prajapati's user avatar
0 votes
1 answer
475 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 ...
Arul's user avatar
  • 309
1 vote
1 answer
2k 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 ...
arqam's user avatar
  • 149
7 votes
0 answers
619 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 ...
Daniel's user avatar
  • 2,199
0 votes
1 answer
70 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.
Div S's user avatar
  • 3
5 votes
1 answer
290 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 ...
Alex's user avatar
  • 13.7k
1 vote
0 answers
105 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 ...
ishu's user avatar
  • 125
1 vote
1 answer
148 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 ...
Daniel's user avatar
  • 2,199
7 votes
2 answers
293 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 ...
Matheus Gontijo's user avatar
2 votes
4 answers
3k 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 ...
Muhammad Farzam's user avatar
4 votes
1 answer
3k 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 ...
PhantomS's user avatar
  • 503
1 vote
2 answers
498 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::...
Daniel's user avatar
  • 2,199
2 votes
2 answers
2k 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 ...
Ranjitha's user avatar
5 votes
0 answers
295 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)...
Mukesh Suthar's user avatar
0 votes
1 answer
4k views

How to clean up magento2 database programatically?

How can I delete all test data from Magento 2 database programatically by running an API?
Ragesh VP's user avatar
3 votes
0 answers
257 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 ...
Federico Bollotta's user avatar
1 vote
0 answers
20 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 ? ...
HONEY JAIN's user avatar
1 vote
1 answer
52 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\...
Gagan's user avatar
  • 1,468
0 votes
1 answer
801 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 ...
Siva's user avatar
  • 1,124
8 votes
1 answer
310 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 ...
Giel Berkers's user avatar
  • 12.2k
2 votes
1 answer
570 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\...
Johan's user avatar
  • 581
2 votes
0 answers
497 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\...
Idham Choudry's user avatar
1 vote
0 answers
179 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 ...
thismethod's user avatar
9 votes
1 answer
4k 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 ...
Rafael Corrêa Gomes's user avatar
1 vote
2 answers
49 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 ...
Chris's user avatar
  • 577
0 votes
1 answer
2k 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 ...
inrsaurabh's user avatar
  • 1,676
2 votes
1 answer
184 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 ...
Phil Birnie's user avatar
1 vote
1 answer
76 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 ...
Rob's user avatar
  • 534
1 vote
0 answers
81 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, ...
Grigoruta Cristian's user avatar
2 votes
1 answer
895 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 ...
Grigoruta Cristian's user avatar
1 vote
1 answer
151 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 ...
Greg's user avatar
  • 2,899
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/...
Magento Learner's user avatar