I am using a Selenium-Cucumber-Java framework for automation. I need to restrict the run duration of my scenarios in such a way that max 30 mins should be taken for any scenario and fail the scenario if it takes more time than that.
I found this answer in SO which helps in giving a timeout for a step. Cucumber Stopping Execution after Time in Steps
But I don't want to change all my existing steps to include this time out. Is there a way to provide a default time out for all my steps? Or Is there a way to configure the timeout at a scenario level?