Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1551 closed defect (fixed)

Validating Test Scripts crashes if no testtemplates.xml exists.

Reported by: andy@… Owned by: edunne
Priority: normal Component: TestCaseManagementPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


Before I added the testtemplates.xml to the subversion-test-case directory, the Link "Validate Test Scripts" crashed with the following error message:

Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/web/", line 387, in dispatch_request
  File "/var/lib/python-support/python2.5/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/testManagementPlugin/", line 82, in process_requestAttributeError: 'NoneType' object has no attribute 'getTemplateNames' when 
    template, content_type = pageProvider.process_testmanager_request( req )
  File "build/bdist.linux-i686/egg/testManagementPlugin/", line 34, in process_testmanager_requestAttributeError: 'NoneType' object has no attribute 'getTemplateNames' when clicking on "Validate Test Scripts"
    for name in projTemplates.getTemplateNames() :
AttributeError: 'NoneType' object has no attribute 'getTemplateNames'

I'm using Trac 0.10.3, but I don't think that's important =)

Attachments (0)

Change History (3)

comment:1 Changed 17 years ago by anonymous

Yeah, if the test templates.xml file doesn't exist I should simply add that as one of the verification steps. I assumed that it would exist, but that's probably a bad assumption.

thanks for the feedback.

comment:2 Changed 17 years ago by anonymous

Resolution: fixed
Status: newclosed

this is now fixed in the trunk at rev 2260. I'll merge the change into the 0.3 branch shortly.

comment:3 Changed 17 years ago by andy@…

wrong place here, I know. But could you please tell me your e-mail address? I'd like to ask you some questions. The e-mail address given in the TracWiki is not working... thanks.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain edunne.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.