Test Case ID Counter Does Not Reset After Deleting the Most Recent Test Cases

Hi and welcome to the Testiny forum!

Thank you for your feedback, it’s highly appreciated!
I understand the desire to have low and consecutive test case IDs, but unfortunately it is not that easy and currently not possible in Testiny:

  • Test cases (and also most other entities in Testiny) are only soft-deleted, meaning you can undelete them again. So if you delete a test case, it’s ID is still in use by the deleted (and possibly in the future restored) test case
  • Even if test cases would be completely deleted and thus the IDs would be free
    • if free slots would be reused, the IDs may be smaller, but the ID would in no way show which test case was created first → could also be confusing
    • if just using the next highest ID, you would again end up with empty slots and only in the edge case that the latest test case is deleted, it’s ID would be reused

So, in my opinion there is no perfect solution.
And since we allow un-deleting test cases, we don’t even have the choice to reuse IDs :slight_smile:

Best regards,
Alex

For reference, a similar question was asked before: