Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.6 KB

create_test.md

File metadata and controls

31 lines (23 loc) · 1.6 KB
layout group subgroup title menu_title menu_node version github_link
default
mtf-guide
40_Approach
Create a test in the Functional Testing Framework
CREATE A TEST
parent
2.0
mtf/create_test.md

The Magento testing framework (FTF) works with functional tests only. Functional tests check that an application meets business requirements. These requirements usually are collected in the functional specifications that describe expected behaviour of the application.

Tests usually cover functionality of a business {% glossarytooltip a9027f5d-efab-4662-96aa-c2999b5ab259 %}entity{% endglossarytooltip %}. A goal is to find discrepancies between expected and real behaviour of the product. Magento provides functional tests in the <magento2_root_dir>/dev/tests/functional/ directory. In this guide, we call them out-of-the-box tests. You can use them to test the default Magento functionality. Also, you can create a test extending from the out-of-the-box test, or create your own functional tests.

Related topics

Out-of-the-box test

New functional test: Theory

New functional test: Practice