Skip to content

Commit ee2b7ac

Browse files
authored
Merge branch 'develop' into web-server-rewrites
2 parents 420fcb7 + d890e05 commit ee2b7ac

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-13
lines changed

docs/commands/mftf.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ vendor/bin/mftf generate:tests
3939
### Generate tests by test name
4040

4141
```bash
42-
vendor/bin/mftf generate:tests AdminLoginTest StorefrontPersistedCustomerLoginTest
42+
vendor/bin/mftf generate:tests AdminLoginSuccessfulTest StorefrontPersistedCustomerLoginTest
4343
```
4444

4545
### Generate test by test and suite name
4646

4747
```bash
48-
vendor/bin/mftf generate:tests LoginSuite:AdminLoginTest
48+
vendor/bin/mftf generate:tests LoginSuite:AdminLoginSuccessfulTest
4949
```
5050

5151
### Generate and run the tests for a specified group
@@ -59,18 +59,18 @@ This command cleans up the previously generated tests; generates and runs tests
5959
### Generate and run particular tests
6060

6161
```bash
62-
vendor/bin/mftf run:test AdminLoginTest StorefrontPersistedCustomerLoginTest -r
62+
vendor/bin/mftf run:test AdminLoginSuccessfulTest StorefrontPersistedCustomerLoginTest -r
6363
```
6464

6565
This command cleans up the previously generated tests; generates and runs the `LoginAsAdminTest` and `LoginAsCustomerTest` tests.
6666

6767
### Generate and run particular test in a specific suite's context
6868

6969
```bash
70-
vendor/bin/mftf run:test LoginSuite:AdminLoginTest -r
70+
vendor/bin/mftf run:test LoginSuite:AdminLoginSuccessfulTest -r
7171
```
7272

73-
This command cleans up previously generated tests; generates and run `AdminLoginTest` within the context of the `LoginSuite`.
73+
This command cleans up previously generated tests; generates and run `AdminLoginSuccessfulTest` within the context of the `LoginSuite`.
7474

7575
### Generate and run a testManifest.txt file
7676

@@ -362,7 +362,7 @@ vendor/bin/mftf run:manifest path/to/your/testManifest.txt
362362
Each line should contain either: one test path or one group (-g) reference.
363363

364364
```
365-
tests/functional/tests/MFTF/_generated/default/AdminLoginTestCest.php
365+
tests/functional/tests/MFTF/_generated/default/AdminLoginSuccessfulTestCest.php
366366
-g PaypalTestSuite
367367
tests/functional/tests/MFTF/_generated/default/SomeOtherTestCest.php
368368
tests/functional/tests/MFTF/_generated/default/ThirdTestCest.php

docs/test/annotations.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,28 @@ Attribute|Type|Use
112112

113113
### severity
114114

115-
The `<return>` element is an implementation of a [`@Severity`] Allure tag; Metadata for report.
115+
The `<severity>` element is an implementation of the [`@Severity`] Allure annotation, which is used to prioritise tests by severity.
116116

117117
Attribute|Type|Use|Acceptable values
118118
---|---|---|---
119-
`value`|string|required|`MINOR`, `AVERAGE`, `MAJOR`, `BLOCKER`, `CRITICAL`
119+
`value`|string|required|`MINOR`, `AVERAGE`, `MAJOR`, `CRITICAL`, `BLOCKER`
120120

121121
#### Example
122122

123123
```xml
124124
<severity value="CRITICAL"/>
125125
```
126126

127+
#### Usage guidelines
128+
129+
Severity Level|Usage
130+
---|---
131+
`BLOCKER`|If this test fails, the customer is completely blocked from purchasing a product.
132+
`CRITICAL`|This is a serious problem impacting conversion, or affecting the operation of the store.
133+
`MAJOR`|Store conversion rate is reduced owing to this issue. For example, something is broken or missing that impacts checkout frequency or cart volume.
134+
`AVERAGE`|A fault on the storefront that can negatively impact conversion rate (like UI errors or omissions), or problems with Magento admin functionality.
135+
`MINOR`|An application or configuration fault that has no impact on conversion rate.
136+
127137
### skip
128138

129139
Use the `<skip>` element to skip a test.
@@ -213,14 +223,14 @@ Attribute|Type|Use
213223

214224
<!-- Link definitions -->
215225

216-
[`@Description`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#extended-test-class-or-test-method-description
217-
[`@Features`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#map-test-classes-and-test-methods-to-features-and-stories
226+
[`@Description`]: https://github.com/allure-framework/allure-phpunit#extended-test-class-or-test-method-description
227+
[`@Features`]: https://github.com/allure-framework/allure-phpunit#map-test-classes-and-test-methods-to-features-and-stories
218228
[`@group`]: http://codeception.com/docs/07-AdvancedUsage#Groups
219229
[`@return`]: http://codeception.com/docs/07-AdvancedUsage#Examples
220-
[`@Severity`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#set-test-severity
221-
[`@Stories`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#map-test-classes-and-test-methods-to-features-and-stories
230+
[`@Severity`]: https://github.com/allure-framework/allure-phpunit#set-test-severity
231+
[`@Stories`]: https://github.com/allure-framework/allure-phpunit#map-test-classes-and-test-methods-to-features-and-stories
222232
[`@TestCaseId`]: https://github.com/allure-framework/allure1/wiki/Test-Case-ID
223-
[`@Title`]: https://devhub.io/zh/repos/allure-framework-allure-phpunit#human-readable-test-class-or-test-method-title
233+
[`@Title`]: https://github.com/allure-framework/allure-phpunit#human-readable-test-class-or-test-method-title
224234
[description]: #description
225235
[features]: #features
226236
[group]: #group

0 commit comments

Comments
 (0)