I am using gatling 1.5.2 exec(http(“register?instance_id=?_${jca}”) .get("${url}") .check(status.is(200)) .check(bodyString.saveAs(“getBodyString”))) .exec(session =>{ val getBodyString = session.getTypedAttributeString …
}) .exec(getWebsocketToken)
HTTP request: GET https://realtime-disc.test.jivehosted.com/register?instance_id=daddd677-4341-48ff-9b77-346e39023e40&activation_code=67169661
Hi,
You can try the syntax below to solve you problem : exitBlockOnFail {
exec(http(“register?instance_id=?_${jca}”) .get("${url}") .check(status.is(200)) .check(bodyString.saveAs(“getBodyString”))) .exec(session =>{ val getBodyString = session.getTypedAttributeString …
}
If the check on the status failed, the second exec and other in the block won’t be process.
Hope this help
Ludovic
That works! Thx!