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

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

Open delatrie opened this issue 2 years ago • 5 comments

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:

@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 avatar Nov 27 '23 16:11 delatrie

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.

depindersharma avatar Jan 24 '24 22:01 depindersharma

Just want to update that the issue is still relevant. The runtime API does not work for labels, issues, tags, etc. It only works when applied via decorators.

ashlndr avatar Jul 11 '24 05:07 ashlndr

I would also like to note that this issue is still ongoing as the runtime API does not support dynamic values

carsonuh avatar Aug 20 '24 01:08 carsonuh