forked from gatling/gatling
-
Notifications
You must be signed in to change notification settings - Fork 0
Retry
slandelle edited this page Mar 25, 2012
·
3 revisions
Some requests in a scenario might be required before processing the next ones. For example, there is no meaning in continuing with a scenario after a failed login request.
In this case, one can retry the required requests as long as they're not successful:
.loop(
chain.exec(
http("Login")
.post("/login")
.param("username", "foo")
.param("password", "bar")
.check(status.is(200).saveAs("authenticated"))
)
).asLongAs((session: Session) => !session.isAttributeDefined("authenticated")- Introduction
- Underlying Technologies
- Concepts
- Benchmarks
- Sponsors
- Changelog
- Migrating
- License
- FAQ
- Contributing
- Links
- Tutorial
- Reference
- Cookbooks
- Retry
- Scaling out
- Passing parameters
- Webservices
- Extensions
- General information
- APIs
- Checks API
- Request API
- Charting API
- Feeder API