You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aneveux edited this page Nov 26, 2014
·
1 revision
While writing different test scenarios, it could be needed for you to reuse in a test case some data which has been computed in another test case.
Even if this approach isn't really the perfect implementation of Behavior Driven Development, sometimes you're just facing the need, so we implemented a solution for that.
EasyCukes integrates an ExecutionContext which acts as a kind of Map storing key-value pairs. In various steps which are proposed by EasyCukes, you'll be able to store and/or retrieve data from this ExecutionContext.
If you're developing some new steps for your project and you'd like to access this data, you can retrieve the context whenever you want using ExecutionContext.getContext(). Please note that each variable which is generated by the DataInjector will also be stored in that context.