How to Delete a Broken Unit Test?
Comments
-
Hello!
I have a Unit Test on one of my flows that is seemingly broken. Whenever I try to click or interact with it, I receive an error. How can I remove it?
-
Hello!
This can be done with a quick 1-step flow! Well make use of the [i]Delete Entity [/i]step. This step requires an [i]entityID[/i] input, and once the ID is supplied, it marks the entity (in our case, the Unit Test) as deleted in the database and hides it from the Unit Test list.
First, find the ID of the Unit Test. I made use of the query editor to run a quick [i]select [/i]query on the [i]unit_test[/i] table. If you have a large amount of Unit Tests, then you may need to narrow down your query to find the correct entity.
The first two columns will be the [i]id [/i]and [i]display_name[/i], which is the name entered by the user that initially created the Unit Test. Find the correct Unit Test name, and then copy its ID.
Then, using the [i]Delete Entity[/i] step, we can pass that ID in as its input, and the Unit Test should no longer be visible in the Debugger.
Hope this helps!
-Ethan
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions