Opened 17 years ago

Last modified 17 years ago

#1213 closed defect

Problems with subversionpathtotestcases? — at Version 5

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

Description (last modified by Noah Kantrowitz)

When I try to run Test Runs, I got the following trac error:

Traceback (most recent call last):
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/var/lib/python-support/python2.4/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/testManagementPlugin/testManager.py", line 83, in process_request
  File "build/bdist.linux-i686/egg/testManagementPlugin/testRuns.py", line 40, in process_testmanager_request
  File "build/bdist.linux-i686/egg/testManagementPlugin/properties.py", line 47, in hasTestCases
  File "/var/lib/python-support/python2.4/trac/versioncontrol/cache.py", line 110, in has_node
    return self.repos.has_node(path, rev)
  File "/var/lib/python-support/python2.4/trac/versioncontrol/svn_fs.py", line 319, in has_node
    rev_root = fs.revision_root(self.fs_ptr, rev, pool())
  File "/var/lib/python-support/python2.4/libsvn/fs.py", line 224, in svn_fs_revision_root
    return apply(_fs.svn_fs_revision_root, args)
TypeError: argument number 2: 

Could it be, that the pathotestcase-variable is set wrong? But I dont' know how to set it correctly. Our trac starts at the root of the svn and the folder testcases was created under CUSTOM/scr/testcases.

Change History (5)

comment:1 Changed 17 years ago by anonymous

not sure. I'll try and duplicate the error.

comment:2 Changed 17 years ago by anonymous

I'm pretty sure it's not a path problem. If a path error occurs you should get an error page that looks like this:

There appears to be a configuration problem for the testcaseplugin. The reason could be one of the following: 
there are no testcases in subversion at the specified path 
the trac.ini file is missing the config variable SubversionPathToTestCases under the section 'testcaseExtension' 
the current user is not allowed to access the subversion repository using the current trac acount 
 

Error message if any specified here : Path in config file is does not exist in subversion...resolved path was: /testcases/asdfasdf 

I triggered this error by appending the asdfasdf to config value of subversionpathtotestcases under the testManagementExtension section in the trac config file.

I was thinking that this could be a lib version problem. Specifically the python2.4/libsvn/fs.py. Although if you can browse the source code by clicking the browse source tab in TRAC then that probably isn't the problem.

Which version of Trac do you have installed? Is it 0.10 or 0.10.1 etc? Which version of subversion?

You could try adding a leading slash to your subversionpathtotestcases value. This value gets appended to the repository_dir config value found under the TRAC section in the trac.config file.

I'd definately like to help get you up and running on this so get back to me on this whenever you can.

comment:3 Changed 17 years ago by anonymous

Owner: changed from edunne to anonymous
Status: newassigned

comment:4 Changed 17 years ago by anonymous

Owner: changed from anonymous to edunne
Status: assignednew

comment:5 Changed 17 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing formatting.

Note: See TracTickets for help on using tickets.