diff --git a/qase-robotframework/changelog.md b/qase-robotframework/changelog.md index 334fe30..6174a38 100644 --- a/qase-robotframework/changelog.md +++ b/qase-robotframework/changelog.md @@ -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 diff --git a/qase-robotframework/pyproject.toml b/qase-robotframework/pyproject.toml index 7eff556..5f8973b 100644 --- a/qase-robotframework/pyproject.toml +++ b/qase-robotframework/pyproject.toml @@ -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 = "support@qase.io"}] @@ -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", ] diff --git a/qase-robotframework/src/qase/robotframework/listener.py b/qase-robotframework/src/qase/robotframework/listener.py index 88feffa..e4fdc56 100644 --- a/qase-robotframework/src/qase/robotframework/listener.py +++ b/qase-robotframework/src/qase/robotframework/listener.py @@ -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 @@ -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(' ', '_')}"