allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

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

Open stevenxuwoss opened this issue 4 years ago • 1 comments

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 avatar Oct 03 '21 01:10 stevenxuwoss

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

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

stevenxuwoss avatar Oct 03 '21 02:10 stevenxuwoss

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 avatar Jan 16 '23 10:01 delatrie

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

delatrie avatar Jan 20 '23 10:01 delatrie