testit-adapter-robotframework 3.3.2__tar.gz → 3.4.0__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.

Potentially problematic release.


This version of testit-adapter-robotframework might be problematic. Click here for more details.

Files changed (15) hide show
  1. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/PKG-INFO +5 -3
  2. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/README.md +3 -1
  3. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/setup.py +2 -2
  4. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/TMSLibrary.py +1 -1
  5. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/listeners.py +3 -0
  6. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/models.py +2 -0
  7. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework.egg-info/PKG-INFO +5 -3
  8. testit_adapter_robotframework-3.4.0/src/testit_adapter_robotframework.egg-info/requires.txt +3 -0
  9. testit_adapter_robotframework-3.3.2/src/testit_adapter_robotframework.egg-info/requires.txt +0 -3
  10. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/setup.cfg +0 -0
  11. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/__init__.py +0 -0
  12. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework/utils.py +0 -0
  13. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework.egg-info/SOURCES.txt +0 -0
  14. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework.egg-info/dependency_links.txt +0 -0
  15. {testit_adapter_robotframework-3.3.2 → testit_adapter_robotframework-3.4.0}/src/testit_adapter_robotframework.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: testit-adapter-robotframework
3
- Version: 3.3.2
3
+ Version: 3.4.0
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==3.3.2
20
+ Requires-Dist: testit-python-commons==3.4.0
21
21
 
22
22
  # Test IT TMS adapter for Robot Framework
23
23
  ![Test IT](https://raw.githubusercontent.com/testit-tms/adapters-python/master/images/banner.png)
@@ -50,6 +50,7 @@ pip install testit-adapter-robotframework
50
50
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
51
51
  | 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 |
52
52
  | Mode of automatic updation links to test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will update links to test cases<br/>false - in this mode, the adapter will not update link to test cases | automaticUpdationLinksToTestCases | TMS_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES | tmsAutomaticUpdationLinksToTestCases |
53
+ | Mode of import type selection when launching autotests (**It's optional**). Default value - true. The adapter supports following modes:<br/>true - in this mode, the adapter will create/update each autotest in real time<br/>false - in this mode, the adapter will create/update multiple autotests | importRealtime | TMS_IMPORT_REALTIME | tmsImportRealtime |
53
54
  | Url of proxy server (**It's optional**) | tmsProxy | TMS_PROXY | tmsProxy |
54
55
  | Name of the configuration file If it is not provided, it is used default file name (**It's optional**) | - | TMS_CONFIG_FILE | tmsConfigFile |
55
56
 
@@ -68,6 +69,7 @@ adapterMode = ADAPTER_MODE
68
69
  certValidation = CERT_VALIDATION
69
70
  automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
70
71
  automaticUpdationLinksToTestCases = AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
72
+ importRealtime = IMPORT_REALTIME
71
73
 
72
74
  # This section are optional. It enables debug mode.
73
75
  [debug]
@@ -85,7 +87,7 @@ $ robot -v testit TEST_DIRECTORY
85
87
  Launch with command-line parameters (parameters are case-insensitive):
86
88
 
87
89
  ```
88
- $ 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 TEST_DIRECTORY
90
+ $ 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
89
91
  ```
90
92
 
91
93
  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)
@@ -29,6 +29,7 @@ pip install testit-adapter-robotframework
29
29
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
30
30
  | 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 |
31
31
  | Mode of automatic updation links to test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will update links to test cases<br/>false - in this mode, the adapter will not update link to test cases | automaticUpdationLinksToTestCases | TMS_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES | tmsAutomaticUpdationLinksToTestCases |
32
+ | Mode of import type selection when launching autotests (**It's optional**). Default value - true. The adapter supports following modes:<br/>true - in this mode, the adapter will create/update each autotest in real time<br/>false - in this mode, the adapter will create/update multiple autotests | importRealtime | TMS_IMPORT_REALTIME | tmsImportRealtime |
32
33
  | Url of proxy server (**It's optional**) | tmsProxy | TMS_PROXY | tmsProxy |
33
34
  | Name of the configuration file If it is not provided, it is used default file name (**It's optional**) | - | TMS_CONFIG_FILE | tmsConfigFile |
34
35
 
@@ -47,6 +48,7 @@ adapterMode = ADAPTER_MODE
47
48
  certValidation = CERT_VALIDATION
48
49
  automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
49
50
  automaticUpdationLinksToTestCases = AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
51
+ importRealtime = IMPORT_REALTIME
50
52
 
51
53
  # This section are optional. It enables debug mode.
52
54
  [debug]
@@ -64,7 +66,7 @@ $ robot -v testit TEST_DIRECTORY
64
66
  Launch with command-line parameters (parameters are case-insensitive):
65
67
 
66
68
  ```
67
- $ 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 TEST_DIRECTORY
69
+ $ 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
68
70
  ```
69
71
 
70
72
  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)
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name='testit-adapter-robotframework',
5
- version='3.3.2',
5
+ version='3.4.0',
6
6
  description='Robot Framework adapter for Test IT',
7
7
  long_description=open('README.md', "r").read(),
8
8
  long_description_content_type="text/markdown",
@@ -23,5 +23,5 @@ setup(
23
23
  py_modules=['testit_adapter_robotframework'],
24
24
  packages=find_packages(where='src'),
25
25
  package_dir={'': 'src'},
26
- install_requires=['attrs', 'robotframework', 'testit-python-commons==3.3.2']
26
+ install_requires=['attrs', 'robotframework', 'testit-python-commons==3.4.0']
27
27
  )
@@ -42,7 +42,7 @@ class TMSLibrary:
42
42
  if self.enabled:
43
43
  cli_params = ["tmsUrl", "tmsPrivateToken", "tmsProjectId", "tmsConfigurationId", "tmsTestRunId",
44
44
  "tmsProxy", "tmsTestRunName", "tmsAdapterMode", "tmsConfigFile", "tmsCertValidation",
45
- "tmsAutomaticCreationTestCases", "tmsAutomaticUpdationLinksToTestCases"]
45
+ "tmsAutomaticCreationTestCases", "tmsAutomaticUpdationLinksToTestCases", "tmsImportRealtime"]
46
46
  option = Option(**{param: built_in.get_variable_value(f'${{{param}}}', None) for param in cli_params})
47
47
  self.adapter_manager = TmsPluginManager.get_adapter_manager(option)
48
48
  pabot_index = built_in.get_variable_value('${PABOTQUEUEINDEX}', None)
@@ -71,6 +71,9 @@ class AutotestAdapter:
71
71
  self.adapter_manager.write_test(
72
72
  convert_executable_test_to_test_result_model(self.active_test.order()))
73
73
 
74
+ def close(self):
75
+ self.adapter_manager.write_tests()
76
+
74
77
 
75
78
  class TestRunAdapter:
76
79
  ROBOT_LISTENER_API_VERSION = 3
@@ -215,3 +215,5 @@ class Option:
215
215
  self.set_automatic_creation_test_cases = kwargs.get('tmsAutomaticCreationTestCases', None)
216
216
  if kwargs.get('tmsAutomaticUpdationLinksToTestCases', None):
217
217
  self.set_automatic_updation_links_to_test_cases = kwargs.get('tmsAutomaticUpdationLinksToTestCases', None)
218
+ if kwargs.get('tmsImportRealtime', None):
219
+ self.set_import_realtime = kwargs.get('tmsImportRealtime', None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: testit-adapter-robotframework
3
- Version: 3.3.2
3
+ Version: 3.4.0
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==3.3.2
20
+ Requires-Dist: testit-python-commons==3.4.0
21
21
 
22
22
  # Test IT TMS adapter for Robot Framework
23
23
  ![Test IT](https://raw.githubusercontent.com/testit-tms/adapters-python/master/images/banner.png)
@@ -50,6 +50,7 @@ pip install testit-adapter-robotframework
50
50
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
51
51
  | 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 |
52
52
  | Mode of automatic updation links to test cases (**It's optional**). Default value - false. The adapter supports following modes:<br/>true - in this mode, the adapter will update links to test cases<br/>false - in this mode, the adapter will not update link to test cases | automaticUpdationLinksToTestCases | TMS_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES | tmsAutomaticUpdationLinksToTestCases |
53
+ | Mode of import type selection when launching autotests (**It's optional**). Default value - true. The adapter supports following modes:<br/>true - in this mode, the adapter will create/update each autotest in real time<br/>false - in this mode, the adapter will create/update multiple autotests | importRealtime | TMS_IMPORT_REALTIME | tmsImportRealtime |
53
54
  | Url of proxy server (**It's optional**) | tmsProxy | TMS_PROXY | tmsProxy |
54
55
  | Name of the configuration file If it is not provided, it is used default file name (**It's optional**) | - | TMS_CONFIG_FILE | tmsConfigFile |
55
56
 
@@ -68,6 +69,7 @@ adapterMode = ADAPTER_MODE
68
69
  certValidation = CERT_VALIDATION
69
70
  automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
70
71
  automaticUpdationLinksToTestCases = AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
72
+ importRealtime = IMPORT_REALTIME
71
73
 
72
74
  # This section are optional. It enables debug mode.
73
75
  [debug]
@@ -85,7 +87,7 @@ $ robot -v testit TEST_DIRECTORY
85
87
  Launch with command-line parameters (parameters are case-insensitive):
86
88
 
87
89
  ```
88
- $ 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 TEST_DIRECTORY
90
+ $ 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
89
91
  ```
90
92
 
91
93
  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==3.4.0
@@ -1,3 +0,0 @@
1
- attrs
2
- robotframework
3
- testit-python-commons==3.3.2