Skip to content

Generic annotation for @Given @When @Then @And #2705

@ntthaibk

Description

@ntthaibk

🤔 What's the problem you're trying to solve?

When I create the journey scenario. I use the * syntax in .feature file instead of normal Given When Then And. But then in those step's step definition, the @given or @when @then @and annotation is not able to differentiate the Journey step and normal integration test steps.

✨ What's your proposed solution?

I think another alias annotation for @StepDefinitionAnnotation is gonna be a good solution, it could be named either @Steps or @Journey

⛏ Have you considered any alternatives or workarounds?

For now I use @and as annotation for journey step

📚 Any additional context?

I don't know if we need to take into consideration for other framework that build on top of cucumber, because when I'm using Serenity, I think they already use @step for another purpose


This text was originally generated from a template, then edited by hand. You can modify the template here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions