Hi all,
recently converting our existing Jmeter tests over to Gatling as our project is written Scala so it’s a nice fit (and it get’s rid of Jmeter verbosity . . .)
Load tests were straight forward enough to convert, as there’s lots of documentation and examples available online, however looking to convert the remaining Jmeter functional test and well, while there is the GatlingHttpFunSpec example @ https://github.com/gatling/gatling-funspec-demo there’s not a whole lot of answers on how to instrument more complex functional tests.
At the moment I have the basic http requests I want to run my functional tests (simple API requests to do a health check and a PUT / DELETE / GET etc.)
spec {
Health.request
}
spec {
Vault.transfer
}
spec {
Vault.cancel
}
spec {
Report.request
}
problem is that the report step is running before the transfer and cancel are finished processing so want to add some delay, like the pause() function that we have in ChainBuilder from the Load testing side of Gatling, there is a PauseBuilder (extends ActionBuilder) but would really appreciate a proper example of it’s use in the context i.e. don’t want to have do this . . .
spec {
exec(Health.request).pause(10).actionBuilders.head
}
Thanks in advance, really loving this Gatling load test framework so far . . .
Regards, Brian.