diff --git a/Readme.md b/Readme.md index f8a67a0c..e8b3c021 100644 --- a/Readme.md +++ b/Readme.md @@ -112,4 +112,4 @@ curl -v http://127.0.0.1:49152/wait-completion?testRunId=${{ env.TMS_TEST_RUN_ID # ๐Ÿš€ Warning Since 2.2.0 version: -- If value from @WorkItemIds annotation not found in TMS then test result will NOT be uploaded. +- If value from @WorkItemId annotation not found in TMS then test result will NOT be uploaded. diff --git a/gradle.properties b/gradle.properties index 24d7435a..16ca5998 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=4.2.0 +version=4.2.1 org.gradle.daemon=true org.gradle.parallel=true diff --git a/testit-adapter-cucumber4/Readme.md b/testit-adapter-cucumber4/Readme.md index c3baf9af..84cde580 100644 --- a/testit-adapter-cucumber4/Readme.md +++ b/testit-adapter-cucumber4/Readme.md @@ -310,7 +310,8 @@ $ maven test -DtmsTestRunId=6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -DtmsAdapterMod Use tags to specify information about autotest. Description of tags: -- `WorkItemIds` - a method that links autotests with manual tests. Receives the array of manual tests' IDs +- `WorkItemId` - a method that links an autotest with a manual test. Receives a single globalId +- `WorkItemIds` - deprecated, use `WorkItemId` instead - `DisplayName` - internal autotest name (used in Test IT) - `ExternalId` - unique internal autotest ID (used in Test IT) - `Title` - autotest name specified in the autotest card. If not specified, the name from the displayName method is used @@ -327,7 +328,8 @@ Description of methods: - `Adapter.addLinks` - add links to the autotest result. - `Adapter.addAttachments` - add attachments to the autotest result. - `Adapter.addMessage` - add message to the autotest result. -- `Adapter.addWorkItemIds` - a dynamic method that links autotests with manual tests. Receives the array of manual tests' IDs +- `Adapter.addWorkItemId` - a dynamic method that links an autotest with a manual test. Receives a single globalId +- `Adapter.addWorkItemIds` - deprecated, use `Adapter.addWorkItemId` instead - `Adapter.addDisplayName` - a dynamic method for adding internal autotest name (used in Test IT) - `Adapter.addExternalId` - a dynamic method for adding unique internal autotest ID (used in Test IT) - `Adapter.addTitle` - a dynamic method for adding autotest name specified in the autotest card or the step. If not specified, the name from the displayName method is used @@ -414,7 +416,7 @@ Feature: Sample @ExternalId=with_all_annotations @DisplayName=Test_with_all_annotations - @WorkItemIds=123 + @WorkItemId=123 @Title=Title_in_the_autotest_card @Description=Test_with_all_annotations @Tags=Tag1,Tag2 diff --git a/testit-adapter-cucumber4/src/main/java/ru/testit/listener/TagParser.java b/testit-adapter-cucumber4/src/main/java/ru/testit/listener/TagParser.java index 2f57cdb9..d2d97fcb 100644 --- a/testit-adapter-cucumber4/src/main/java/ru/testit/listener/TagParser.java +++ b/testit-adapter-cucumber4/src/main/java/ru/testit/listener/TagParser.java @@ -24,12 +24,14 @@ public class TagParser { private static final String TAGS = "@TAGS"; private static final String LINKS = "@LINKS"; private static final String WORK_ITEM_IDS = "@WORKITEMIDS"; + private static final String WORK_ITEM_ID = "@WORKITEMID"; private static final String LAYER = "@LAYER"; private final List