allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
725 stars 237 forks source link

[bug]allure tags not work smooth with pytest-bdd #627

Closed stevenxuwoss closed 1 year ago

stevenxuwoss commented 3 years ago

add allure epic,feature,story,title for two scenario tests like @allure.epic('设备管理') @allure.feature('设备列表') @allure.story('添加设备') @allure.title('场景:添加设备') @scenario("functional/devices/features/devices.feature", "通过SFE平台添加设备") def test_add_divice(): pass

@allure.epic('系统管理') @allure.feature('账号列表') @allure.story('添加账号') @allure.title('场景:新增账号') @scenario("functional/guns/features/account.feature", "新增账号") def test_add_account(): pass the allure report not organized as expected

20211003095634
stevenxuwoss commented 3 years ago

I'd like to make an addition, the two scenario tests with examples Scenario: 通过SFE平台添加设备 Given 用户: , 密码: When 登录SFE平台 Given 设备类型: And 设备信息: When 新增设备 Then 验证设备列表

Examples: | username | password | DeviceType | Device | | ...... | ...... | .... | ...... |

delatrie commented 1 year ago

Allure decorators like @allure.story and allure.dynamic are not yet implemented in allure-pytest-bdd. Only allure.attach and allure.attach.file calls are supported.

delatrie commented 1 year ago

Duplicate of #726 Merged multiple related issues into a single one.