Skip to content

Commit 18abf17

Browse files
committed
MQE-1740: How to make use of MFTF Suite
Updated as per review comments.
1 parent dbcb122 commit 18abf17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/guides/using-suites.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
With increasing number of MFTF tests, it's important to have a mechanism to organize and consolidate them for ease-of-use.
44

5-
## What is a suite?
5+
### What is a suite?
66

77
Suite is a collection of MFTF tests that are intended to test specific behaviors of Magento. It may contain common initialization and clean up steps specific to the test cases included. It allows you to include, exclude and/or group tests with preconditions and post conditions.
88
You can create a suite referencing tests, test groups and modules.
99

1010
### How is a suite defined?
1111

12-
Suite must be defined under `<magento 2 root>/dev/tests/acceptance/tests/_suite` as an xml file. The generated tests for each suite are grouped into their own directory under `<magento 2 root>/dev/tests/acceptance/tests/functional/Magento/FunctionalTest/_generated/`
12+
A suite should be created under `<magento 2 root>/dev/tests/acceptance/tests/_suite` if it has cross-module references. If a suite references only a specific module, it should be created under `<module>/Test/Mftf/Suite`. The generated tests for each suite are grouped into their own directory under `<magento 2 root>/dev/tests/acceptance/tests/functional/Magento/FunctionalTest/_generated/`.
1313

1414
### What is the format of a suite?
1515

@@ -23,7 +23,7 @@ A suite comprises of the below blocks:
2323
```xml
2424
<?xml version="1.0" encoding="UTF-8"?>
2525

26-
<suites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Suite/etc/suiteSchema.xsd">
26+
<suites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Suite/etc/suiteSchema.xsd">
2727
<suite name="">
2828
<before>
2929
</before>
@@ -46,7 +46,7 @@ A suite comprises of the below blocks:
4646
### Example
4747

4848
```xml
49-
<suites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Suite/etc/suiteSchema.xsd">
49+
<suites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Suite/etc/suiteSchema.xsd">
5050
<suite name="WYSIWYGDisabledSuite">
5151
<before>
5252
<magentoCLI stepKey="disableWYSIWYG" command="config:set cms/wysiwyg/enabled disabled" />

0 commit comments

Comments
 (0)