qase-python-commons 3.2.1__tar.gz → 3.2.3__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 qase-python-commons might be problematic. Click here for more details.
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/PKG-INFO +1 -1
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/pyproject.toml +1 -1
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/client/api_v1_client.py +1 -1
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/client/api_v2_client.py +24 -3
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase_python_commons.egg-info/PKG-INFO +1 -1
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/README.md +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/setup.cfg +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/__init__.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/client/base_api_client.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/config.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/exceptions/reporter.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/loader.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/logger.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/__init__.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/attachment.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/basemodel.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/api.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/batch.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/connection.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/framework.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/plan.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/qaseconfig.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/report.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/run.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/testops.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/relation.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/result.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/run.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/runtime.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/step.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/profilers/__init__.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/profilers/db.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/profilers/network.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/profilers/sleep.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/reporters/__init__.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/reporters/core.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/reporters/report.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/reporters/testops.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/utils.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/validators/base.py +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase_python_commons.egg-info/SOURCES.txt +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase_python_commons.egg-info/dependency_links.txt +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase_python_commons.egg-info/requires.txt +0 -0
- {qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase_python_commons.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.3
|
|
4
4
|
Summary: A library for Qase TestOps and Qase Report
|
|
5
5
|
Author-email: Qase Team <support@qase.io>
|
|
6
6
|
Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qase-python-commons"
|
|
7
|
-
version = "3.2.
|
|
7
|
+
version = "3.2.3"
|
|
8
8
|
description = "A library for Qase TestOps and Qase Report"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
authors = [{name = "Qase Team", email = "support@qase.io"}]
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/client/api_v1_client.py
RENAMED
|
@@ -89,7 +89,7 @@ class ApiV1Client(BaseApiClient):
|
|
|
89
89
|
return response.result
|
|
90
90
|
|
|
91
91
|
except Exception as e:
|
|
92
|
-
self.logger.log(f"Error at uploading attachment: {e}", "
|
|
92
|
+
self.logger.log(f"Error at uploading attachment: {e}", "error")
|
|
93
93
|
return None
|
|
94
94
|
|
|
95
95
|
def create_test_run(self, project_code: str, title: str, description: str, plan_id=None,
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/client/api_v2_client.py
RENAMED
|
@@ -16,6 +16,7 @@ from qase.api_client_v2.models.result_steps_type import ResultStepsType
|
|
|
16
16
|
from .api_v1_client import ApiV1Client
|
|
17
17
|
from .. import Logger
|
|
18
18
|
from ..exceptions.reporter import ReporterException
|
|
19
|
+
from ..models.config.framework import Video, Trace
|
|
19
20
|
from ..models import Attachment, Result
|
|
20
21
|
from ..models.config.qaseconfig import QaseConfig
|
|
21
22
|
from ..models.step import StepType, Step
|
|
@@ -56,7 +57,11 @@ class ApiV2Client(ApiV1Client):
|
|
|
56
57
|
attached = []
|
|
57
58
|
if result.attachments:
|
|
58
59
|
for attachment in result.attachments:
|
|
59
|
-
|
|
60
|
+
if self.__should_skip_attachment(attachment, result):
|
|
61
|
+
continue
|
|
62
|
+
attach_id = self._upload_attachment(project_code, attachment)
|
|
63
|
+
if attach_id:
|
|
64
|
+
attached.extend(attach_id)
|
|
60
65
|
|
|
61
66
|
steps = []
|
|
62
67
|
for step in result.steps:
|
|
@@ -134,7 +139,10 @@ class ApiV2Client(ApiV1Client):
|
|
|
134
139
|
mime_type='text/plain', temporary=True))
|
|
135
140
|
|
|
136
141
|
if step.step_type == StepType.GHERKIN:
|
|
137
|
-
|
|
142
|
+
action = step.data.keyword
|
|
143
|
+
if step.data.keyword != step.data.name:
|
|
144
|
+
action += " " + step.data.name
|
|
145
|
+
prepared_step['data']['action'] = action
|
|
138
146
|
|
|
139
147
|
if step.step_type == StepType.SLEEP:
|
|
140
148
|
prepared_step['data']['action'] = f"Sleep for {step.data.duration} seconds"
|
|
@@ -142,7 +150,9 @@ class ApiV2Client(ApiV1Client):
|
|
|
142
150
|
if step.attachments:
|
|
143
151
|
uploaded_attachments = []
|
|
144
152
|
for file in step.attachments:
|
|
145
|
-
|
|
153
|
+
attach_id = self._upload_attachment(project_code, file)
|
|
154
|
+
if attach_id:
|
|
155
|
+
uploaded_attachments.extend(attach_id)
|
|
146
156
|
|
|
147
157
|
prepared_step['execution']['attachments'] = [attach.hash for attach in uploaded_attachments]
|
|
148
158
|
|
|
@@ -154,3 +164,14 @@ class ApiV2Client(ApiV1Client):
|
|
|
154
164
|
except Exception as e:
|
|
155
165
|
self.logger.log(f"Error at preparing step: {e}", "error")
|
|
156
166
|
raise ReporterException(e)
|
|
167
|
+
|
|
168
|
+
def __should_skip_attachment(self, attachment, result):
|
|
169
|
+
if (self.config.framework.playwright.video == Video.failed and
|
|
170
|
+
result.execution.status != 'failed' and
|
|
171
|
+
attachment.file_name == 'video.webm'):
|
|
172
|
+
return True
|
|
173
|
+
if (self.config.framework.playwright.trace == Trace.failed and
|
|
174
|
+
result.execution.status != 'failed' and
|
|
175
|
+
attachment.file_name == 'trace.zip'):
|
|
176
|
+
return True
|
|
177
|
+
return False
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase_python_commons.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: qase-python-commons
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.3
|
|
4
4
|
Summary: A library for Qase TestOps and Qase Report
|
|
5
5
|
Author-email: Qase Team <support@qase.io>
|
|
6
6
|
Project-URL: Homepage, https://github.com/qase-tms/qase-python/tree/master/qase-python-commons
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/client/base_api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/exceptions/reporter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/attachment.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/basemodel.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/api.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/batch.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/connection.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/framework.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/plan.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/qaseconfig.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/run.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/models/config/testops.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/profilers/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/profilers/network.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/reporters/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/reporters/report.py
RENAMED
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase/commons/reporters/testops.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qase_python_commons-3.2.1 → qase_python_commons-3.2.3}/src/qase_python_commons.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|