Skip to content

Tag: cucumber

How do I get the name of the Scenario step currently executing?

I’m logging the currently executing Scenario in a hook like so: But, how do I get the name of the Step? I mean, the Given, When, Then lines. Answer You would need to implement the ConcurrentEventListener interface and setup the handlers for the event you are looking for, in your case the TestStepStarted…

Cucumber feature file isn’t bound to glue path

I am trying to set up a simple Cucumber project to run with Selenium (The Selenium bits are irrelevant so I removed them). The structure is as follows: sayHiTest.feature: testRunner.java: SayHiTestStepsdefs.java: Trying to run testRunner yields the following error: For some reason, it doesn’t see automa…