allure-framework / allure-framework/allure-python

Add dynamic.label and dynamic.title support to allure-behave

Open
#776 5 comments 1 reaction 0 assignees View on GitHub
task:improvement theme:behave
Dominant language
Python
Stars
814
Forks
260
PR merge metrics
No merged PRs in 30d

Description

#### I'm submitting a ...
- [ ] bug report
- [x] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

#### What is the current behavior?

#### If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

Currently, there is no way to set a test's name or add a label dynamically. The following code has no effect:

```python
@given("...")
def step_impl():
allure.dynamic.title("New name")
allure.dynamic.label("tag", "my-tag")
```

#### What is the expected behavior?

The code above should change the test's name to `"New name"` and add the `my-tag` tag to the test.

#### What is the motivation / use case for changing the behavior?

To make the runtime API complete.

#### Please tell us about your environment:

- Allure adaptor: allure-behave@2.13.2

Contributor guide

Open the contributing guide

Research direction

Start with the allure-behave implementation of the runtime API used by the shown step definition. Reproduce the snippet and trace why dynamic.title and dynamic.label have no effect. Done means the test name is “New name” and the my-tag label appears in the generated Allure result.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.