def runTest(self): """Check empty repository""" browser_url = self._tester.url + '/browser' self._tester.go_to_url(browser_url) # This tests the current behavior; I'm not sure it's the best # behavior. tc.follow('Last Change') tc.find('Error: No such changeset') tc.back() tc.follow('Revision Log') tc.notfind('Error: Nonexistent path')
def runTest(self): """Check empty repository""" browser_url = self._tester.url + "/browser" tc.go(browser_url) tc.url(browser_url) # This tests the current behavior; I'm not sure it's the best # behavior. tc.follow("Last Change") tc.find("Error: No such changeset") tc.back() tc.follow("Revision Log") tc.notfind("Error: Nonexistent path")
def runTest(self): """Create a directory tree in the repository""" # This should probably use the svn bindings... directories = [] for component in ('component1', 'component2'): directories.append(component) for subdir in ('branches', 'tags', 'trunk'): directories.append('/'.join([component, subdir])) commit_message = 'Create component trees.' self._testenv.svn_mkdir(directories, commit_message) browser_url = self._tester.url + '/browser' tc.go(browser_url) tc.url(browser_url) tc.find('component1') tc.find('component2') tc.follow('Last Change') tc.url(self._tester.url + '/changeset/1/') tc.find(commit_message) for directory in directories: tc.find(directory) tc.back() tc.follow('Revision Log') # (Note that our commit log message is short enough to avoid # truncation.) tc.find(commit_message) tc.follow('Timeline') # (Note that our commit log message is short enough to avoid # truncation.) tc.find(commit_message) tc.formvalue('prefs', 'ticket', False) tc.formvalue('prefs', 'milestone', False) tc.formvalue('prefs', 'wiki', False) tc.submit() tc.find('by.*admin') # (Note that our commit log message is short enough to avoid # truncation.) tc.find(commit_message)
def runTest(self): """Create a directory tree in the repository""" # This should probably use the svn bindings... directories = [] for component in ("component1", "component2"): directories.append(component) for subdir in ("branches", "tags", "trunk"): directories.append("/".join([component, subdir])) commit_message = "Create component trees." self._testenv.svn_mkdir(directories, commit_message) browser_url = self._tester.url + "/browser" tc.go(browser_url) tc.url(browser_url) tc.find("component1") tc.find("component2") tc.follow("Last Change") tc.url(self._tester.url + "/changeset/1/") tc.find(commit_message) for directory in directories: tc.find(directory) tc.back() tc.follow("Revision Log") # (Note that our commit log message is short enough to avoid # truncation.) tc.find(commit_message) tc.follow("Timeline") # (Note that our commit log message is short enough to avoid # truncation.) tc.find(commit_message) tc.formvalue("prefs", "ticket", False) tc.formvalue("prefs", "milestone", False) tc.formvalue("prefs", "wiki", False) tc.submit() tc.find("by.*admin") # (Note that our commit log message is short enough to avoid # truncation.) tc.find(commit_message)