testit-adapter-behave 3.3.1__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.
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/PKG-INFO +20 -3
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/README.md +18 -1
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/setup.py +2 -2
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/formatter.py +3 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/listener.py +3 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/option.py +1 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/scenario_parser.py +1 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/utils.py +5 -1
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave.egg-info/PKG-INFO +20 -3
- testit_adapter_behave-3.4.0/src/testit_adapter_behave.egg-info/requires.txt +3 -0
- testit_adapter_behave-3.3.1/src/testit_adapter_behave.egg-info/requires.txt +0 -3
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/setup.cfg +0 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/__init__.py +0 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/__init__.py +0 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/label.py +0 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/tags.py +0 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/test_result_step.py +0 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/url_link.py +0 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/tags_parser.py +0 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave.egg-info/SOURCES.txt +0 -0
- {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave.egg-info/dependency_links.txt +0 -0
- {testit_adapter_behave-3.3.1 → 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
|
+
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.
|
|
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,12 +93,27 @@ $ 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
|
|
98
100
|
see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
|
|
99
101
|
|
|
102
|
+
#### Run with filter
|
|
103
|
+
To create filter by autotests you can use the Test IT CLI (use adapterMode 1 for run with filter):
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
$ export TMS_TOKEN=<YOUR_TOKEN>
|
|
107
|
+
$ testit autotests_filter
|
|
108
|
+
--url https://tms.testit.software \
|
|
109
|
+
--configuration-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
|
|
110
|
+
--testrun-id 6d4ac4b7-dd67-4805-b879-18da0b89d4a8 \
|
|
111
|
+
--framework behave \
|
|
112
|
+
--output tmp/filter.txt
|
|
113
|
+
|
|
114
|
+
$ behave "$(cat tmp/filter.txt)" -D tmsTestRunId=6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -D tmsAdapterMode=1 -f testit_adapter_behave.formatter:AdapterFormatter
|
|
115
|
+
```
|
|
116
|
+
|
|
100
117
|
### Tags
|
|
101
118
|
|
|
102
119
|
Use tags to specify information about autotest.
|
|
@@ -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,12 +72,27 @@ $ 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
|
|
77
79
|
see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
|
|
78
80
|
|
|
81
|
+
#### Run with filter
|
|
82
|
+
To create filter by autotests you can use the Test IT CLI (use adapterMode 1 for run with filter):
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
$ export TMS_TOKEN=<YOUR_TOKEN>
|
|
86
|
+
$ testit autotests_filter
|
|
87
|
+
--url https://tms.testit.software \
|
|
88
|
+
--configuration-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
|
|
89
|
+
--testrun-id 6d4ac4b7-dd67-4805-b879-18da0b89d4a8 \
|
|
90
|
+
--framework behave \
|
|
91
|
+
--output tmp/filter.txt
|
|
92
|
+
|
|
93
|
+
$ behave "$(cat tmp/filter.txt)" -D tmsTestRunId=6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -D tmsAdapterMode=1 -f testit_adapter_behave.formatter:AdapterFormatter
|
|
94
|
+
```
|
|
95
|
+
|
|
79
96
|
### Tags
|
|
80
97
|
|
|
81
98
|
Use tags to specify information about autotest.
|
|
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='testit-adapter-behave',
|
|
5
|
-
version='3.
|
|
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.
|
|
28
|
+
'testit-python-commons==3.4.0',
|
|
29
29
|
'attrs'],
|
|
30
30
|
)
|
{testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/listener.py
RENAMED
|
@@ -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
|
|
{testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/utils.py
RENAMED
|
@@ -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
|
|
|
@@ -141,7 +144,8 @@ def convert_executable_test_to_test_result_model(executable_test: dict) -> TestR
|
|
|
141
144
|
.set_result_links(executable_test['resultLinks'])\
|
|
142
145
|
.set_labels(executable_test['labels'])\
|
|
143
146
|
.set_work_item_ids(executable_test['workItemsID'])\
|
|
144
|
-
.set_message(executable_test['message'])
|
|
147
|
+
.set_message(executable_test['message'])\
|
|
148
|
+
.set_external_key(executable_test['externalKey'])
|
|
145
149
|
|
|
146
150
|
|
|
147
151
|
def convert_step_to_step_result_model(step: dict, nested_step_results: typing.List[StepResult]) -> StepResult:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: testit-adapter-behave
|
|
3
|
-
Version: 3.
|
|
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.
|
|
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,12 +93,27 @@ $ 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
|
|
98
100
|
see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
|
|
99
101
|
|
|
102
|
+
#### Run with filter
|
|
103
|
+
To create filter by autotests you can use the Test IT CLI (use adapterMode 1 for run with filter):
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
$ export TMS_TOKEN=<YOUR_TOKEN>
|
|
107
|
+
$ testit autotests_filter
|
|
108
|
+
--url https://tms.testit.software \
|
|
109
|
+
--configuration-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
|
|
110
|
+
--testrun-id 6d4ac4b7-dd67-4805-b879-18da0b89d4a8 \
|
|
111
|
+
--framework behave \
|
|
112
|
+
--output tmp/filter.txt
|
|
113
|
+
|
|
114
|
+
$ behave "$(cat tmp/filter.txt)" -D tmsTestRunId=6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -D tmsAdapterMode=1 -f testit_adapter_behave.formatter:AdapterFormatter
|
|
115
|
+
```
|
|
116
|
+
|
|
100
117
|
### Tags
|
|
101
118
|
|
|
102
119
|
Use tags to specify information about autotest.
|
|
File without changes
|
{testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/models/tags.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_adapter_behave-3.3.1 → testit_adapter_behave-3.4.0}/src/testit_adapter_behave/tags_parser.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|