how to reuse a step definition from one class to multiple feature class? eg. login.feature Scenario: it checks the login flow Given: User logs in the home page When: Then:
again another feature class logout.feature Scenario: it checks the logout flow Given: User logs in the home page When: Then: User logs out from home page We have step definition classes login want to use the Given step of login.java in logout.feature without rewriting it in logout.java.