Small changes to the MasterQA Report layout

This commit is contained in:
Michael Mintz 2017-04-05 00:24:27 -04:00
parent c16ef05a9c
commit 305737024c
1 changed files with 9 additions and 5 deletions

View File

@ -263,13 +263,17 @@ class __MasterQATestCase__(BaseCase):
if line[1] == '"FAILED!"' or line[1] == '"ERROR!"':
if not any_screenshots:
any_screenshots = True
failure_table += '''<thead><tr><th>SCREENSHOT FILE
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</th><th>LOCATION OF FAILURE</th></tr></thead>'''
failure_table += '''<thead><tr>
<th>SCREENSHOT FILE&nbsp;&nbsp;&nbsp;&nbsp;</th>
<th>LOCATION OF FAILURE</th>
</tr></thead>'''
display_url = line[3]
if len(display_url) > 60:
display_url = display_url[0:58] + '...'
line = '<a href="%s">%s</a>' % (
"file://" + log_path + '/' + line[2], line[2]) + '''
&nbsp;&nbsp;<td>
''' + '<a href="%s">%s</a>' % (line[3], line[3])
&nbsp;&nbsp;&nbsp;&nbsp;<td>
''' + '<a href="%s">%s</a>' % (line[3], display_url)
line = line.replace('"', '')
failure_table += '<tr><td>%s</tr>\n' % line
failure_table += '</tbody></table>'