- Tags:: [[Load Testing]] - Date Created: [[2020-09-08]] - "Setup and teardown actions are actions that we may not want to run every single iteration. " - "For example, if we don't really need to test the login process but a user needs to be logged into an application to do the rest of the flow that we __do__ want to test, we can put authentication in setup actions so that they are run only once at the start of the iteration. " - "An example of a common use case for teardown actions would be logging out or maybe removing data created during our test." - Different options - [step.once()]([[Flood Element step.once()]]) - runs once - [beforeAll()]([[Flood Element before.all()]]) - runs at the start of every iteration - [afterAll()]([[Flood Element afterAll()]]) - runs at the end of every iteration - [step.if()]([[Flood Element step.if()]]) - runs if condition is fulfilled