Opened 12 years ago
Closed 12 years ago
#10569 closed defect (fixed)
Can't delete unused test case templates
Reported by: | anonymous | Owned by: | Roberto Longobardi |
---|---|---|---|
Priority: | normal | Component: | TestManagerForTracPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description
Trying to delete an unassigned test case template in the test manager template admin page results in a warning, that the template can't be deleted as it is in use by a test catalog. The warning appears also for templates that are not assigned to any catalog at all.
Attachments (1)
Change History (5)
Changed 12 years ago by
Attachment: | TemplateDelete.jpg added |
---|
comment:1 follow-up: 2 Changed 12 years ago by
Hi Marcel, I tried to reproduce this problem but couldn't.
Checking the code, saving a template can give this message also if some error occurs while checking if it is in use gives an error. In this case, anyway, the error is printed in the log file.
Could you then please check the log file for a message like this: "Error checking if template with id 'xxx' is in use"
and paste the error reason here?
Ciao, Roberto
comment:2 follow-up: 3 Changed 12 years ago by
Replying to seccanj:
Hi Marcel, I tried to reproduce this problem but couldn't.
Checking the code, saving a template can give this message also if some error occurs while checking if it is in use gives an error. In this case, anyway, the error is printed in the log file.
Could you then please check the log file for a message like this: "Error checking if template with id 'xxx' is in use"
and paste the error reason here?
Ciao, Roberto
Hi Roberto
speculatively, the id of this template is 0, which seems to be a default value picked up by the zombie templates #10567.
Trying to delete a test case template with such an id == 0 does not lead to an error in the logfile, the template is simply signaled as in use.
Werner
comment:3 Changed 12 years ago by
Hi Roberto
I've made some more tests. When I create new templates now I can easily edit them, assign them to test catalogs, remove the assignment and then delete them.
All three test case templates I created a week ago can't be deleted. They seem to be assigned to some test catalogs that don't exist anymore. When creating a new sub catalog, one of the test case templates was automatically assigned to the new catalog. So maybe the template id is stored in some default table.
Hope this additional information helps.
Best regards, Marcel
Template delete warning