Scenario thinking is a tool for motivating people to challenge the status quo, or get better at doing so, by asking "What if?" Asking "What if?" in a disciplined way allows you to rehearse the possibilities of tomorrow.
"Scenarios transform information into perceptions... It is a creative experience that generates an 'Aha!' ... and leads to strategic insights beyond the mind's previous reach." - Pierre Wack
International Futures (IFs) is a thinking tool for our global future. It was developed to assist people who are interested in personal and social choices lying ahead.
Hi all, I managed to do what you want but only in hacky way:
val initStarted = new AtomicBoolean(false)
val initCompleteLatch = new CountDownLatch(1)
scenario("myScenario")
.doIf(_ => initStarted.getAndSet(true) == false) {
exec(http("first")
.get("/endpoint")
.check(status.is(200),
jsonPath("$..response.id").findAll.saveAs("reponseVariable")
)
).exec { session =>
reponseVariable = session("reponseVariable").as[String]
initCompleteLatch.countDown()
session
}
}
.exec { session =>
initCompleteLatch.await()
session.set("reponseVariable", reponseVariable)
}
.exec(http("second")
.post("/another/endpoint/{responseVariable}")
.body(...)
.check(status.is(200))
)
Hope it helps :) It can chain serveral requests, passthrough response along, and ensures first request is send only once.
The Institute for Prospective Technological Studies (IPTS) is one of the seven scientific institutes of the European Commission's Joint Research Centre (JRC).
N. Kantola, und T. Jokela. Proceedings of the 19th Australasian conference on Computer-Human Interaction: Entertaining User Interfaces, Seite 49--56. New York, NY, USA, ACM, (2007)
H. Liang, Z. Diskin, J. Dingel, und E. Posse. Model Driven Engineering Languages and Systems, Volume 5301 von Lecture Notes in Computer Science, Springer Berlin Heidelberg, (2008)
M. Maguire, und N. Bevan. Proceedings of the IFIP 17th World Computer Congress - TC13 Stream on Usability: Gaining a Competitive Edge, Seite 133--148. Deventer, The Netherlands, The Netherlands, Kluwer, B.V., (2002)