Which approach best prevents state leakage between Scenario Outline iterations?
In Cucumber, Scenario Outlines are used to execute the same set of steps multiple times using different data from an Examples table. While each row in the table is treated as an independent scenario, the management of shared state across steps remains a critical design concern. When utilizing Dependency Injection (DI) to share state between step definitions,