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
Copy file name to clipboardExpand all lines: docs/suite.md
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,10 @@ Suites are essentially groups of tests that run in the specific conditions (prec
4
4
They enable you including, excluding, and grouping tests for a customized test run when you need it.
5
5
You can form suites using separate tests, groups, and modules.
6
6
7
-
Each suite must be defined in the `<magento 2 root>/dev/tests/acceptance/tests/_suite/suite.xml` file.
8
-
The generated tests for each suite go into a separate directory under `<magento 2 root>/dev/tests/acceptance/tests/functional/Magento/FunctionalTest/_generated/`.
9
-
By default, all generated tests are stored in the _default_ suite under `.../Magento/FunctionalTest/_generated/default/`
7
+
Each suite must be defined in the `<VendorName>/<ModuleName>/Test/Mftf/Suite` directory.
8
+
9
+
The tests for each suite will be generated in a separate directory under `<magento 2 root>/dev/tests/acceptance/tests/functional/Magento/FunctionalTest/_generated/`.
10
+
All tests that aren't in a suite will be generated in the _default_ suite at `.../Magento/FunctionalTest/_generated/default/`
10
11
11
12
<divclass="bs-callout bs-callout-info">
12
13
If a test is generated into at least one custom suite, it will not appear in the _default_ suite.
@@ -59,8 +60,6 @@ The code lives in one place and executes once per suite.
59
60
- Set up preconditions and postconditions using [actions] in [`<before>`] and [`<after>`] correspondingly, just similar to use in a [test].
60
61
- Clean up after suites just like after tests.
61
62
The MFTF enforces the presence of both `<before>` and `<after>` if either is present.
62
-
- Do not reference in the subsequent tests to data that was persisted in the preconditions.
63
-
Referencing to `$stepKey.field$` of these actions is not valid.
0 commit comments