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
Depending on the environment you use, you may need to configure the MFTF more precisely by setting more configuration parameters then for basic configuration.
67
+
Depending on the environment you use, you may need to configure MFTF more precisely by setting additional configuration parameters.
68
68
This section describes available configuration parameters and their default values (where applicable).
Copy file name to clipboardExpand all lines: docs/credentials.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,20 +3,20 @@
3
3
When you test functionality that involves external services such as UPS, FedEx, PayPal, or SignifyD,
4
4
use the MFTF credentials feature to hide sensitive [data][] like integration tokens and API keys.
5
5
6
-
Currently the MFTF supports three types of credential storage:
6
+
Currently MFTF supports three types of credential storage:
7
7
8
8
-**.credentials file**
9
9
-**HashiCorp Vault**
10
10
-**AWS Secrets Manager**
11
11
12
12
## Configure File Storage
13
13
14
-
The MFTF creates a sample file for credentials during [initial setup][]: `magento2/dev/tests/acceptance/.credentials.example`.
14
+
MFTF creates a sample file for credentials during [initial setup][]: `magento2/dev/tests/acceptance/.credentials.example`.
15
15
The file contains an example list of keys for fields that can require credentials.
16
16
17
17
### Create `.credentials`
18
18
19
-
To make the MFTF process the file with credentials, in the command line, navigate to `magento2/dev/tests/acceptance/` and rename `.credentials.example` to `.credentials`.
19
+
To make MFTF process the file with credentials, in the command line, navigate to `magento2/dev/tests/acceptance/` and rename `.credentials.example` to `.credentials`.
Hashicorp vault secures, stores, and tightly controls access to data in modern computing.
79
79
It provides advanced data protection for your testing credentials.
80
80
81
-
The MFTF works with both `vault enterprise` and `vault open source` that use `KV Version 2` secret engine.
81
+
MFTF works with both `vault enterprise` and `vault open source` that use `KV Version 2` secret engine.
82
82
83
83
### Install vault CLI
84
84
@@ -92,11 +92,11 @@ Authenticate to vault server via the vault CLI tool: [Login Vault][Login Vault].
92
92
vault login -method -path
93
93
```
94
94
95
-
**Do not** use `-no-store` command option, as the MFTF will rely on the persisted token in the token helper (usually the local filesystem) for future API requests.
95
+
**Do not** use `-no-store` command option, as MFTF will rely on the persisted token in the token helper (usually the local filesystem) for future API requests.
96
96
97
97
### Store secrets in vault
98
98
99
-
The MFTF uses the `KV Version 2` secret engine for secret storage.
99
+
MFTF uses the `KV Version 2` secret engine for secret storage.
100
100
More information for working with `KV Version 2` can be found in [Vault KV2][Vault KV2].
Copy file name to clipboardExpand all lines: docs/data.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Input testing data
2
2
3
-
The MFTF enables you to specify and use `<data>` entities defined in XML. Default `<data>` entities are provided for use and as templates for entity creation and manipulation.
3
+
MFTF enables you to specify and use `<data>` entities defined in XML. Default `<data>` entities are provided for use and as templates for entity creation and manipulation.
4
4
The following diagram shows the XML structure of an MFTF data object:
5
5
6
6

@@ -67,7 +67,7 @@ In this example:
67
67
As of MFTF 2.3.6, you no longer need to differentiate between scopes (a test, a hook, or a suite) for persisted data when referencing it in tests.
68
68
</div>
69
69
70
-
The MFTF now stores the persisted data and attempts to retrieve it using the combination of `stepKey` and the scope of where it has been called.
70
+
MFTF now stores the persisted data and attempts to retrieve it using the combination of `stepKey` and the scope of where it has been called.
71
71
The current scope is preferred, then widening to _test > hook > suite_ or _hook > test > suite_.
72
72
73
73
This emphasizes the practice for the `stepKey` of `createData` to be descriptive and unique, as a duplicated `stepKey` in both a `<test>` and `<before>` prefers the `<test>` data.
3. In the WYSIWYG Options section set the **Enable WYSIWYG Editor** option to **Disabled Completely**.
69
69
4. Click **Save Config**.
70
70
@@ -88,7 +88,7 @@ When you want to test the WYSIWYG functionality, re-enable WYSIWYG in your test
88
88
89
89
To enable the **Admin Account Sharing** setting, to avoid unpredictable logout during a testing session, and disable the **Add Secret Key in URLs** setting, to open pages using direct URLs:
The MFTF does not support executing CLI commands if your web server points to `<MAGE_ROOT_DIR>/pub` directory as recommended in the [Installation Guide][Installation Guide docroot]. For the MFTF to execute the CLI commands, the web server must point to the Magento root directory.
118
+
MFTF does not support executing CLI commands if your web server points to `<MAGE_ROOT_DIR>/pub` directory as recommended in the [Installation Guide][Installation Guide docroot]. For MFTF to execute the CLI commands, the web server must point to the Magento root directory.
@@ -251,9 +251,7 @@ See more commands in [`mftf`][].
251
251
252
252
### Step 5. Generate reports {#reports}
253
253
254
-
During testing, the MFTF generates test reports in CLI.
255
-
You can generate visual representations of the report data using [Allure Framework][].
256
-
To view the reports in GUI:
254
+
During testing, MFTF generates test reports in CLI. You can generate visual representations of the report data using the [Allure Framework][]. To view the reports in a GUI:
257
255
258
256
-[Install Allure][]
259
257
- Run the tool to serve the artifacts in `dev/tests/acceptance/tests/_output/allure-results/`:
@@ -266,18 +264,16 @@ Learn more about Allure in the [official documentation][allure docs].
266
264
267
265
## Set up a standalone MFTF
268
266
269
-
The MFTF is a root level Magento dependency, but it is also available for use as a standalone application.
270
-
You may want to use a standalone application when you develop for or contribute to MFTF, which facilitates debugging and tracking changes.
271
-
These guidelines demonstrate how to set up and run Magento acceptance functional tests using standalone MFTF.
267
+
MFTF is a root level Magento dependency, but it is also available for use as a standalone application. You may want to use a standalone application when you develop for or contribute to MFTF, which facilitates debugging and tracking changes. These guidelines demonstrate how to set up and run Magento acceptance functional tests using standalone MFTF.
272
268
273
269
### Prerequisites
274
270
275
271
This installation requires a local instance of the Magento application.
276
-
The MFTF uses the [tests from Magento modules][mftf tests] as well as the `app/autoload.php` file.
272
+
MFTF uses the [tests from Magento modules][mftf tests] as well as the `app/autoload.php` file.
277
273
278
274
### Step 1. Clone the MFTF repository
279
275
280
-
If you develop or contribute to the MFTF, it makes sense to clone your fork of the MFTF repository.
276
+
If you develop or contribute to MFTF, it makes sense to clone your fork of the MFTF repository.
281
277
For contribution guidelines, refer to the [Contribution Guidelines for the Magento Functional Testing Framework][contributing].
282
278
283
279
### Step 2. Install the MFTF
@@ -307,7 +303,7 @@ Create the `utils/` directory, if you didn't find it.
307
303
308
304
### Step 6. Remove the MFTF package dependency in Magento
309
305
310
-
The MFTF uses the Magento `app/autoload.php` file to read Magento modules.
306
+
MFTF uses the Magento `app/autoload.php` file to read Magento modules.
311
307
The MFTF dependency in Magento supersedes the standalone registered namespaces unless it is removed at a Composer level.
0 commit comments