Skip to content

Commit

Permalink
feature: support new version of qase-python-commons
Browse files Browse the repository at this point in the history
  • Loading branch information
gibiw committed Oct 29, 2024
1 parent 4b4c8a0 commit 795e15a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 6 additions & 0 deletions qase-robotframework/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# qase-pytest 3.2.1

## What's new

Support new version of qase-python-commons

# qase-pytest 3.2.0

## What's new
Expand Down
4 changes: 2 additions & 2 deletions qase-robotframework/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "qase-robotframework"
version = "3.2.0"
version = "3.2.1"
description = "Qase Robot Framework Plugin"
readme = "README.md"
authors = [{name = "Qase Team", email = "[email protected]"}]
Expand All @@ -17,7 +17,7 @@ classifiers = [
urls = {"Homepage" = "https://github.com/qase-tms/qase-python/tree/master/qase-robotframework"}
requires-python = ">=3.7"
dependencies = [
"qase-python-commons~=3.1.3",
"qase-python-commons~=3.2.0",
"filelock~=3.12.2",
]

Expand Down
9 changes: 7 additions & 2 deletions qase-robotframework/src/qase/robotframework/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

from filelock import FileLock
from qase.commons import ConfigManager
from qase.commons.models import Result, Suite, Step, Field
from qase.commons.models import Result, Step, Field, Relation
from qase.commons.models.relation import SuiteData
from qase.commons.models.step import StepType, StepGherkinData
from qase.commons.reporters import QaseCoreReporter
from robot.libraries.BuiltIn import BuiltIn
Expand Down Expand Up @@ -108,7 +109,11 @@ def end_test(self, test, result):

suites = self.tests.get(f"{test.name}:{test.lineno}")
if suites:
self.runtime.result.suite = Suite('\t'.join(suites), "")
relations = Relation()
for suite in suites:
relations.add_suite(SuiteData(suite))
self.runtime.result.relations = relations

signature = "::".join(
suite.lower().replace(" ", "_") for suite in suites) + f"::{test.name.lower().replace(' ', '_')}"

Expand Down

0 comments on commit 795e15a

Please sign in to comment.