mhjort / trombi

Load testing library for testing stateful apps with Clojure
Eclipse Public License 1.0
235 stars 19 forks source link

Allow for initial context to be read from scenario directly #32

Closed robert-stuttaford closed 7 years ago

robert-stuttaford commented 8 years ago

So that request functions can be written in a reusable fashion.

E.g.

:scenarios [{:name "..." :steps [...] :context {:product-slug "my-product-slug"}}]

(defn product-request [{:keys [product-slug] :as context}]
   ... use product-slug to produce a url for request ...)
mhjort commented 8 years ago

You can already specify :context at global level using options. But it would be good to have support for specifying that at scenario level too as you suggested.

mhjort commented 7 years ago

Implemented in 0.8.5 Thanks for @greywolve !