Ticket #10569 (closed defect: fixed)

Opened 7 months ago

Last modified 1 month ago

Can't delete unused test case templates

Reported by: anonymous Assigned to: seccanj
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

TemplateDelete.jpg (208.8 kB) - added by marcel.tschanen@wy.by on 10/29/12 14:32:15.
Template delete warning

Change History

10/29/12 14:32:15 changed by marcel.tschanen@wy.by

  • attachment TemplateDelete.jpg added.

Template delete warning

(follow-up: ↓ 2 ) 11/01/12 16:35:54 changed by 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

(in reply to: ↑ 1 ; follow-up: ↓ 3 ) 11/08/12 14:01:10 changed by wthie

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

(in reply to: ↑ 2 ) 11/08/12 21:30:20 changed by marcel.tschanen@wy.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

04/21/13 23:14:49 changed by seccanj

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in 1.6.1.


Add/Change #10569 (Can't delete unused test case templates)




Change Properties
Action