zeiss-digital-innovation / TestNext

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inheritance of @Given, @When and @Then

PaulBrandesATSaxSys opened this issue · comments

It should be possible to Inherit @Given-, @When- and @Then- Methods.

Multiple @when and @then are possible.
There can only be one @when either in the parent- or the child-class. (Or the Spec is invalid)

The execution-order is:
Parent-Given -> Child-Given -> Parent/Child-When -> Parent-Then -> Child-Then