2 new revisions:
Revision: c8c9b6ca30ee
Author: Pekka Klärck
Date: Wed Jun 15 15:07:16 2011
Log: changed how log links are shown in report. i'm not particularly
happy ...
http://code.google.com/p/robotframework/source/detail?r=c8c9b6ca30ee
Revision: 10a789fa1853
Author: Pekka Klärck
Date: Wed Jun 15 15:26:32 2011
Log: generated timestamp to correct format also in report
http://code.google.com/p/robotframework/source/detail?r=10a789fa1853
==============================================================================
Revision: c8c9b6ca30ee
Author: Pekka Klärck
Date: Wed Jun 15 15:07:16 2011
Log: changed how log links are shown in report. i'm not particularly
happy on how links are shown for suites and i try to come up with a better
solution
http://code.google.com/p/robotframework/source/detail?r=c8c9b6ca30ee
Modified:
/src/robot/webcontent/report.html
=======================================
--- /src/robot/webcontent/report.html Wed Jun 15 14:42:17 2011
+++ /src/robot/webcontent/report.html Wed Jun 15 15:07:16 2011
@@ -70,7 +70,8 @@
});
function addSummary(topsuite) {
- $.tmpl(window.templates.summaryTable, topsuite,
{logURL:window.settings.logURL}).insertAfter($('#header_div'));
+ var opts = {logURL: window.settings.logURL};
+ $.tmpl(window.templates.summaryTable, topsuite,
opts).insertAfter($('#header_div'));
}
function showTotalsTab() {
@@ -158,8 +159,9 @@
function renderDetailsBySuite(name) {
var suite = testdata.suite().findSuiteByName(name);
- $.tmpl(window.templates.suiteDetails, suite, {logURL:
window.settings.logURL}).appendTo('#details_header');
- drawTestDetailsTable(suite.allTests())
+ var opts = {logURL: window.settings.logURL};
+ $.tmpl(window.templates.suiteDetails, suite,
opts).appendTo('#details_header');
+ drawTestDetailsTable(suite.allTests());
}
function drawTestDetailsTable(tests) {
@@ -338,8 +340,8 @@
<tr><th>Elapsed Time:</th><td>${times.elapsedTime}</td></tr>
{{if $item.logURL}}
<tr>
- <th></th>
- <td><a href="${$item.logURL}">See log</a></td>
+ <th>Log File:</th>
+ <td><a href="${$item.logURL}">${$item.logURL}</a></td>
</tr>
{{/if}}
</table>
@@ -363,11 +365,11 @@
<a href="#tag_${label}" onclick="tagDetailSelected('${label}');"
title="${doc}">${label}</a>
${shownInfo}
</div>
- <div class="tag_links">
- {{each links}}
+ <div class="tag_links">
+ {{each links}}
<span>[<a href="${$value.url}"
title="${$value.url}">${$value.title}</a>]</span>
- {{/each}}
- </div>
+ {{/each}}
+ </div>
</td>
{{tmpl($data) '#stat_columns'}}
</tr>
@@ -440,9 +442,9 @@
<td class="normal_whitespace">
<select id="tag_detail_selector"
onchange="tagDetailSelected(this.options[this.selectedIndex].value);">
<option value="">Select tag...</option>
- {{each tags}}
- <option value="${$value.label}">${$value.label}
${$value.shownInfo}</option>
- {{/each}}
+ {{each tags}}
+ <option value="${$value.label}">${$value.label}
${$value.shownInfo}</option>
+ {{/each}}
</select>
</td>
</tr>
@@ -456,9 +458,9 @@
<td class="normal_whitespace">
<select id="suite_detail_selector"
onchange="suiteDetailSelected(this.options[this.selectedIndex].value);">
<option value="">Select suite...</option>
- {{each suites}}
- <option
value="${$value.fullname}">${$value.fullname}</option>
- {{/each}}
+ {{each suites}}
+ <option value="${$value.fullname}">${$value.fullname}</option>
+ {{/each}}
</select>
</td>
</tr>
@@ -492,8 +494,8 @@
<script type="text/html" id="suite_details">
{{if $item.logURL}}
<tr>
- <th></th>
- <td><a href="${$item.logURL}#suite_${fullname}"
id="suite_${fullname}" title="${fullname}">See log</a></td>
+ <th>Log Link:</th>
+ <td><a href="${$item.logURL}#suite_${fullname}"
title="${fullname}">${$item.logURL}#suite_${fullname} </a></td>
</tr>
{{/if}}
{{if documentation}}
==============================================================================
Revision: 10a789fa1853
Author: Pekka Klärck
Date: Wed Jun 15 15:26:32 2011
Log: generated timestamp to correct format also in report
http://code.google.com/p/robotframework/source/detail?r=10a789fa1853
Modified:
/src/robot/webcontent/common.css
/src/robot/webcontent/report.html
=======================================
--- /src/robot/webcontent/common.css Wed Jun 15 03:39:31 2011
+++ /src/robot/webcontent/common.css Wed Jun 15 15:26:32 2011
@@ -138,8 +138,7 @@
}
#generated {
- /* TODO : Add width when timestamp in correct format
- width : 29 %; */
+ width : 29%;
float: right;
text-align: right;
font-size: 0.9em;
=======================================
--- /src/robot/webcontent/report.html Wed Jun 15 15:07:16 2011
+++ /src/robot/webcontent/report.html Wed Jun 15 15:26:32 2011
@@ -257,7 +257,7 @@
var generatedAgoMillis = window.testdata.generated().getTime();
var header = $.tmpl(window.templates.header, {
title: document.title,
- generated: window.testdata.generated().toString(),
+ generated: window.output.generatedTimestamp,
generatedAgo: util.createGeneratedAgoString(generatedAgoMillis)
});
header.appendTo($('#header_div'));