diff --git a/testit-adapter-behave/README.md b/testit-adapter-behave/README.md index 4306312..50542bd 100644 --- a/testit-adapter-behave/README.md +++ b/testit-adapter-behave/README.md @@ -118,6 +118,7 @@ Description of tags: - `Labels` - labels listed in the autotest card - `Tags` - tags listed in the autotest card - `Links` - links listed in the autotest card +- `Layer` - test pyramid layer on the autotest card (source `Run`). Recommended values: `E2E`, `UI`, `API`, `Contract`, `Integration`, `Component`, `Unit`; any non-empty string is accepted - `NameSpace` - directory in the TMS system (default - file's name of test) - `ClassName` - subdirectory in the TMS system (default - class's name of test) @@ -196,6 +197,7 @@ Feature: Sample @Title=Title_in_the_autotest_card @Description=Test_with_all_annotations @Tags=Tag1,Tag2 + @Layer=API @Links={"url":"https://dumps.example.com/module/repository","title":"Repository","description":"Example_of_repository","type":"Repository"} Scenario: Create new project, section and test case When I create a project diff --git a/testit-adapter-nose/README.md b/testit-adapter-nose/README.md index 5c8b750..0fb70f1 100644 --- a/testit-adapter-nose/README.md +++ b/testit-adapter-nose/README.md @@ -102,6 +102,7 @@ Description of decorators: - `testit.labels` - labels listed in the autotest card - `testit.tags` - tags listed in the autotest card - `testit.links` - links listed in the autotest card +- `testit.layer` - test pyramid layer on the autotest card (source `Run`). Recommended values: `testit.TestLayers` (`E2E`, `UI`, `API`, `Contract`, `Integration`, `Component`, `Unit`); any non-empty string is accepted - `testit.step` - the designation of the step called in the body of the test or other step - `testit.nameSpace` - directory in the TMS system (default - file's name of test) - `testit.className` - subdirectory in the TMS system (default - class's name of test) @@ -162,6 +163,13 @@ def oneOneStep(): @testit.step('step 2') def oneTwoStep(): return True + + +# Layer on autotest card +@testit.externalId('api_layer_test') +@testit.layer(testit.TestLayers.API) +def test_with_layer(): + assert True ``` #### Parameterized test diff --git a/testit-adapter-pytest/README.md b/testit-adapter-pytest/README.md index 3e475ba..ab0be0b 100644 --- a/testit-adapter-pytest/README.md +++ b/testit-adapter-pytest/README.md @@ -114,6 +114,7 @@ Description of decorators: - `testit.labels` - labels listed in the autotest card - `testit.tags` - tags listed in the autotest card - `testit.links` - links listed in the autotest card +- `testit.layer` - test pyramid layer on the autotest card (source `Run`). Recommended values: `testit.TestLayers` (`E2E`, `UI`, `API`, `Contract`, `Integration`, `Component`, `Unit`); any non-empty string is accepted. Also supported as `@pytest.mark.layer("API")` - `testit.step` - the designation of the step called in the body of the test or other step - `testit.nameSpace` - directory in the TMS system (default - file's name of test) - `testit.className` - subdirectory in the TMS system (default - class's name of test) @@ -186,6 +187,20 @@ def oneTwoStep(): @pytest.mark.skipif(True, reason='Because i can') def test_skip(): assert True + + +# Layer via decorator +@testit.externalId('api_layer_test') +@testit.layer(testit.TestLayers.API) +def test_with_layer_decorator(): + assert True + + +# Layer via pytest mark +@testit.externalId('ui_layer_test') +@pytest.mark.layer("UI") +def test_with_layer_mark(): + assert True ``` #### Parameterized test diff --git a/testit-adapter-robotframework/README.md b/testit-adapter-robotframework/README.md index c149051..860c0e0 100644 --- a/testit-adapter-robotframework/README.md +++ b/testit-adapter-robotframework/README.md @@ -104,6 +104,7 @@ Description of tags: - `testit.links` - links listed in the autotest card - `testit.labels` - labels listed in the autotest card - `testit.tags` - tags listed in the autotest card +- `testit.layer` - test pyramid layer on the autotest card (source `Run`). Recommended values: `E2E`, `UI`, `API`, `Contract`, `Integration`, `Component`, `Unit`; any non-empty string is accepted - `testit.nameSpace` - directory in the TMS system (default - file's name of test) - `testit.className` - subdirectory in the TMS system (default - class's name of test) @@ -209,11 +210,20 @@ Test With All Params [Tags] testit.externalID:123 testit.title:${{'Different title'}} testit.displayName:${{'Different name'}} ... testit.description:${{'Different description'}} testit.workitemsID:${{[123, '456']}} ... testit.links:${{{'url': 'http://google.com', 'type':'Issue'}}} testit.labels:${{['smoke', 'lol']}} + ... testit.layer:API [Setup] Setup Log Something Log Another [Teardown] Teardown +Test With Layer + [Tags] testit.layer:API + [Setup] Setup + Do Something + Do Another Thing + Log I'am a step + [Teardown] Teardown + Test With Add Link [Setup] Setup Do Something