Forum Discussion

AlexKaras's avatar
AlexKaras
Community Hero
5 years ago

Re: Step Definitions not recognized

The test case shows Step Definitions enabled

The Generate Step Definitions button seems to be always enabled for scenario file. But this does not mean that definitions must be (re)generated.

 

It's like it doesn't see the content of StepDefiinitions.

Why do you think so? Any screenshot that illustrates the problem?

(I am wondering because I am not sure that I am getting the problem right and thus want to be sure that we are talking about the same thing.)

 

 

6 Replies

  • KHartlage's avatar
    KHartlage
    Occasional Contributor

    That is correct, the steps are in the StepDefinition file but they aren't being recognized.   When all the steps from the scenario are in the StepDefinition, the button Generate Steps disables.   

    • AlexKaras's avatar
      AlexKaras
      Community Hero

      but they aren't being recognized.

      Can you elaborate this? Are there any problem during test execution? Anything else that may help to understand what is the problem?

       

      In my case I also have the Generate Step Definitions button enabled for the scenario file (with actual step definitions be in another script unit file) but this does not cause any problem or error during test execution.

       

      • BenoitB's avatar
        BenoitB
        Community Hero

        So perhaps a setting which is the problem ?