You can use the hooks before and after to create and delete a user.
class RetrieveUserSimulation extends Simulation { before { // create user } setUp(scn).protocols(httpConf) after { // delete user } }
You will have to manually create and delete HTTP requests. before and after take => Unit thunks, not Scenario s.
source share