php - I need to share data between steps in different classes -
i need share data between steps in different classes using behat. (good practice pass variables between cucumber-jvm steps) picocontainer cucumber. there such framework? know can use static member maybe framework this.
you have multiple options:
create specialized class static methods handle different data
use behat functionality communicate between contexts, see similar question accessing contexts each other
if need generate different data use faker php
Comments
Post a Comment