Added: ace/trunk/ace-obr-servlet/test-output/old/Default suite/toc.html URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-servlet/test-output/old/Default%20suite/toc.html?rev=1350645&view=auto ============================================================================== --- ace/trunk/ace-obr-servlet/test-output/old/Default suite/toc.html (added) +++ ace/trunk/ace-obr-servlet/test-output/old/Default suite/toc.html Fri Jun 15 14:51:54 2012 @@ -0,0 +1,30 @@ +<html> +<head> +<title>Results for Default suite</title> +<link href="../testng.css" rel="stylesheet" type="text/css" /> +<link href="../my-testng.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<h3><p align="center">Results for<br/><em>Default suite</em></p></h3> +<table border='1' width='100%'> +<tr valign='top'> +<td>1 test</td> +<td><a target='mainFrame' href='classes.html'>1 class</a></td> +<td>6 methods:<br/> + <a target='mainFrame' href='methods.html'>chronological</a><br/> + <a target='mainFrame' href='methods-alphabetical.html'>alphabetical</a><br/> + <a target='mainFrame' href='methods-not-run.html'>not run (0)</a></td> +</tr> +<tr> +<td><a target='mainFrame' href='groups.html'>1 group</a></td> +<td><a target='mainFrame' href='reporter-output.html'>reporter output</a></td> +<td><a target='mainFrame' href='testng.xml.html'>testng.xml</a></td> +</tr></table> +<table width='100%' class='test-passed'> +<tr><td> +<table style='width: 100%'><tr><td valign='top'>Default test (6/0/0)</td><td valign='top' align='right'> + <a href='Default test.html' target='mainFrame'>Results</a> +</td></tr></table> +</td></tr><p/> +</table> +</body></html> \ No newline at end of file
Added: ace/trunk/ace-obr-servlet/test-output/old/index.html URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-servlet/test-output/old/index.html?rev=1350645&view=auto ============================================================================== --- ace/trunk/ace-obr-servlet/test-output/old/index.html (added) +++ ace/trunk/ace-obr-servlet/test-output/old/index.html Fri Jun 15 14:51:54 2012 @@ -0,0 +1,9 @@ +<html> +<head><title>Test results</title><link href="./testng.css" rel="stylesheet" type="text/css" /> +<link href="./my-testng.css" rel="stylesheet" type="text/css" /> +</head><body> +<h2><p align='center'>Test results</p></h2> +<table border='1' width='100%' class='main-page'><tr><th>Suite</th><th>Passed</th><th>Failed</th><th>Skipped</th><th>testng.xml</th></tr> +<tr align='center' class='invocation-passed'><td><em>Total</em></td><td><em>6</em></td><td><em>0</em></td><td><em>0</em></td><td> </td></tr> +<tr align='center' class='invocation-passed'><td><a href='Default suite/index.html'>Default suite</a></td> +<td>6</td><td>0</td><td>0</td><td><a href='Default suite/testng.xml.html'>Link</a></td></tr></table></body></html> Added: ace/trunk/ace-obr-servlet/test-output/passed.png URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-servlet/test-output/passed.png?rev=1350645&view=auto ============================================================================== Binary file - no diff available. Propchange: ace/trunk/ace-obr-servlet/test-output/passed.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: ace/trunk/ace-obr-servlet/test-output/skipped.png URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-servlet/test-output/skipped.png?rev=1350645&view=auto ============================================================================== Binary file - no diff available. Propchange: ace/trunk/ace-obr-servlet/test-output/skipped.png ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: ace/trunk/ace-obr-servlet/test-output/testng-failed.xml URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-servlet/test-output/testng-failed.xml?rev=1350645&view=auto ============================================================================== --- ace/trunk/ace-obr-servlet/test-output/testng-failed.xml (added) +++ ace/trunk/ace-obr-servlet/test-output/testng-failed.xml Fri Jun 15 14:51:54 2012 @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> +<suite name="Failed suite [Default suite]"> + <test name="Default test(failed)" preserve-order="true"> + <classes> + <class name="org.apache.ace.obr.servlet.BundleServletTest"> + <methods> + <include name="tearDown"/> + <include name="setUp"/> + <include name="testPostResourceInPath"/> + </methods> + </class> <!-- org.apache.ace.obr.servlet.BundleServletTest --> + </classes> + </test> <!-- Default test(failed) --> +</suite> <!-- Failed suite [Default suite] --> Added: ace/trunk/ace-obr-servlet/test-output/testng-reports.css URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-servlet/test-output/testng-reports.css?rev=1350645&view=auto ============================================================================== --- ace/trunk/ace-obr-servlet/test-output/testng-reports.css (added) +++ ace/trunk/ace-obr-servlet/test-output/testng-reports.css Fri Jun 15 14:51:54 2012 @@ -0,0 +1,302 @@ +body { + margin: 0px 0px 5px 5px; +} + +ul { + margin: 0px; +} + +li { + list-style-type: none; +} + +a { + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +.navigator-selected { + background: #ffa500; +} + +.wrapper { + overflow: hidden; +} + +.navigator-root { + margin-top: 60px; + float: left; + width: 400px; + height: 100%; + overflow-y: auto; +} + +.main-panel-root { + margin-top: 60px; +} + +.suite { + margin: 0px 10px 10px 0px; + background-color: #fff8dc; +} + +.suite-name { + padding-left: 10px; + font-size: 25px; + font-family: Times; +} + +.main-panel-header { + padding: 5px; + background-color: #9FB4D9; //afeeee; + font-family: monospace; + font-size: 18px; +} + +.main-panel-content { + padding: 5px; + margin-bottom: 10px; + background-color: #DEE8FC; //d0ffff; +} + +.rounded-window { + border-radius: 10px; + border-style: solid; + border-width: 1px; +} + +.rounded-window-top { + border-top-right-radius: 10px 10px; + border-top-left-radius: 10px 10px; + border-style: solid; + border-width: 1px; +} + +.light-rounded-window-top { + border-top-right-radius: 10px 10px; + border-top-left-radius: 10px 10px; +} + +.rounded-window-bottom { + border-style: solid; + border-width: 0px 1px 1px 1px; + border-bottom-right-radius: 10px 10px; + border-bottom-left-radius: 10px 10px; +} + +.method-name { + font-size: 12px; + font-family: monospace; +} + +.method-content { + border-style: solid; + border-width: 0px 0px 1px 0px; + margin-bottom: 10; + padding-bottom: 5px; + width: 80%; +} + +.parameters { + font-size: 14px; + font-family: monospace; +} + +.stack-trace { + white-space: pre; + font-family: monospace; + font-size: 12px; + margin-top: 0px; + margin-left: 20px; +} + +.testng-xml { + font-family: monospace; +} + +.method-list-content { + margin-left: 10px; +} + +.navigator-suite-content { + margin-left: 10px; + font: 12px 'Lucida Grande'; +} + +.suite-section-title { + margin-top: 10px; + width: 80%; + border-style: solid; + border-width: 1px 0px 0px 0px; + font-family: Times; + font-size: 18px; + font-weight: bold; +} + +.suite-section-content { + list-style-image: url(bullet_point.png); +} + +.top-banner-root { + position: fixed; + width: 100%; + padding: 5px; + margin: 0px 0px 5px 0px; + height: 45px; + background-color: #0066ff; + font-family: Times; + color: #fff; + text-align: center; +} + +.top-banner-title-font { + font-size: 25px; +} + +.test-name { + font-family: 'Lucida Grande'; + font-size: 16px; +} + +.suite-icon { + padding: 5px; + float: right; + height: 20; +} + +.test-group { + font: 20px 'Lucida Grande'; + margin: 5px 5px 10px 5px; + border-width: 0px 0px 1px 0px; + border-style: solid; + padding: 5px; +} + +.test-group-name { + font-weight: bold; +} + +.method-in-group { + font-size: 16px; + margin-left: 80px; +} + +table.google-visualization-table-table { + width: 100%; +} + +.reporter-method-name { + font-size: 14px; + font-family: monospace; +} + +.reporter-method-output-div { + padding: 5px; + margin: 0px 0px 5px 20px; + font-size: 12px; + font-family: monospace; + border-width: 0px 0px 0px 1px; + border-style: solid; +} + +.ignored-class-div { + font-size: 14px; + font-family: monospace; +} + +.ignored-methods-div { + padding: 5px; + margin: 0px 0px 5px 20px; + font-size: 12px; + font-family: monospace; + border-width: 0px 0px 0px 1px; + border-style: solid; +} + +.border-failed { + border-top-left-radius: 10px 10px; + border-bottom-left-radius: 10px 10px; + border-style: solid; + border-width: 0px 0px 0px 10px; + border-color: #f00; +} + +.border-skipped { + border-top-left-radius: 10px 10px; + border-bottom-left-radius: 10px 10px; + border-style: solid; + border-width: 0px 0px 0px 10px; + border-color: #edc600; +} + +.border-passed { + border-top-left-radius: 10px 10px; + border-bottom-left-radius: 10px 10px; + border-style: solid; + border-width: 0px 0px 0px 10px; + border-color: #19f52d; +} + +.times-div { + text-align: center; + padding: 5px; +} + +.suite-total-time { + font: 16px 'Lucida Grande'; +} + +.configuration-suite { + margin-left: 20px; +} + +.configuration-test { + margin-left: 40px; +} + +.configuration-class { + margin-left: 60px; +} + +.configuration-method { + margin-left: 80px; +} + +.test-method { + margin-left: 100px; +} + +.chronological-class { + background-color: #0ccff; + border-style: solid; + border-width: 0px 0px 1px 1px; +} + +.method-start { + float: right; +} + +.chronological-class-name { + padding: 0px 0px 0px 5px; + color: #008; +} + +.after, .before, .test-method { + font-family: monospace; + font-size: 14px; +} + +.navigator-suite-header { + font-size: 22px; + margin: 0px 10px 5px 0px; + background-color: #deb887; + text-align: center; +} + +.collapse-all-icon { + padding: 5px; + float: right; +} Added: ace/trunk/ace-obr-servlet/test-output/testng-reports.js URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-servlet/test-output/testng-reports.js?rev=1350645&view=auto ============================================================================== --- ace/trunk/ace-obr-servlet/test-output/testng-reports.js (added) +++ ace/trunk/ace-obr-servlet/test-output/testng-reports.js Fri Jun 15 14:51:54 2012 @@ -0,0 +1,130 @@ +$(document).ready(function() { + $('a.navigator-link').click(function() { + // Extract the panel for this link + var panel = getPanelName($(this)); + + // Mark this link as currently selected + $('.navigator-link').parent().removeClass('navigator-selected'); + $(this).parent().addClass('navigator-selected'); + + showPanel(panel); + }); + + installMethodHandlers('failed'); + installMethodHandlers('skipped'); + installMethodHandlers('passed', true); // hide passed methods by default + + $('a.method').click(function() { + showMethod($(this)); + return false; + }); + + // Hide all the panels and display the first one (do this last + // to make sure the click() will invoke the listeners) + $('.panel').hide(); + $('.navigator-link').first().click(); + + // Collapse/expand the suites + $('a.collapse-all-link').click(function() { + var contents = $('.navigator-suite-content'); + if (contents.css('display') == 'none') { + contents.show(); + } else { + contents.hide(); + } + }); + + // Keep the navigator div always visible + var $scrollingDiv = $(".navigator-root"); + $(window).scroll(function() { + $scrollingDiv.css('height', $(window).height() - 65); + $scrollingDiv.stop() + .animate({"marginTop": ($(window).scrollTop() + 60) + "px"} ); + }); +}); + +// The handlers that take care of showing/hiding the methods +function installMethodHandlers(name, hide) { + function getContent(t) { + return $('.method-list-content.' + name + "." + t.attr('panel-name')); + } + + function getHideLink(t, name) { + var s = 'a.hide-methods.' + name + "." + t.attr('panel-name'); + return $(s); + } + + function getShowLink(t, name) { + return $('a.show-methods.' + name + "." + t.attr('panel-name')); + } + + function getMethodPanelClassSel(element, name) { + var panelName = getPanelName(element); + var sel = '.' + panelName + "-class-" + name; + return $(sel); + } + + $('a.hide-methods.' + name).click(function() { + var w = getContent($(this)); + w.hide(); + getHideLink($(this), name).hide(); + getShowLink($(this), name).show(); + getMethodPanelClassSel($(this), name).hide(); + }); + + $('a.show-methods.' + name).click(function() { + var w = getContent($(this)); + w.show(); + getHideLink($(this), name).show(); + getShowLink($(this), name).hide(); + showPanel(getPanelName($(this))); + getMethodPanelClassSel($(this), name).show(); + }); + + if (hide) { + $('a.hide-methods.' + name).click(); + } else { + $('a.show-methods.' + name).click(); + } +} + +function getHashForMethod(element) { + return element.attr('hash-for-method'); +} + +function getPanelName(element) { + return element.attr('panel-name'); +} + +function showPanel(panelName) { + $('.panel').hide(); + var panel = $('.panel[panel-name="' + panelName + '"]'); + panel.show(); +} + +function showMethod(element) { + var hashTag = getHashForMethod(element); + var panelName = getPanelName(element); + showPanel(panelName); + var current = document.location.href; + var base = current.substring(0, current.indexOf('#')) + document.location.href = base + '#' + hashTag; + var newPosition = $(document).scrollTop() - 65; + $(document).scrollTop(newPosition); +} + +function drawTable() { + for (var i = 0; i < suiteTableInitFunctions.length; i++) { + window[suiteTableInitFunctions[i]](); + } + + for (var k in window.suiteTableData) { + var v = window.suiteTableData[k]; + var div = v.tableDiv; + var data = v.tableData + var table = new google.visualization.Table(document.getElementById(div)); + table.draw(data, { + showRowNumber : false + }); + } +} Added: ace/trunk/ace-obr-servlet/test-output/testng-results.xml URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-servlet/test-output/testng-results.xml?rev=1350645&view=auto ============================================================================== --- ace/trunk/ace-obr-servlet/test-output/testng-results.xml (added) +++ ace/trunk/ace-obr-servlet/test-output/testng-results.xml Fri Jun 15 14:51:54 2012 @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<testng-results skipped="0" failed="0" total="6" passed="6"> + <reporter-output> + </reporter-output> + <suite name="Default suite" duration-ms="86" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + <groups> + <group name="unit"> + <method signature="BundleServletTest.testGetInValidResource()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testGetInValidResource" class="org.apache.ace.obr.servlet.BundleServletTest"/> + <method signature="BundleServletTest.testGetValidResource()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testGetValidResource" class="org.apache.ace.obr.servlet.BundleServletTest"/> + <method signature="BundleServletTest.testPostResource()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testPostResource" class="org.apache.ace.obr.servlet.BundleServletTest"/> + <method signature="BundleServletTest.testPostResourceInPath()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testPostResourceInPath" class="org.apache.ace.obr.servlet.BundleServletTest"/> + <method signature="BundleServletTest.testRemoveResource()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testRemoveResource" class="org.apache.ace.obr.servlet.BundleServletTest"/> + <method signature="BundleServletTest.testRemoveResourceInPath()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testRemoveResourceInPath" class="org.apache.ace.obr.servlet.BundleServletTest"/> + </group> <!-- unit --> + </groups> + <test name="Default test" duration-ms="86" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + <class name="org.apache.ace.obr.servlet.BundleServletTest"> + <test-method status="PASS" signature="setUp()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="setUp" is-config="true" duration-ms="49" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- setUp --> + <test-method status="PASS" signature="testGetInValidResource()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testGetInValidResource" duration-ms="4" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- testGetInValidResource --> + <test-method status="PASS" signature="tearDown()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="tearDown" is-config="true" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- tearDown --> + <test-method status="PASS" signature="setUp()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="setUp" is-config="true" duration-ms="1" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- setUp --> + <test-method status="PASS" signature="testGetValidResource()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testGetValidResource" duration-ms="8" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- testGetValidResource --> + <test-method status="PASS" signature="tearDown()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="tearDown" is-config="true" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- tearDown --> + <test-method status="PASS" signature="setUp()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="setUp" is-config="true" duration-ms="1" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- setUp --> + <test-method status="PASS" signature="testPostResource()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testPostResource" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- testPostResource --> + <test-method status="PASS" signature="tearDown()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="tearDown" is-config="true" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- tearDown --> + <test-method status="PASS" signature="setUp()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="setUp" is-config="true" duration-ms="1" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- setUp --> + <test-method status="PASS" signature="testPostResourceInPath()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testPostResourceInPath" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- testPostResourceInPath --> + <test-method status="PASS" signature="tearDown()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="tearDown" is-config="true" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- tearDown --> + <test-method status="PASS" signature="setUp()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="setUp" is-config="true" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- setUp --> + <test-method status="PASS" signature="testRemoveResource()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testRemoveResource" duration-ms="1" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- testRemoveResource --> + <test-method status="PASS" signature="tearDown()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="tearDown" is-config="true" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- tearDown --> + <test-method status="PASS" signature="setUp()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="setUp" is-config="true" duration-ms="1" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- setUp --> + <test-method status="PASS" signature="testRemoveResourceInPath()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="testRemoveResourceInPath" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- testRemoveResourceInPath --> + <test-method status="PASS" signature="tearDown()[pri:0, instance:org.apache.ace.obr.servlet.BundleServletTest@c5a67c9]" name="tearDown" is-config="true" duration-ms="0" started-at="2012-06-15T16:51:00Z" finished-at="2012-06-15T16:51:00Z"> + </test-method> <!-- tearDown --> + </class> <!-- org.apache.ace.obr.servlet.BundleServletTest --> + </test> <!-- Default test --> + </suite> <!-- Default suite --> +</testng-results> Added: ace/trunk/ace-obr-servlet/test-output/testng.css URL: http://svn.apache.org/viewvc/ace/trunk/ace-obr-servlet/test-output/testng.css?rev=1350645&view=auto ============================================================================== --- ace/trunk/ace-obr-servlet/test-output/testng.css (added) +++ ace/trunk/ace-obr-servlet/test-output/testng.css Fri Jun 15 14:51:54 2012 @@ -0,0 +1,9 @@ +.invocation-failed, .test-failed { background-color: #DD0000; } +.invocation-percent, .test-percent { background-color: #006600; } +.invocation-passed, .test-passed { background-color: #00AA00; } +.invocation-skipped, .test-skipped { background-color: #CCCC00; } + +.main-page { + font-size: x-large; +} +
