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
*`createCustomer` is a step key of the corresponding test step that creates an entity.
63
-
*`email` is a data key of the entity.
62
+
*`createCustomer` is a step key of the corresponding test step that creates an entity.
63
+
*`email` is a data key of the entity.
64
64
The corresponding value will be assigned to `userInput` as a result.
65
65
66
66
<divclass="bs-callout bs-callout-info">
@@ -118,10 +118,10 @@ The format of `<data>` is:
118
118
119
119
The following conventions apply to MFTF `<data>`:
120
120
121
-
* A `<data>` file may contain multiple data entities.
122
-
* Camel case is used for `<data>` elements. The name represents the `<data>` type. For example, a file with customer data is `CustomerData.xml`. A file for simple product would be `SimpleProductData.xml`.
123
-
* Camel case is used for the entity name.
124
-
* The file name must have the suffix `Data.xml`.
121
+
*A `<data>` file may contain multiple data entities.
122
+
*Camel case is used for `<data>` elements. The name represents the `<data>` type. For example, a file with customer data is `CustomerData.xml`. A file for simple product would be `SimpleProductData.xml`.
123
+
*Camel case is used for the entity name.
124
+
*The file name must have the suffix `Data.xml`.
125
125
126
126
## Example
127
127
@@ -152,16 +152,16 @@ All entities that have the same name will be merged during test generation. Both
152
152
153
153
`_defaultCategory` sets three data fields:
154
154
155
-
*`name` defines the category name as `simpleCategory` with a unique suffix. Example: `simpleCategory598742365`.
156
-
*`name_lwr` defines the category name in lowercase format with a unique suffix. Example: `simplecategory697543215`.
157
-
*`is_active` sets the enable category to `true`.
155
+
*`name` defines the category name as `simpleCategory` with a unique suffix. Example: `simpleCategory598742365`.
156
+
*`name_lwr` defines the category name in lowercase format with a unique suffix. Example: `simplecategory697543215`.
157
+
*`is_active` sets the enable category to `true`.
158
158
159
159
`SimpleSubCategory` sets four data fields:
160
160
161
-
*`name` that defines the category name with a unique suffix. Example: `SimpleSubCategory458712365`.
162
-
*`name_lwr` that defines the category name in lowercase format with a unique suffix. Example: `simplesubcategory753698741`.
163
-
*`is_active` sets the enable category to `true`.
164
-
*`include_in_menu` that sets the include in the menu to `true`.
161
+
*`name` that defines the category name with a unique suffix. Example: `SimpleSubCategory458712365`.
162
+
*`name_lwr` that defines the category name in lowercase format with a unique suffix. Example: `simplesubcategory753698741`.
163
+
*`is_active` sets the enable category to `true`.
164
+
*`include_in_menu` that sets the include in the menu to `true`.
Copy file name to clipboardExpand all lines: docs/debugging.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
3
3
Debugging within the Magento Functional Testing Framework is helpful in identifying test bugs by allowing you to pause execution so that you may:
4
4
5
-
- Examine the page.
6
-
- Check returned data and other variables being used during run-time.
5
+
-Examine the page.
6
+
-Check returned data and other variables being used during run-time.
7
7
8
8
This is straightforward to do once you create a basic Debug Configuration.
9
9
10
10
## Prerequisites
11
11
12
-
-[Xdebug][]
13
-
- PHPUnit configured for use in [PHPStorm][]
12
+
-[Xdebug][]
13
+
-PHPUnit configured for use in [PHPStorm][]
14
14
15
15
## Creating Debug Configuration with PHPStorm
16
16
@@ -27,8 +27,8 @@ If you get a warning `Path to Codeception for local machine is not configured.`:
27
27
28
28
The easiest method of tagging a test for debugging is the following:
29
29
30
-
- In your Debug configuration, locate `Test Runner options:` and set `--group testDebug`.
31
-
- When you want to debug a test you are working on, simply add `<group value="testDebug"/>` to the annotations. Be sure to remove this after done debugging.
30
+
-In your Debug configuration, locate `Test Runner options:` and set `--group testDebug`.
31
+
-When you want to debug a test you are working on, simply add `<group value="testDebug"/>` to the annotations. Be sure to remove this after done debugging.
32
32
33
33
Your Debug Configuration should now be able to run your test and pause execution on any breakpoints you have set in the generated `.php` file under the `_generated` folder.
Copy file name to clipboardExpand all lines: docs/extending.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@ For example, only one or two parameters (for example, URL) might vary between te
5
5
To avoid copy-pasting and to save some time the Magento Functional Testing Framework (MFTF) enables you to extend test components such as [test], [data], and [action group].
6
6
You can create or update any component of the parent body in your new test/action group/entity.
7
7
8
-
* A test starting with `<test name="SampleTest" extends="ParentTest">` creates a test `SampleTest` that takes body of existing test `ParentTest` and adds to it the body of `SampleTest`.
9
-
* An action group starting with `<actionGroup name="SampleActionGroup" extends="ParentActionGroup">` creates an action group based on the `ParentActionGroup`, but with the changes specified in `SampleActionGroup`.
10
-
* An entity starting with `<entity name="SampleEntity" extends="ParentEntity">` creates an entity `SampleEntity` that is equivalent to merging the `SampleEntity` with the `ParentEntity`.
8
+
*A test starting with `<test name="SampleTest" extends="ParentTest">` creates a test `SampleTest` that takes body of existing test `ParentTest` and adds to it the body of `SampleTest`.
9
+
*An action group starting with `<actionGroup name="SampleActionGroup" extends="ParentActionGroup">` creates an action group based on the `ParentActionGroup`, but with the changes specified in `SampleActionGroup`.
10
+
*An entity starting with `<entity name="SampleEntity" extends="ParentEntity">` creates an entity `SampleEntity` that is equivalent to merging the `SampleEntity` with the `ParentEntity`.
11
11
12
12
Specify needed variations for a parent object and produce a copy of the original that incorporates the specified changes (the "delta").
13
13
@@ -71,8 +71,8 @@ __Use case__: Create two similar tests with different `url` (`"{{AdminCategoryPa
71
71
72
72
__Use case__: Create two similar tests where the second test contains two additional steps:
73
73
74
-
*`checkOption` before `click` (`stepKey="clickLogin"`)
75
-
*`seeInCurrentUrl` after `click` in the `LogInAsAdminTest` test (in the `.../Backend/Test/LogInAsAdminTest.xml` file)
74
+
*`checkOption` before `click` (`stepKey="clickLogin"`)
75
+
*`seeInCurrentUrl` after `click` in the `LogInAsAdminTest` test (in the `.../Backend/Test/LogInAsAdminTest.xml` file)
76
76
77
77
> Tests with "extends":
78
78
@@ -119,8 +119,8 @@ __Use case__: Create two similar tests where the second test contains two additi
119
119
120
120
__Use case__: Create two similar tests where the second one contains two additional actions in the `before` hook:
121
121
122
-
*`checkOption` before `click` (`stepKey="clickLogin"`)
123
-
*`seeInCurrentUrl` after `click` in the `LogInAsAdminTest` test (in the `.../Backend/Test/LogInAsAdminTest.xml` file)
122
+
*`checkOption` before `click` (`stepKey="clickLogin"`)
123
+
*`seeInCurrentUrl` after `click` in the `LogInAsAdminTest` test (in the `.../Backend/Test/LogInAsAdminTest.xml` file)
124
124
125
125
> Tests with "extends":
126
126
@@ -366,4 +366,4 @@ __Use case__: Create an entity named `DivPanelGreen`, which is similar to the `D
0 commit comments