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

java - SSE Emitter : Manage timeouts and complete() -

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

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -