Functional testing

Functional tests mimic the user interaction with our application. They literally mean testing in the form of browser interaction, which involves clicking on the page, adding products to the cart, and so on. For this purpose, Magento uses Magento Testing Framework (MTF). It's a PHP wrapper around Selenium, which is a portable software testing framework for web applications. MTF is not available out of the box via the console. It can be downloaded at https://github.com/magento/mtf.

The following requirements need to be met before installing MTF:

  • Git must be installed.
  • The Firefox browser must be installed.
  • The PHP openssl extension must be installed and enabled.
  • Java version 1.6 or later is required and it's JAR executable must be ...

Get Magento 2 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.