testit-adapter-behave 3.3.1__tar.gz → 3.3.2__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.1 → testit_adapter_behave-3.3.2}/PKG-INFO +17 -2
  2. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/README.md +15 -0
  3. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/setup.py +2 -2
  4. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/scenario_parser.py +1 -0
  5. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/utils.py +2 -1
  6. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave.egg-info/PKG-INFO +17 -2
  7. testit_adapter_behave-3.3.2/src/testit_adapter_behave.egg-info/requires.txt +3 -0
  8. testit_adapter_behave-3.3.1/src/testit_adapter_behave.egg-info/requires.txt +0 -3
  9. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/setup.cfg +0 -0
  10. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/__init__.py +0 -0
  11. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/formatter.py +0 -0
  12. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/listener.py +0 -0
  13. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/models/__init__.py +0 -0
  14. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/models/label.py +0 -0
  15. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/models/option.py +0 -0
  16. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/models/tags.py +0 -0
  17. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/models/test_result_step.py +0 -0
  18. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/models/url_link.py +0 -0
  19. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave/tags_parser.py +0 -0
  20. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave.egg-info/SOURCES.txt +0 -0
  21. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/src/testit_adapter_behave.egg-info/dependency_links.txt +0 -0
  22. {testit_adapter_behave-3.3.1 → testit_adapter_behave-3.3.2}/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.1
3
+ Version: 3.3.2
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.1
19
+ Requires-Dist: testit-python-commons==3.3.2
20
20
  Requires-Dist: attrs
21
21
 
22
22
  # Test IT TMS adapter for Behave
@@ -97,6 +97,21 @@ tmsAutomaticUpdationLinksToTestCases=AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
97
97
  If you want to enable debug mode then
98
98
  see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
99
99
 
100
+ #### Run with filter
101
+ To create filter by autotests you can use the Test IT CLI (use adapterMode 1 for run with filter):
102
+
103
+ ```
104
+ $ export TMS_TOKEN=<YOUR_TOKEN>
105
+ $ testit autotests_filter
106
+ --url https://tms.testit.software \
107
+ --configuration-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
108
+ --testrun-id 6d4ac4b7-dd67-4805-b879-18da0b89d4a8 \
109
+ --framework behave \
110
+ --output tmp/filter.txt
111
+
112
+ $ behave "$(cat tmp/filter.txt)" -D tmsTestRunId=6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -D tmsAdapterMode=1 -f testit_adapter_behave.formatter:AdapterFormatter
113
+ ```
114
+
100
115
  ### Tags
101
116
 
102
117
  Use tags to specify information about autotest.
@@ -76,6 +76,21 @@ tmsAutomaticUpdationLinksToTestCases=AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
76
76
  If you want to enable debug mode then
77
77
  see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
78
78
 
79
+ #### Run with filter
80
+ To create filter by autotests you can use the Test IT CLI (use adapterMode 1 for run with filter):
81
+
82
+ ```
83
+ $ export TMS_TOKEN=<YOUR_TOKEN>
84
+ $ testit autotests_filter
85
+ --url https://tms.testit.software \
86
+ --configuration-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
87
+ --testrun-id 6d4ac4b7-dd67-4805-b879-18da0b89d4a8 \
88
+ --framework behave \
89
+ --output tmp/filter.txt
90
+
91
+ $ behave "$(cat tmp/filter.txt)" -D tmsTestRunId=6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -D tmsAdapterMode=1 -f testit_adapter_behave.formatter:AdapterFormatter
92
+ ```
93
+
79
94
  ### Tags
80
95
 
81
96
  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.3.1',
5
+ version='3.3.2',
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.1',
28
+ 'testit-python-commons==3.3.2',
29
29
  'attrs'],
30
30
  )
@@ -46,6 +46,7 @@ def parse_scenario(scenario):
46
46
  'links': [],
47
47
  'labels': [],
48
48
  'workItemsID': [],
49
+ "externalKey": get_scenario_name(scenario)
49
50
  # TODO: Add to python-commons
50
51
  # 'started_on': '',
51
52
  # 'completed_on': None
@@ -141,7 +141,8 @@ def convert_executable_test_to_test_result_model(executable_test: dict) -> TestR
141
141
  .set_result_links(executable_test['resultLinks'])\
142
142
  .set_labels(executable_test['labels'])\
143
143
  .set_work_item_ids(executable_test['workItemsID'])\
144
- .set_message(executable_test['message'])
144
+ .set_message(executable_test['message'])\
145
+ .set_external_key(executable_test['externalKey'])
145
146
 
146
147
 
147
148
  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.1
3
+ Version: 3.3.2
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.1
19
+ Requires-Dist: testit-python-commons==3.3.2
20
20
  Requires-Dist: attrs
21
21
 
22
22
  # Test IT TMS adapter for Behave
@@ -97,6 +97,21 @@ tmsAutomaticUpdationLinksToTestCases=AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES
97
97
  If you want to enable debug mode then
98
98
  see [How to enable debug logging?](https://github.com/testit-tms/adapters-python/tree/main/testit-python-commons)
99
99
 
100
+ #### Run with filter
101
+ To create filter by autotests you can use the Test IT CLI (use adapterMode 1 for run with filter):
102
+
103
+ ```
104
+ $ export TMS_TOKEN=<YOUR_TOKEN>
105
+ $ testit autotests_filter
106
+ --url https://tms.testit.software \
107
+ --configuration-id 5236eb3f-7c05-46f9-a609-dc0278896464 \
108
+ --testrun-id 6d4ac4b7-dd67-4805-b879-18da0b89d4a8 \
109
+ --framework behave \
110
+ --output tmp/filter.txt
111
+
112
+ $ behave "$(cat tmp/filter.txt)" -D tmsTestRunId=6d4ac4b7-dd67-4805-b879-18da0b89d4a8 -D tmsAdapterMode=1 -f testit_adapter_behave.formatter:AdapterFormatter
113
+ ```
114
+
100
115
  ### Tags
101
116
 
102
117
  Use tags to specify information about autotest.
@@ -0,0 +1,3 @@
1
+ behave
2
+ testit-python-commons==3.3.2
3
+ attrs
@@ -1,3 +0,0 @@
1
- behave
2
- testit-python-commons==3.3.1
3
- attrs