I am converting my Cucumber-JUnit project to Cucumber-TestNg. In Junit, I used RunListener to grab Gherkin steps under execution. I used this listener to return me for a scenario the step currently executing like: on step 'Given' condition or on step 'When' or on step 'Then' so on. But in TestNg I could not find a similar listener that returns me the Gherkin scenario steps under execution. I tried other TestNg listeners, but i could not solve this problem. I find TestNg listeners are at test status related and not like JuNit RunListener. Suggest even if there is an alternative solution to this.
Aucun commentaire:
Enregistrer un commentaire