I have been trying to create a chain for the past few months but don’t seem to get the
structure and how chain builder works.
do you have a better guide than the documentation that tells how exactly a chain can be created without getting compilation errors ?
I want a chain of multiple api requests,
createPlayer
startSession
playrRock
playScissor
checkResult
i seem to get compilation issues everytime i want to do something after check
def startSession(playerIdentityKey: String){
doIf(session => !session(playerIdentityKey).as[String].isBlank) {
exec(
http(“StartSession”)
.post("/rockpaperscissors/start")
.body(StringBody(getSessionRequest(playerIdentityKey)))
.check(checkIf((response: Response, _: Session) => response.status == 200) {
jsonPath(“jsonPathToPoll”).ofType[String].saveAs(“fieldToPoll”)
}))
}
}