Hello,
I have a simulation that runs for 1000 users. I have broken down my scenario/simulaton into chains. I would like to exit the
simulation for the current session/user only if a failure had to happen to any of http requests within the chain for that user and do not
continue the execution of remaining chains for that user but I would like the simulation to continue for the rest of users with no failures to continue.Running from my
local machine works just fine but running same simulation from AWS instance seems not to work the same way . All chains are executed in AWS.
Example
val Chain1 =(
pause(1)
.group(“abc”){
exec(http(“request1)
.post(”"“xyz”"")
.check(status.in(200 to 304))
.headers(headers_1)
.resources(http(“request2”)
.get(uri1 + “”“abc”"")
.check(status.in(200 to 304))
.headers(headers_1),
http(“requst3”)
.get(uri1 + “”“blahblah”""+Common.systemtime())
.check(status.in(200 to 304))
.headers(headers_2))) }
).exitHereIfFailed
val Chain2 =(
pause(1)
.group(“abc”){
exec(http(“request4)
.post(”"“xyz”"")
.check(status.in(200 to 304))
.headers(headers_1)
.resources(http(“request5”)
.get(uri1 + “”“abc”"")
.check(status.in(200 to 304))
.headers(headers_1),
http(“requst6”)
.get(uri1 + “”“blahblah”""+Common.systemtime())
.check(status.in(200 to 304))
.headers(headers_2))) }
).exitHereIfFailed
val Chain2 =(
pause(1)
.group(“abc”){
exec(http(“request7)
.post(”"“xyz”"")
.check(status.in(200 to 304))
.headers(headers_1)
.resources(http(“request8”)
.get(uri1 + “”“abc”"")
.check(status.in(200 to 304))
.headers(headers_1),
http(“requst9”)
.get(uri1 + “”“blahblah”""+Common.systemtime())
.check(status.in(200 to 304))
.headers(headers_2))) }
).exitHereIfFailed
val scnseq = SeqChain1,Chain2,Chain3)
val scn = scenario(“RecordedSimulation”).exec(scnseq)
setUp(scn.inject(rampUsers(numberofusers) over (rampupby)).protocols(httpProtocol))