go to the next iteration

Hi Gatling Experts

I use gatling-charts-highcharts-2.0.0
and
I have an excerpt of my following scenario with gatling

.during (15 minutes){

feed(feeder)

.exec(http(“request_0”)
.get("""/backapp/index""")
.headers(headers_0)
.resources(http(“request_1”)
.get(uri1 + “”"/themes/global/img/vague.png"""),
http(“request_2”)
.get(uri1 + “”"/themes/global/img/formulaire-radio.png"""),
http(“request_3”)
.get(uri1 + “”"/img/formulaire-select.png)
.pause(1)
.exec(http(“request_4”)
.get("""/themes/global/img/formulaire-radio-active.png""")
.resources(http(“request_5”)
.get(uri1 + “”"/css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png"""),
http(“request_6”)
.get(uri1 + “”"/css/images/ui-bg_gloss-wave_75_2191c0_500x100.png"""))
.pause(1)
.exec(http(“request_7”)
.post("""/backapp/index/process/1""")
.headers(headers_0)
.formParam(""“name”"", “”"${nom}""")
.formParam(""“firstname”"", “”"${prenom}""")
.formParam(""“mail”"", “”"${nom}_${prenom}@yahoo.fr""")
.get(uri1 + “”"/themes/global/img/bg-slider.png""")))
.pause(1)
.exec(http(“request_9”)
.get("""/bilan-orientation/index/presentiel/0""")
.headers(headers_0))
.pause(1)
.exec(http(“request_10”)
.get("""/bilan-orientation/inscription/presentiel/0/process/1""")
.headers(headers_0))
.pause(1)

}

How I can I do if when an error occurs in one step of an exec(http ("request…) ) ie for example Check ‘is’ failed, found 404 but expected 200 for .exec(http(“request_4”)

I want to stop (I do not want to go ahead) and I want to go to the next iteration ?

Thanks a lot

Viet Minh

Check out exitBlockOnFail: http://gatling.io/docs/2.0.1/general/scenario.html?highlight=exitBlockOnFail

Hi John

Thanks for your help

Viet Minh