Magento 1.4 – Test Automation Framework Ambiguity

automationmagento-1.4testing

We are using Magento 1.4 at the moment to develop an e-commerce website. I don't know why we are using old version, but we are.

My task is to set up some automation tests. If possible the idea is to use these tests across different websites which also have been built using Magento 1.4.

I am completely new to Magento. I did some research, found some good links for installation. I could not find this information though.

Can you please answer the below questions and help me please?

  1. taf is the link I found for test automation framework. This does not come with prewritten regression tests. Is that correct? Is this compatible with Magento 1.4?

I found that the above repo is deprecated now and there is a new one being maintained mtf. On seeing the installation prerequisites (www.github.com/magento/mtf/blob/master/docs/install-config.md) of this it says Magento 2 is a must.

I am confused now. I must to use Magento 1.4. Which automation framework can I use? Any ideas? Preferably I am looking for one which has some pre-written testcases for Magento, so that it easier to start off with and build atop.

To install and run Magento I found this as the best link so far. (www.dhmedia.com.au/article/how-install-and-run-magento-test-automation-framework). If you have come across something else better please share.

Overall, is it any better and easier to just forget about MTAF and write own automation tests using say testng(Java) or PHPUnit and selenium? I am talking about user-journey tests on e-commerce platform like Placing an order, Browsing through, Creating wishlist, etc..

Best Answer

Unfortunately, The Magento Test Automation Framework was built for Magento 1.5-1.7. The Magento Testing Framework is for Magento 2.x. That means that there is a funny little section of the Magento 1.x world that cannot properly leverage a full testing framework.

These are the areas of unit and functional testing. There are others out there, but these are the main ones. If there are additional ones people wish to see, message me and I'll add them.

Testing Framework Support for Magento

Ecomdev PHPUnit

Magento Support: 1.4 - 1.9
Coverage: Unit Tests
Tests Written?: No
Link: https://github.com/EcomDev/EcomDev_PHPUnit

Magento Test Automation Framework

Magento Support: 1.5 - 1.7 (Official) 1.8 - 1.9 (Unofficial, no tests for new features)
Coverage: Unit and Functional Tests
Tests Written?: Yes
Link: https://github.com/magento/taf

Magento Testing Framework

Magento Support: 2.x
Coverage: Unit Test (Functional to come)
Tests Written? Yes
Link: https://github.com/magento/mtf

Can My Magento Be Tested?

This table can give a quick view of what testing support you have available to you.

Please forgive the archaic table. SO doesn't support table markdown (that I'm aware of). I had to use an image.

Magento Test Coverage Table

Related Topic