"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
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.
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.
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.
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)
O. Santos, und J. Boticario. Learning in the Synergy of Multiple Disciplines, Proceedings of the EC-TEL 2009, Volume 5794 von Lecture Notes in Computer Science, Berlin/Heidelberg, Springer, (Oktober 2009)
I. Ciuciu, und Y. Tang. On the Move to Meaningful Internet Systems: OTM 2010 Workshops, Volume 6428 von Lecture Notes in Computer Science, Springer Berlin Heidelberg, (2010)
J. Whittle, und J. Schumann. ICSE '00: Proceedings of the 22nd international conference on Software engineering, Seite 314--323. New York, NY, USA, ACM Press, (2000)
M. Zhang, und K. Chakrabarti. Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data, Seite 145--156. New York, NY, USA, ACM, (2013)
A. Cavagna, T. Grigera, und P. Verrocchio. Abstract Book of the XXIII IUPAP International Conference on Statistical Physics, Genova, Italy, (9-13 July 2007)
Asa Blomquist, und M. Arvola. Proceedings of the second Nordic conference on Human-computer interaction, Seite 197--200. New York, NY, USA, ACM, (2002)