Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
delatrie opened this issue Nov 27, 2023 · 1 comment
Open
1 of 3 tasks

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

delatrie opened this issue Nov 27, 2023 · 1 comment
Labels
task:improvement Change that improves some user experience but can't be considered a new feature theme:behave

Comments

@delatrie
Copy link
Contributor

I'm submitting a ...

  • bug report
  • 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:

@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:

@delatrie delatrie added task:improvement Change that improves some user experience but can't be considered a new feature theme:behave labels Nov 27, 2023
@depindersharma
Copy link

depindersharma commented Jan 24, 2024

considering the methods are available but nothing happens when we call them. It's really an annoying issue. I vote for this issue to be picked up asap. :) Thanks

Fixing this would allow a user to define a tag, package etc. Currently I can't set the package, which on allure report is one of the main Hierarchy view.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task:improvement Change that improves some user experience but can't be considered a new feature theme:behave
Projects
None yet
Development

No branches or pull requests

2 participants