testit-adapter-behave 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.
Files changed (22) hide show
  1. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/PKG-INFO +5 -3
  2. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/README.md +3 -1
  3. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/setup.py +2 -2
  4. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/formatter.py +3 -0
  5. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/listener.py +3 -0
  6. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/option.py +1 -0
  7. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/utils.py +3 -0
  8. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave.egg-info/PKG-INFO +5 -3
  9. testit_adapter_behave-3.4.0/src/testit_adapter_behave.egg-info/requires.txt +3 -0
  10. testit_adapter_behave-3.3.2/src/testit_adapter_behave.egg-info/requires.txt +0 -3
  11. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/setup.cfg +0 -0
  12. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/__init__.py +0 -0
  13. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/__init__.py +0 -0
  14. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/label.py +0 -0
  15. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/tags.py +0 -0
  16. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/test_result_step.py +0 -0
  17. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/url_link.py +0 -0
  18. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/scenario_parser.py +0 -0
  19. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/tags_parser.py +0 -0
  20. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave.egg-info/SOURCES.txt +0 -0
  21. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave.egg-info/dependency_links.txt +0 -0
  22. {testit_adapter_behave-3.3.2 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: testit-adapter-behave
3
- Version: 3.3.2
3
+ Version: 3.4.0
4
4
  Summary: Behave adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: behave
19
- Requires-Dist: testit-python-commons==3.3.2
19
+ Requires-Dist: testit-python-commons==3.4.0
20
20
  Requires-Dist: attrs
21
21
 
22
22
  # Test IT TMS adapter for Behave
@@ -52,6 +52,7 @@ pip install testit-adapter-behave
52
52
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
53
53
  | 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 |
54
54
  | 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 |
55
+ | 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 |
55
56
  | Url of proxy server (**It's optional**) | tmsProxy | TMS_PROXY | tmsProxy |
56
57
  | Name of the configuration file If it is not provided, it is used default file name (**It's optional**) | - | TMS_CONFIG_FILE | tmsConfigFile |
57
58
 
@@ -70,6 +71,7 @@ adapterMode = ADAPTER_MODE
70
71
  certValidation = CERT_VALIDATION
71
72
  automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
72
73
  automaticUpdationLinksToTestCases = AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
74
+ importRealtime = IMPORT_REALTIME
73
75
 
74
76
  # This section are optional. It enables debug mode.
75
77
  [debug]
@@ -91,7 +93,7 @@ $ behave -f testit_adapter_behave.formatter:AdapterFormatter -D tmsUrl=URL -D tm
91
93
  tmsProjectId=PROJECT_ID -D tmsConfigurationId=CONFIGURATION_ID -D tmsTestRunId=TEST_RUN_ID -D tmsAdapterMode=ADAPTER_MODE -D
92
94
  tmsTestRunName=TEST_RUN_NAME -D tmsProxy='{"http":"http://localhost:8888","https":"http://localhost:8888"}' -D
93
95
  tmsCertValidation=CERT_VALIDATION -D tmsAutomaticCreationTestCases=AUTOMATIC_CREATION_TEST_CASES -D
94
- tmsAutomaticUpdationLinksToTestCases=AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
96
+ tmsAutomaticUpdationLinksToTestCases=AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -D tmsImportRealtime=IMPORT_REALTIME
95
97
  ```
96
98
 
97
99
  If you want to enable debug mode then
@@ -31,6 +31,7 @@ pip install testit-adapter-behave
31
31
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
32
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 |
33
33
  | 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 |
34
+ | 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 |
34
35
  | Url of proxy server (**It's optional**) | tmsProxy | TMS_PROXY | tmsProxy |
35
36
  | Name of the configuration file If it is not provided, it is used default file name (**It's optional**) | - | TMS_CONFIG_FILE | tmsConfigFile |
36
37
 
@@ -49,6 +50,7 @@ adapterMode = ADAPTER_MODE
49
50
  certValidation = CERT_VALIDATION
50
51
  automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
51
52
  automaticUpdationLinksToTestCases = AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
53
+ importRealtime = IMPORT_REALTIME
52
54
 
53
55
  # This section are optional. It enables debug mode.
54
56
  [debug]
@@ -70,7 +72,7 @@ $ behave -f testit_adapter_behave.formatter:AdapterFormatter -D tmsUrl=URL -D tm
70
72
  tmsProjectId=PROJECT_ID -D tmsConfigurationId=CONFIGURATION_ID -D tmsTestRunId=TEST_RUN_ID -D tmsAdapterMode=ADAPTER_MODE -D
71
73
  tmsTestRunName=TEST_RUN_NAME -D tmsProxy='{"http":"http://localhost:8888","https":"http://localhost:8888"}' -D
72
74
  tmsCertValidation=CERT_VALIDATION -D tmsAutomaticCreationTestCases=AUTOMATIC_CREATION_TEST_CASES -D
73
- tmsAutomaticUpdationLinksToTestCases=AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
75
+ tmsAutomaticUpdationLinksToTestCases=AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -D tmsImportRealtime=IMPORT_REALTIME
74
76
  ```
75
77
 
76
78
  If you want to enable debug mode then
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name='testit-adapter-behave',
5
- version='3.3.2',
5
+ version='3.4.0',
6
6
  description='Behave adapter for Test IT',
7
7
  long_description=open('README.md', "r").read(),
8
8
  long_description_content_type="text/markdown",
@@ -25,6 +25,6 @@ setup(
25
25
  package_dir={'': 'src'},
26
26
  install_requires=[
27
27
  'behave',
28
- 'testit-python-commons==3.3.2',
28
+ 'testit-python-commons==3.4.0',
29
29
  'attrs'],
30
30
  )
@@ -44,3 +44,6 @@ class AdapterFormatter(Formatter):
44
44
 
45
45
  def result(self, step):
46
46
  self.__listener.get_step_result(step)
47
+
48
+ def close_stream(self):
49
+ self.__listener.stop_launch()
@@ -27,6 +27,9 @@ class AdapterListener(object):
27
27
 
28
28
  self.__adapter_manager.set_test_run_id(test_run_id)
29
29
 
30
+ def stop_launch(self):
31
+ self.__adapter_manager.write_tests()
32
+
30
33
  def get_tests_for_launch(self):
31
34
  return self.__adapter_manager.get_autotests_for_launch()
32
35
 
@@ -16,3 +16,4 @@ class Option(object):
16
16
  set_cert_validation = attrib(default=None)
17
17
  set_automatic_creation_test_cases = attrib(default=None)
18
18
  set_automatic_updation_links_to_test_cases = attrib(default=None)
19
+ set_import_realtime = attrib(default=None)
@@ -54,6 +54,9 @@ def parse_userdata(userdata):
54
54
  if 'tmsAutomaticUpdationLinksToTestCases' in userdata:
55
55
  option.set_automatic_updation_links_to_test_cases = userdata['tmsAutomaticUpdationLinksToTestCases']
56
56
 
57
+ if 'tmsImportRealtime' in userdata:
58
+ option.set_import_realtime = userdata['tmsImportRealtime']
59
+
57
60
  return option
58
61
 
59
62
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: testit-adapter-behave
3
- Version: 3.3.2
3
+ Version: 3.4.0
4
4
  Summary: Behave adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: behave
19
- Requires-Dist: testit-python-commons==3.3.2
19
+ Requires-Dist: testit-python-commons==3.4.0
20
20
  Requires-Dist: attrs
21
21
 
22
22
  # Test IT TMS adapter for Behave
@@ -52,6 +52,7 @@ pip install testit-adapter-behave
52
52
  | It enables/disables certificate validation (**It's optional**). Default value - true | certValidation | TMS_CERT_VALIDATION | tmsCertValidation |
53
53
  | 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 |
54
54
  | 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 |
55
+ | 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 |
55
56
  | Url of proxy server (**It's optional**) | tmsProxy | TMS_PROXY | tmsProxy |
56
57
  | Name of the configuration file If it is not provided, it is used default file name (**It's optional**) | - | TMS_CONFIG_FILE | tmsConfigFile |
57
58
 
@@ -70,6 +71,7 @@ adapterMode = ADAPTER_MODE
70
71
  certValidation = CERT_VALIDATION
71
72
  automaticCreationTestCases = AUTOMATIC_CREATION_TEST_CASES
72
73
  automaticUpdationLinksToTestCases = AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
74
+ importRealtime = IMPORT_REALTIME
73
75
 
74
76
  # This section are optional. It enables debug mode.
75
77
  [debug]
@@ -91,7 +93,7 @@ $ behave -f testit_adapter_behave.formatter:AdapterFormatter -D tmsUrl=URL -D tm
91
93
  tmsProjectId=PROJECT_ID -D tmsConfigurationId=CONFIGURATION_ID -D tmsTestRunId=TEST_RUN_ID -D tmsAdapterMode=ADAPTER_MODE -D
92
94
  tmsTestRunName=TEST_RUN_NAME -D tmsProxy='{"http":"http://localhost:8888","https":"http://localhost:8888"}' -D
93
95
  tmsCertValidation=CERT_VALIDATION -D tmsAutomaticCreationTestCases=AUTOMATIC_CREATION_TEST_CASES -D
94
- tmsAutomaticUpdationLinksToTestCases=AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
96
+ tmsAutomaticUpdationLinksToTestCases=AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES -D tmsImportRealtime=IMPORT_REALTIME
95
97
  ```
96
98
 
97
99
  If you want to enable debug mode then
@@ -0,0 +1,3 @@
1
+ behave
2
+ testit-python-commons==3.4.0
3
+ attrs
@@ -1,3 +0,0 @@
1
- behave
2
- testit-python-commons==3.3.2
3
- attrs