Magento Community Edition, 1.9.x

Magento Test Framework

The Magento Test Framework (MTF) is a tool that can run nearly 170 automated functional tests, which are included in Magento and designed to improve the quality of implementations and to make it easier to perform basic acceptance testing when adding extensions, making customizations, or upgrading Magento. For more technical information, see: Introduction to Magento Testing Framework.

Running MTF
1. Make sure your Magento code is up to date.
2. Change to the dev/tests/functional directory, and run composer update to update any dependencies that might prevent tests from running successfully.
  • composer update
3. Start Selenium. Selenium was downloaded by Composer, and can be found in the following directory:

dev/tests/functional/vendor/netwing/selenium-server-standalone

  • Example
    java -jar vendor/netwing/selenium-server-standalone/selenium-server-standalone-2.39.0.jar
4. Start your tests using PHPUnit, using your integrated development environment (IDE), or from the command line.
  • Example
    cd dev/tests/functional
    phpunit