From 38dc7813ee6f7d68cbeb3213117432d07cbb33ad Mon Sep 17 00:00:00 2001 From: Dmitry Ermakovich Date: Fri, 22 Nov 2024 09:01:56 +0300 Subject: [PATCH] fix: TMS-29851: update docs --- README.md | 219 +++++++++++++++++- testit-adapter-kotest/Readme.md | 4 +- testit-adapter-kotest/build.gradle.kts | 2 +- .../ru/testit/listener/StepDescribeTests.kt | 142 ------------ testit-kotlin-commons/build.gradle.kts | 2 +- 5 files changed, 221 insertions(+), 148 deletions(-) delete mode 100644 testit-adapter-kotest/src/test/kotlin/ru/testit/listener/StepDescribeTests.kt diff --git a/README.md b/README.md index 39bb1b7..1213a71 100644 --- a/README.md +++ b/README.md @@ -11,5 +11,220 @@ Supported test frameworks : 1. [Kotest](https://kotest.io/docs/framework/framework.html) -# 🚀 Warning -- If value from @WorkItemIds annotation not found in TMS then test result will NOT be uploaded. \ No newline at end of file +#### 🚀 Warning +- If value from @WorkItemIds annotation not found in TMS then test result will NOT be uploaded. + + +## Metadata of autotest + +Use metadata to specify information about autotest. + + +Description of metadata: + +* `externalId` - unique internal autotest ID (used in Test IT) +* `links` - links listed in the autotest card +* `workItemIds` - a value that links autotests with manual tests. Receives the array of manual tests' IDs +* `attachments` - autotests attachments list +* `name` - internal autotest name (used in Test IT) +* `title` - autotest name specified in the autotest card. If not specified, the name from the displayName method is used +* `message` - autotest message +* `itemStatus` - autotest itemStatus +* `description` - autotest description specified in the autotest card +* `labels` - tags listed in the autotest card + + +All autotest metadata described with `TestItContext` class using `testCase.setContext()`: + +```kotlin +data class TestItContext ( + var uuid: String? = null, + var externalId: String? = null, + var links: MutableList? = null, + var workItemIds: MutableList? = null, + var attachments: MutableList? = null, + var name: String? = null, + var title: String? = null, + var message: String? = null, + var itemStatus: ItemStatus? = null, + var description: String? = null, + var parameters: MutableMap? = null, + var labels: MutableList