Skip to main content

Clean-up Steps in Thunders

Add, Update & Delete Teardown steps

Written by Karim JOUINI
Updated today

What are Clean-up Steps?

Clean-up Steps are special operations that always get executed at the end of a test, even when other steps fail, similar to a try/finally block in programming. They ensure proper cleanup and resource management even during errors. They’re declared at the end of your steps, whether manually or through the copilot.

When to Use Clean-up Steps

Clean-up Steps are particularly useful when you need to:

  • Clean up test data

  • Reset application state

  • Release system resources

Creating Clean-up Steps

1. Manual Creation

  1. Go to the end of your test sequence

  2. Click "Add a new clean-up step"

  3. Choose your step type and fill in the required information

  4. Click "OK" to confirm

2. Creation via Copilot:

When writing your prompt, specify that you need a "Clean-up Step" or "execution on failure" so our agent can create the appropriate Clean-up Step

Edit or Delete Clean-up Steps

Clean-up steps can be edited or deleted just like normal steps. Please refer to Edit Test Case steps section for detailed instructions.

⚠️ Important: While you can add multiple Clean-up steps, each one should serve a specific purpose. Avoid adding unnecessary cleanup steps that might slow down test execution.

Did this answer your question?