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/test.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Test
2
2
3
3
Test cases in the Magento Functional Testing Framework (MFTF) are defined in XML as [`<tests>`].
4
-
`<tests>` is a [Codeception test container][Codeception] that contains individual test [`<test>`] with it's metadata ([`<annotations>`]), before ([`<before>`]) and after ([`<after>`]) section.
4
+
`<tests>` is a [Codeception test container][Codeception] that contains individual test [`<test>`] with its metadata ([`<annotations>`]), before ([`<before>`]) and after ([`<after>`]) section.
5
5
6
6
MFTF `<test>` is considered a sequence of actions with associated parameters.
7
7
Any failed [assertion] within a test constitutes a failed test.
@@ -18,7 +18,7 @@ The following diagram shows the structure of an MFTF test case:
18
18
19
19
## Format
20
20
21
-
The format of Test XML file is:
21
+
The format of a test XML file is:
22
22
23
23
```xml
24
24
<?xml version="1.0" encoding="UTF-8"?>
@@ -35,7 +35,6 @@ The format of Test XML file is:
35
35
<after>
36
36
<!-- ACTIONS AND ACTION GROUPS PERFORMED AFTER THE TEST -->
37
37
</after>
38
-
39
38
<!-- TEST ACTIONS, ACTION GROUPS, AND ASSERTIONS-->
40
39
</test>
41
40
</tests>
@@ -47,13 +46,13 @@ The following conventions apply to MFTF tests:
47
46
48
47
* One `<test>` tag is allowed per test XML file.
49
48
* All names within the framework are in the **PascalCase** format and must be alphanumeric.
50
-
* Each action and action group call has its own identifier `<stepKey>` for reference purposes.
49
+
* Each action and action group call should have its own identifier `<stepKey>`.
51
50
* A test may have any number of [assertions][assertion] at any point within the `<test>`.
52
51
* If `<test>` is included in [`<suite>`][suites], it **cannot be generated in isolation** from `<before>` and `<after>` section of the suite (see [suites] for details).
53
52
54
53
## Elements reference
55
54
56
-
There are several XML elements that are used in`<test>` in the MFTF.
55
+
There are several XML elements that are used within`<test>` in the MFTF.
57
56
58
57
### tests {#tests-tag}
59
58
@@ -92,7 +91,7 @@ Allure annotations provide metadata for reporting.
92
91
93
92
### after {#after-tag}
94
93
95
-
`<after>` wraps the steps to perform after the [`<test>`]. The steps are run in both successful **and** failed test runs. The goal of this section is to perform cleanup (revert the environment to the pre-test state).
94
+
`<after>` wraps the steps to perform after the [`<test>`]. The steps are run in both successful **and** failed test runs. The goal of this section is to perform cleanup (revert the environment to the pre-test state).
0 commit comments