Commit 5e925486 authored by Jérome Perrin's avatar Jérome Perrin

now TestTool_getResults directly returns the HTML



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36159 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7bdfbd01
......@@ -303,9 +303,7 @@ user_pref("capability.principal.codebase.p1.subjectName", "");""" % \
return pysvn.Client().info(os.path.dirname(__file__)).revision.number
def sendResult(self):
result_uri = urllib2.urlopen('%s/portal_tests/TestTool_getResults' % self.portal_url).readline()
print result_uri
file_content = self.openUrl(result_uri)
file_content = self.openUrl('%s/portal_tests/TestTool_getResults' % self.portal_url)
passes_re = re.compile('<th[^>]*>Tests passed</th>\n\s*<td[^>]*>([^<]*)')
failures_re = re.compile('<th[^>]*>Tests failed</th>\n\s*<td[^>]*>([^<]*)')
image_re = re.compile('<img[^>]*?>')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment