testit-adapter-robotframework 5.1.0__tar.gz → 5.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/PKG-INFO +7 -3
  2. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/README.md +5 -1
  3. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/setup.py +1 -1
  4. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/src/testit_adapter_robotframework/TMSLibrary.py +2 -1
  5. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/src/testit_adapter_robotframework/models.py +4 -0
  6. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/src/testit_adapter_robotframework.egg-info/PKG-INFO +7 -3
  7. testit_adapter_robotframework-5.1.1/src/testit_adapter_robotframework.egg-info/requires.txt +3 -0
  8. testit_adapter_robotframework-5.1.0/src/testit_adapter_robotframework.egg-info/requires.txt +0 -3
  9. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/setup.cfg +0 -0
  10. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/src/testit_adapter_robotframework/__init__.py +0 -0
  11. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/src/testit_adapter_robotframework/listeners.py +0 -0
  12. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/src/testit_adapter_robotframework/utils.py +0 -0
  13. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/src/testit_adapter_robotframework.egg-info/SOURCES.txt +0 -0
  14. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/src/testit_adapter_robotframework.egg-info/dependency_links.txt +0 -0
  15. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/src/testit_adapter_robotframework.egg-info/top_level.txt +0 -0
  16. {testit_adapter_robotframework-5.1.0 → testit_adapter_robotframework-5.1.1}/tests/test_listeners.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-adapter-robotframework
3
- Version: 5.1.0
3
+ Version: 5.1.1
4
4
  Summary: Robot Framework adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: attrs
19
19
  Requires-Dist: robotframework
20
- Requires-Dist: testit-python-commons==5.1.0
20
+ Requires-Dist: testit-python-commons==5.1.1
21
21
  Dynamic: author
22
22
  Dynamic: author-email
23
23
  Dynamic: classifier
@@ -55,6 +55,8 @@ pip install testit-adapter-robotframework
55
55
  | ID of configuration in TMS instance [How to getting configuration ID?](https://github.com/testit-tms/.github/tree/main/configuration#configurationid) | configurationId | TMS_CONFIGURATION_ID | tmsConfigurationId |
56
56
  | ID of the created test run in TMS instance.<br/>It's necessary for **adapterMode** 0 or 1 | testRunId | TMS_TEST_RUN_ID | tmsTestRunId |
57
57
  | Parameter for specifying the name of test run in TMS instance (**It's optional**). If it is not provided, it is created automatically | testRunName | TMS_TEST_RUN_NAME | tmsTestRunName |
58
+ | Test run tags (**It's optional**). Comma-separated list or JSON array, e.g. `smoke,nightly` or `["smoke","nightly"]` | testRunTags | TMS_TEST_RUN_TAGS | tmsTestRunTags |
59
+ | Test run links (**It's optional**). JSON array of objects with required `url` and optional `title`, `description`, `type`. Applied at create/start. Link types: `Related`, `BlockedBy`, `Defect`, `Issue`, `Requirement`, `Repository` | testRunLinks | TMS_TEST_RUN_LINKS | tmsTestRunLinks |
58
60
  | Adapter mode. Default value - 0. The adapter supports following modes:<br/>0 - in this mode, the adapter filters tests by test run ID and configuration ID, and sends the results to the test run<br/>1 - in this mode, the adapter sends all results to the test run without filtering or [with filtering CLI](#run-with-filter)<br/>2 - in this mode, the adapter creates a new test run and sends results to the new test run | adapterMode | TMS_ADAPTER_MODE | tmsAdapterMode |
59
61
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
60
62
  | Mode of automatic creation test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest)<br/>false - in this mode, the adapter will not create a test case | automaticCreationTestCases | TMS_AUTOMATIC_CREATION_TEST_CASES | tmsAutomaticCreationTestCases |
@@ -75,6 +77,8 @@ projectId = PROJECT_ID
75
77
  configurationId = CONFIGURATION_ID
76
78
  testRunId = TEST_RUN_ID
77
79
  testRunName = TEST_RUN_NAME
80
+ testRunTags = smoke,nightly
81
+ testRunLinks = [{"url":"https://gitlab.example.com/group/project/-/jobs/12345","title":"CI Job","type":"Related"}]
78
82
  adapterMode = ADAPTER_MODE
79
83
  certValidation = CERT_VALIDATION
80
84
  automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
@@ -97,7 +101,7 @@ $ robot -v testit TEST_DIRECTORY
97
101
  Launch with command-line parameters (parameters are case-insensitive):
98
102
 
99
103
  ```
100
- $ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -v tmsImportRealtime:IMPORT_REALTIME TEST_DIRECTORY
104
+ $ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsTestRunTags:smoke,nightly -v tmsTestRunLinks:'[{"url":"https://ci.example/jobs/1","title":"CI Job","type":"Related"}]' -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -v tmsImportRealtime:IMPORT_REALTIME TEST_DIRECTORY
101
105
  ```
102
106
 
103
107
  If you want to enable debug mode then see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
@@ -25,6 +25,8 @@ pip install testit-adapter-robotframework
25
25
  | ID of configuration in TMS instance [How to getting configuration ID?](https://github.com/testit-tms/.github/tree/main/configuration#configurationid) | configurationId | TMS_CONFIGURATION_ID | tmsConfigurationId |
26
26
  | ID of the created test run in TMS instance.<br/>It's necessary for **adapterMode** 0 or 1 | testRunId | TMS_TEST_RUN_ID | tmsTestRunId |
27
27
  | Parameter for specifying the name of test run in TMS instance (**It's optional**). If it is not provided, it is created automatically | testRunName | TMS_TEST_RUN_NAME | tmsTestRunName |
28
+ | Test run tags (**It's optional**). Comma-separated list or JSON array, e.g. `smoke,nightly` or `["smoke","nightly"]` | testRunTags | TMS_TEST_RUN_TAGS | tmsTestRunTags |
29
+ | Test run links (**It's optional**). JSON array of objects with required `url` and optional `title`, `description`, `type`. Applied at create/start. Link types: `Related`, `BlockedBy`, `Defect`, `Issue`, `Requirement`, `Repository` | testRunLinks | TMS_TEST_RUN_LINKS | tmsTestRunLinks |
28
30
  | Adapter mode. Default value - 0. The adapter supports following modes:<br/>0 - in this mode, the adapter filters tests by test run ID and configuration ID, and sends the results to the test run<br/>1 - in this mode, the adapter sends all results to the test run without filtering or [with filtering CLI](#run-with-filter)<br/>2 - in this mode, the adapter creates a new test run and sends results to the new test run | adapterMode | TMS_ADAPTER_MODE | tmsAdapterMode |
29
31
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
30
32
  | Mode of automatic creation test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest)<br/>false - in this mode, the adapter will not create a test case | automaticCreationTestCases | TMS_AUTOMATIC_CREATION_TEST_CASES | tmsAutomaticCreationTestCases |
@@ -45,6 +47,8 @@ projectId = PROJECT_ID
45
47
  configurationId = CONFIGURATION_ID
46
48
  testRunId = TEST_RUN_ID
47
49
  testRunName = TEST_RUN_NAME
50
+ testRunTags = smoke,nightly
51
+ testRunLinks = [{"url":"https://gitlab.example.com/group/project/-/jobs/12345","title":"CI Job","type":"Related"}]
48
52
  adapterMode = ADAPTER_MODE
49
53
  certValidation = CERT_VALIDATION
50
54
  automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
@@ -67,7 +71,7 @@ $ robot -v testit TEST_DIRECTORY
67
71
  Launch with command-line parameters (parameters are case-insensitive):
68
72
 
69
73
  ```
70
- $ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -v tmsImportRealtime:IMPORT_REALTIME TEST_DIRECTORY
74
+ $ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsTestRunTags:smoke,nightly -v tmsTestRunLinks:'[{"url":"https://ci.example/jobs/1","title":"CI Job","type":"Related"}]' -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -v tmsImportRealtime:IMPORT_REALTIME TEST_DIRECTORY
71
75
  ```
72
76
 
73
77
  If you want to enable debug mode then see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
@@ -1,6 +1,6 @@
1
1
  from setuptools import find_packages, setup
2
2
 
3
- VERSION = "5.1.0"
3
+ VERSION = "5.1.1"
4
4
 
5
5
  setup(
6
6
  name='testit-adapter-robotframework',
@@ -41,7 +41,8 @@ class TMSLibrary:
41
41
  self.enabled = built_in.get_variable_value("${testit}", None) is not None
42
42
  if self.enabled:
43
43
  cli_params = ["tmsUrl", "tmsPrivateToken", "tmsProjectId", "tmsConfigurationId", "tmsTestRunId",
44
- "tmsProxy", "tmsTestRunName", "tmsAdapterMode", "tmsConfigFile", "tmsCertValidation",
44
+ "tmsProxy", "tmsTestRunName", "tmsTestRunTags", "tmsTestRunLinks", "tmsAdapterMode",
45
+ "tmsConfigFile", "tmsCertValidation",
45
46
  "tmsAutomaticCreationTestCases", "tmsAutomaticUpdationLinksToTestCases", "tmsImportRealtime"]
46
47
  option = Option(**{param: built_in.get_variable_value(f'${{{param}}}', None) for param in cli_params})
47
48
  self.adapter_manager = TmsPluginManager.get_adapter_manager(option)
@@ -233,6 +233,10 @@ class Option:
233
233
  self.set_tms_proxy = kwargs.get('tmsProxy', None)
234
234
  if kwargs.get('tmsTestRunName', None):
235
235
  self.set_test_run_name = kwargs.get('tmsTestRunName', None)
236
+ if kwargs.get('tmsTestRunTags', None):
237
+ self.set_test_run_tags = kwargs.get('tmsTestRunTags', None)
238
+ if kwargs.get('tmsTestRunLinks', None):
239
+ self.set_test_run_links = kwargs.get('tmsTestRunLinks', None)
236
240
  if kwargs.get('tmsAdapterMode', None):
237
241
  self.set_adapter_mode = kwargs.get('tmsAdapterMode', None)
238
242
  if kwargs.get('tmsConfigFile', None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-adapter-robotframework
3
- Version: 5.1.0
3
+ Version: 5.1.1
4
4
  Summary: Robot Framework adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: attrs
19
19
  Requires-Dist: robotframework
20
- Requires-Dist: testit-python-commons==5.1.0
20
+ Requires-Dist: testit-python-commons==5.1.1
21
21
  Dynamic: author
22
22
  Dynamic: author-email
23
23
  Dynamic: classifier
@@ -55,6 +55,8 @@ pip install testit-adapter-robotframework
55
55
  | ID of configuration in TMS instance [How to getting configuration ID?](https://github.com/testit-tms/.github/tree/main/configuration#configurationid) | configurationId | TMS_CONFIGURATION_ID | tmsConfigurationId |
56
56
  | ID of the created test run in TMS instance.<br/>It's necessary for **adapterMode** 0 or 1 | testRunId | TMS_TEST_RUN_ID | tmsTestRunId |
57
57
  | Parameter for specifying the name of test run in TMS instance (**It's optional**). If it is not provided, it is created automatically | testRunName | TMS_TEST_RUN_NAME | tmsTestRunName |
58
+ | Test run tags (**It's optional**). Comma-separated list or JSON array, e.g. `smoke,nightly` or `["smoke","nightly"]` | testRunTags | TMS_TEST_RUN_TAGS | tmsTestRunTags |
59
+ | Test run links (**It's optional**). JSON array of objects with required `url` and optional `title`, `description`, `type`. Applied at create/start. Link types: `Related`, `BlockedBy`, `Defect`, `Issue`, `Requirement`, `Repository` | testRunLinks | TMS_TEST_RUN_LINKS | tmsTestRunLinks |
58
60
  | Adapter mode. Default value - 0. The adapter supports following modes:<br/>0 - in this mode, the adapter filters tests by test run ID and configuration ID, and sends the results to the test run<br/>1 - in this mode, the adapter sends all results to the test run without filtering or [with filtering CLI](#run-with-filter)<br/>2 - in this mode, the adapter creates a new test run and sends results to the new test run | adapterMode | TMS_ADAPTER_MODE | tmsAdapterMode |
59
61
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
60
62
  | Mode of automatic creation test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will create a test case linked to the created autotest (not to the updated autotest)<br/>false - in this mode, the adapter will not create a test case | automaticCreationTestCases | TMS_AUTOMATIC_CREATION_TEST_CASES | tmsAutomaticCreationTestCases |
@@ -75,6 +77,8 @@ projectId = PROJECT_ID
75
77
  configurationId = CONFIGURATION_ID
76
78
  testRunId = TEST_RUN_ID
77
79
  testRunName = TEST_RUN_NAME
80
+ testRunTags = smoke,nightly
81
+ testRunLinks = [{"url":"https://gitlab.example.com/group/project/-/jobs/12345","title":"CI Job","type":"Related"}]
78
82
  adapterMode = ADAPTER_MODE
79
83
  certValidation = CERT_VALIDATION
80
84
  automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
@@ -97,7 +101,7 @@ $ robot -v testit TEST_DIRECTORY
97
101
  Launch with command-line parameters (parameters are case-insensitive):
98
102
 
99
103
  ```
100
- $ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -v tmsImportRealtime:IMPORT_REALTIME TEST_DIRECTORY
104
+ $ robot -v testit -v tmsUrl:URL -v tmsPrivateToken:USER_PRIVATE_TOKEN -v tmsProjectId:PROJECT_ID -v tmsConfigurationId:CONFIGURATION_ID -v tmsTestRunId:TEST_RUN_ID -v tmsTestRunName:TEST_RUN_NAME -v tmsTestRunTags:smoke,nightly -v tmsTestRunLinks:'[{"url":"https://ci.example/jobs/1","title":"CI Job","type":"Related"}]' -v tmsAdapterMode:ADAPTER_MODE -v tmsProxy:'{"http":"http://localhost:8888","https":"http://localhost:8888"}' -v tmsConfigFile:<optional file> -v tmsCertValidation:CERT_VALIDATION -v tmsAutomaticCreationTestCases:AUTOMATIC_CREATION_TEST_CASES -v tmsAutomaticUpdationLinksToTestCases:AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -v tmsImportRealtime:IMPORT_REALTIME TEST_DIRECTORY
101
105
  ```
102
106
 
103
107
  If you want to enable debug mode then see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
@@ -0,0 +1,3 @@
1
+ attrs
2
+ robotframework
3
+ testit-python-commons==5.1.1
@@ -1,3 +0,0 @@
1
- attrs
2
- robotframework
3
- testit-python-commons==5.1.0