You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Avoid using resources that are marked as **Deprecated**. Usually there's a replacement provided for deprecated resource.
23
+
Avoid using resources that are marked as **Deprecated**. Usually there is a replacement provided for a deprecated resource.
24
24
25
25
</div>
26
26
27
27
### Extract repetitive Actions
28
28
29
-
Instead of writing a few of Tests that perform mostly the same actions, you should thing about [Action group] that is a container for repetitive Actions.
29
+
Instead of writing a few of Tests that perform mostly the same actions, you should thing about [Action group] that is a container for repetitive Actions.
30
30
If each run needs different data, use `<arguments>` to inject necessary information.
31
31
32
32
We recommend to keep Action Groups having single responsibility, for example `AdminLoginActionGroup`, which expected outcome is being logged in as Administrator when [Action group] is executed.
33
33
34
34
## Contribute
35
35
36
-
Althought Magento Core team and Contributors join their forces to cover most of the features with tests, it's impossible to have this done that quick.
36
+
Althought the Magento Core team and Contributors join forces to cover most of the features with tests, it is impossible to have this done quickly.
37
37
If you've covered Magento Core feature with Functional Tests - you are more than welcome to contribute.
38
38
39
-
You can also help with [MFTF Test Migration] to get the experience and valuable feedback from other community members and maintainers.
39
+
You can also help with MFTF Test Migration to get the experience and valuable feedback from other community members and maintainers.
40
40
41
41
## Action group
42
42
@@ -129,20 +129,20 @@ Use the _Foo.camelCase_ naming convention, which is similar to _Classes_ and _cl
Copy file name to clipboardExpand all lines: docs/introduction.md
+26-30Lines changed: 26 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,26 @@
1
1
# Introduction to the Magento Functional Testing Framework
2
2
3
-
The **Magento Functional Tesitng Framework** (MFTF) is framework to perform end-to-end acceptance testing. Tests are performed in real web browser (eg. Google Chrome) just like the real user of the Magento store.
3
+
The Magento Functional Tesitng Framework (MFTF) is a framework used to perform automated end-to-end functional testing.
4
4
5
5
## Goals
6
6
7
-
-Facilitate functional testing and minimize the effort it takes to perform regression testing.
8
-
- Enable extension developers to provide the Functional Tests to offered extensions.
9
-
-Having common standard of Quality Assurrance between Magento, Extension Developers and System Intergrators.
7
+
- To facilitate functional testing and minimize the effort it takes to perform regression testing.
8
+
-Enable extension developers to provide the Functional Tests to offered extensions.
9
+
- Ensuring a common standard of quality between Magento, Extension Developers and System Intergrators.
10
10
11
-
**MFTF also focuses on**
11
+
MFTF also focuses on
12
12
13
-
-**Traceability** for clear logging and reporting capabilities.
14
-
-**Modularity** to run tests based on installed modules and extensions.
15
-
-**Customizability** for existing tests.
16
-
-**Readability** using clear and declarative XML test steps.
17
-
-**Maintainability** based on simple test creation and overall structure.
13
+
-**Traceability** for clear logging and reporting capabilities.
14
+
-**Modularity** to run tests based on installed modules and extensions.
15
+
-**Customizability** for existing tests.
16
+
-**Readability** using clear and declarative XML test steps.
17
+
-**Maintainability** based on simple test creation and overall structure.
18
18
19
19
## Audience
20
20
21
-
-**Contributors**: Tests build their confidence about the results of changes introduced to the platform.
22
-
-**Extension Developers**: Can adjust expected behaviour according to their customizations.
23
-
-**System Integrators**: MFTF coverage provided out-of-the-box with Magento is solid base for Acceptance / Regression Tests.
21
+
-**Contributors**: Tests build confidence about the results of changes introduced to the platform.
22
+
-**Extension Developers**: Can adjust expected behaviour according to their customizations.
23
+
-**System Integrators**: MFTF coverage provided out-of-the-box with Magento is solid base for Acceptance / Regression Tests.
We are actively developing functional tests. Check out the [MFTF Test Migration][] repository.
@@ -61,30 +60,27 @@ We are actively developing functional tests. Check out the [MFTF Test Migration]
61
60
62
61
## Use cases
63
62
64
-
***Contributor** changes the core behaviour, fixing the annoing bug.
65
-
He wants to have automated "supervisor" which is going to verify his work continuously across the stages of bug fixing. Finally, when fix is done - Functional Test is also proof of work done.
66
-
67
-
***Extension Developer** offers extension that changes core behaviour.
68
-
He can easily write new tests to make sure that after enabling the feature, Magento behaves properly. Everything with just extending existing tests. As a result he don't need to write coverage from scratch.
They are able to customize tests delivered with Magento core to follow customizations implemented to Magento. After each upgrade they can just run the MFTF tests to know that no regression was introduced.
72
-
63
+
- Contributor: changes the core behaviour, fixing the annoing bug.
64
+
He wants to have automated "supervisor" which is going to verify his work continuously across the stages of bug fixing. Finally, when fix is done - Functional Test is also proof of work done.
65
+
- Extension Developer: offers extension that changes core behaviour.
66
+
He can easily write new tests to make sure that after enabling the feature, Magento behaves properly. Everything with just extending existing tests. As a result he don't need to write coverage from scratch.
They are able to customize tests delivered with Magento core to follow customizations implemented to Magento. After each upgrade they can just run the MFTF tests to know that no regression was introduced.
73
69
74
70
## MFTF output
75
71
76
-
- Generated PHP Codeception tests
77
-
- Codeception results and console logs
78
-
- Screenshots and HTML failure report
79
-
- Allure formatted XML results
80
-
- Allure report dashboard of results
72
+
-Generated PHP Codeception tests
73
+
-Codeception results and console logs
74
+
-Screenshots and HTML failure report
75
+
-Allure formatted XML results
76
+
-Allure report dashboard of results
81
77
82
78
## Find your MFTF version
83
79
84
80
There are two options to find out your MFTF version:
85
81
86
-
- using the MFTF CLI
87
-
- using the Composer CLI
82
+
-using the MFTF CLI
83
+
-using the Composer CLI
88
84
89
85
All the Command Line commands needs to be executed from `<magento_root>`
0 commit comments