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:

  1. create specialized class static methods handle different data

  2. use behat functionality communicate between contexts, see similar question accessing contexts each other

  3. if need generate different data use faker php


Comments

Popular posts from this blog

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

python 2.7 - Lines in my code being skipped and I am not sure why -

python - multiprocessing pool with map -