Skip to main content

Upload / Reference / Download / Edit / Delete a Test Asset

Ines avatar
Written by Ines
Updated over 2 weeks ago

Prerequisites:

  • Created Test Project

Overview

Test Assets are critical resources in Thunders that allow you to upload, manage, and utilize files needed for your test executions. This guide will walk you through the basic operations of uploading, downloading, editing, and deleting test assets.

Uploading a Test Asset

  • Navigate to the Test Assets tab in the sidebar

  • Click on the 'Upload Test Asset' button

  • Wait for the modal to appear

  • Upload your file (or multiple files at once) in the modal

💡 Best Practice: Use clear, descriptive names for your Test Assets to make them easily identifiable.

Referencing a Test Asset

To reference a test asset inside a test step:

  1. Navigate to your test step editor

  2. Type /file where you want to insert the asset reference

  3. A file picker will appear showing your uploaded test assets

  4. Select the desired file from the picker

  5. The file reference will be automatically inserted as a token in this format: [FILE_BASENAME_EXT]

For example, if you select a file named "my_photo.png", it will be inserted as [FILE_MY_PHOTO_PNG] in your test step.

What kind of assertions can be performed on Test Assets?

After referencing a test asset, you can write assertions in plain language to validate it.

Common assertions include:

  • File properties: "File size is less than 5 MB" or "File format is PDF"

  • Text content: "CSV contains a row with email [email protected]" or "JSON has property 'status' with value 'success'"

  • Visual content: "Image contains a red button" or "Screenshot shows a login form"

Downloading a Test Asset

To download an existing Test Asset:

  • Locate the Test Asset you want to download in the grid

  • Click the action menu represented by the three dots icon in the Actions column

  • Click on "Download" in the actions menu

Editing a Test Asset

To modify an existing Test Asset:

  • Find the Test Asset you wish to edit in the grid

  • Click the action menu represented by the three dots icon in the Actions column

  • Click on "Edit" in the actions menu

  • Enter the new name for your asset

  • Click on "Update" to save the changes

💡 Note: If your test asset is already referenced in test cases, all references will be automatically refactored to use the updated filename.

Deleting a Test Asset

To remove a Test Asset:

  • Locate the Test Asset you wish to delete in the grid

  • Click the action menu represented by the three dots icon in the Actions column

  • Click on "Delete" in the actions menu

  • Confirm the deletion when prompted by clicking "Delete" again

⚠️ Warning: Test Asset deletion is permanent and cannot be undone. Make sure you want to remove it before confirming.

💡 Note: Test Assets that are referenced in test cases cannot be deleted. You must first remove all references to the asset before deletion.

Tips for Effective Test Asset Management

  • Use meaningful names for your assets to easily identify them later

  • Regularly review and clean up unused test assets to keep your project organized

  • Consider using a consistent naming convention for related test assets

For additional support or questions, contact our support team at [email protected]

Did this answer your question?