From 34baf6eef3fbe95f381aa41f62a487795ce16227 Mon Sep 17 00:00:00 2001 From: brinn <brinn> Date: Sat, 30 Jan 2010 17:46:54 +0000 Subject: [PATCH] fix: retrying when server connection hangs (merged from trunk) SVN: 14578 --- ...ion.crowd.RealCrowdAuthenticationTest.html | 83 +++++++++++++++++++ ...owd.RealCrowdAuthenticationTest.properties | 1 + ...tion.crowd.RealCrowdAuthenticationTest.xml | 5 ++ .../test-output/authentication/classes.html | 29 +++++++ .../test-output/authentication/groups.html | 3 + .../test-output/authentication/index.html | 6 ++ .../test-output/authentication/main.html | 2 + .../authentication/methods-alphabetical.html | 6 ++ .../authentication/methods-not-run.html | 2 + .../test-output/authentication/methods.html | 6 ++ .../authentication/reporter-output.html | 1 + .../authentication/testng-failed.xml | 12 +++ .../authentication/testng.xml.html | 1 + .../test-output/authentication/toc.html | 30 +++++++ .../test-output/emailable-report.html | 43 ++++++++++ authentication/test-output/index.html | 9 ++ authentication/test-output/testng-failed.xml | 12 +++ authentication/test-output/testng-results.xml | 17 ++++ authentication/test-output/testng.css | 9 ++ 19 files changed, 277 insertions(+) create mode 100644 authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.html create mode 100644 authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.properties create mode 100644 authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.xml create mode 100644 authentication/test-output/authentication/classes.html create mode 100644 authentication/test-output/authentication/groups.html create mode 100644 authentication/test-output/authentication/index.html create mode 100644 authentication/test-output/authentication/main.html create mode 100644 authentication/test-output/authentication/methods-alphabetical.html create mode 100644 authentication/test-output/authentication/methods-not-run.html create mode 100644 authentication/test-output/authentication/methods.html create mode 100644 authentication/test-output/authentication/reporter-output.html create mode 100644 authentication/test-output/authentication/testng-failed.xml create mode 100644 authentication/test-output/authentication/testng.xml.html create mode 100644 authentication/test-output/authentication/toc.html create mode 100644 authentication/test-output/emailable-report.html create mode 100644 authentication/test-output/index.html create mode 100644 authentication/test-output/testng-failed.xml create mode 100644 authentication/test-output/testng-results.xml create mode 100644 authentication/test-output/testng.css diff --git a/authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.html b/authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.html new file mode 100644 index 00000000000..dd59d837cc7 --- /dev/null +++ b/authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.html @@ -0,0 +1,83 @@ +<html> +<head> +<title>TestNG: ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest</title> +<link href="../testng.css" rel="stylesheet" type="text/css" /> +<link href="../my-testng.css" rel="stylesheet" type="text/css" /> + +<style type="text/css"> +.log { display: none;} +.stack-trace { display: none;} +</style> +<script type="text/javascript"> +<!-- +function flip(e) { + current = e.style.display; + if (current == 'block') { + e.style.display = 'none'; + return 0; + } + else { + e.style.display = 'block'; + return 1; + } +} + +function toggleBox(szDivId, elem, msg1, msg2) +{ + var res = -1; if (document.getElementById) { + res = flip(document.getElementById(szDivId)); + } + else if (document.all) { + // this is the way old msie versions work + res = flip(document.all[szDivId]); + } + if(elem) { + if(res == 0) elem.innerHTML = msg1; else elem.innerHTML = msg2; + } + +} + +function toggleAllBoxes() { + if (document.getElementsByTagName) { + d = document.getElementsByTagName('div'); + for (i = 0; i < d.length; i++) { + if (d[i].className == 'log') { + flip(d[i]); + } + } + } +} + +// --> +</script> + +</head> +<body> +<h2 align='center'>ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest</h2><table border='1' align="center"> +<tr> +<td>Tests passed/Failed/Skipped:</td><td>1/0/0</td> +</tr><tr> +<td>Started on:</td><td>Thu Jan 07 14:08:56 CET 2010</td> +</tr> +<tr><td>Total time:</td><td>0 seconds (868 ms)</td> +</tr><tr> +<td>Included groups:</td><td></td> +</tr><tr> +<td>Excluded groups:</td><td></td> +</tr> +</table><p/> +<small><i>(Hover the method name to see the test class name)</i></small><p/> +<table width='100%' border='1' class='invocation-passed'> +<tr><td colspan='3' align='center'><b>PASSED TESTS</b></td></tr> +<tr><td><b>Test method</b></td> +<td width="10%"><b>Time (seconds)</b></td> +<td width="30%"><b>Exception</b></td> +</tr> +<tr> +<td title='ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.testCrowdTestAccount()'>testCrowdTestAccount</td> +<td>0</td> +<td></td> +</tr> +</table><p> +</body> +</html> \ No newline at end of file diff --git a/authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.properties b/authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.properties new file mode 100644 index 00000000000..b7de752055a --- /dev/null +++ b/authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.properties @@ -0,0 +1 @@ +[SuiteResult ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest] \ No newline at end of file diff --git a/authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.xml b/authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.xml new file mode 100644 index 00000000000..dc278daa9a8 --- /dev/null +++ b/authentication/test-output/authentication/ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<testsuite name="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest" failures="0" tests="1" time="0.868" errors="0"> + <properties/> + <testcase name="testCrowdTestAccount" time="0.818" classname="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest"/> +</testsuite> diff --git a/authentication/test-output/authentication/classes.html b/authentication/test-output/authentication/classes.html new file mode 100644 index 00000000000..735e006989e --- /dev/null +++ b/authentication/test-output/authentication/classes.html @@ -0,0 +1,29 @@ +<table border='1'> +<tr> +<th>Class name</th> +<th>Method name</th> +<th>Groups</th> +</tr><tr> +<td>ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest</td> +<td> </td><td> </td></tr> +<tr> +<td align='center' colspan='3'>@Test</td> +</tr> +<tr> +<td> </td> +<td>testCrowdTestAccount</td> +<td>broken </td> +</tr> +<tr> +<td align='center' colspan='3'>@BeforeClass</td> +</tr> +<tr> +<td align='center' colspan='3'>@BeforeMethod</td> +</tr> +<tr> +<td align='center' colspan='3'>@AfterMethod</td> +</tr> +<tr> +<td align='center' colspan='3'>@AfterClass</td> +</tr> +</table> diff --git a/authentication/test-output/authentication/groups.html b/authentication/test-output/authentication/groups.html new file mode 100644 index 00000000000..3a3b7a4ead9 --- /dev/null +++ b/authentication/test-output/authentication/groups.html @@ -0,0 +1,3 @@ +<h2>Groups used for this test run</h2><table border="1"> +<tr> <td align="center"><b>Group name</b></td><td align="center"><b>Methods</b></td></tr><tr><td>broken</td><td>ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.testCrowdTestAccount()<br/></td></tr> +</table> diff --git a/authentication/test-output/authentication/index.html b/authentication/test-output/authentication/index.html new file mode 100644 index 00000000000..35defd96d0f --- /dev/null +++ b/authentication/test-output/authentication/index.html @@ -0,0 +1,6 @@ +<html><head><title>Results for authentication</title></head> +<frameset cols="26%,74%"> +<frame src="toc.html" name="navFrame"> +<frame src="main.html" name="mainFrame"> +</frameset> +</html> diff --git a/authentication/test-output/authentication/main.html b/authentication/test-output/authentication/main.html new file mode 100644 index 00000000000..2c9749d1d66 --- /dev/null +++ b/authentication/test-output/authentication/main.html @@ -0,0 +1,2 @@ +<html><head><title>Results for authentication</title></head> +<body>Select a result on the left-hand pane.</body></html> diff --git a/authentication/test-output/authentication/methods-alphabetical.html b/authentication/test-output/authentication/methods-alphabetical.html new file mode 100644 index 00000000000..d7c4e145a2a --- /dev/null +++ b/authentication/test-output/authentication/methods-alphabetical.html @@ -0,0 +1,6 @@ +<h2>Methods run, sorted chronologically</h2><h3>>> means before, << means after</h3><p/><br/><em>authentication</em><p/><small><i>(Hover the method name to see the test class name)</i></small><p/> +<table border="1"> +<tr><th>Time</th><th>Delta (ms)</th><th>Suite<br>configuration</th><th>Test<br>configuration</th><th>Class<br>configuration</th><th>Groups<br>configuration</th><th>Method<br>configuration</th><th>Test<br>method</th><th>Thread</th><th>Instances</th></tr> +<tr bgcolor="b9786d"> <td>10/01/07 14:08:56</td> <td>0</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td title="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.testCrowdTestAccount()">testCrowdTestAccount</td> + <td>main@12741775</td> <td></td> </tr> +</table> diff --git a/authentication/test-output/authentication/methods-not-run.html b/authentication/test-output/authentication/methods-not-run.html new file mode 100644 index 00000000000..54b14cb854b --- /dev/null +++ b/authentication/test-output/authentication/methods-not-run.html @@ -0,0 +1,2 @@ +<h2>Methods that were not run</h2><table> +</table> \ No newline at end of file diff --git a/authentication/test-output/authentication/methods.html b/authentication/test-output/authentication/methods.html new file mode 100644 index 00000000000..d7c4e145a2a --- /dev/null +++ b/authentication/test-output/authentication/methods.html @@ -0,0 +1,6 @@ +<h2>Methods run, sorted chronologically</h2><h3>>> means before, << means after</h3><p/><br/><em>authentication</em><p/><small><i>(Hover the method name to see the test class name)</i></small><p/> +<table border="1"> +<tr><th>Time</th><th>Delta (ms)</th><th>Suite<br>configuration</th><th>Test<br>configuration</th><th>Class<br>configuration</th><th>Groups<br>configuration</th><th>Method<br>configuration</th><th>Test<br>method</th><th>Thread</th><th>Instances</th></tr> +<tr bgcolor="b9786d"> <td>10/01/07 14:08:56</td> <td>0</td> <td> </td><td> </td><td> </td><td> </td><td> </td><td title="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.testCrowdTestAccount()">testCrowdTestAccount</td> + <td>main@12741775</td> <td></td> </tr> +</table> diff --git a/authentication/test-output/authentication/reporter-output.html b/authentication/test-output/authentication/reporter-output.html new file mode 100644 index 00000000000..063bc2e96fd --- /dev/null +++ b/authentication/test-output/authentication/reporter-output.html @@ -0,0 +1 @@ +<h2>Reporter output</h2><table></table> \ No newline at end of file diff --git a/authentication/test-output/authentication/testng-failed.xml b/authentication/test-output/authentication/testng-failed.xml new file mode 100644 index 00000000000..2ca0c5276af --- /dev/null +++ b/authentication/test-output/authentication/testng-failed.xml @@ -0,0 +1,12 @@ +<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> +<suite thread-count="5" skipfailedinvocationCounts="false" verbose="1" name="Failed suite [authentication]" junit="false" annotations="JDK"> + <test name="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest(failed)" junit="false" annotations="JDK"> + <classes> + <class name="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest"> + <methods> + <include name="testCrowdTestAccount"/> + </methods> + </class> + </classes> + </test> +</suite> diff --git a/authentication/test-output/authentication/testng.xml.html b/authentication/test-output/authentication/testng.xml.html new file mode 100644 index 00000000000..1a47e3aaae6 --- /dev/null +++ b/authentication/test-output/authentication/testng.xml.html @@ -0,0 +1 @@ +<html><head><title>testng.xml for authentication</title></head><body><tt><!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"><br/><suite thread-count="5" skipfailedinvocationCounts="false" verbose="1" name="authentication" junit="false" annotations="JDK"><br/> <test verbose="2" name="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest" junit="false" annotations="JDK"><br/> <classes><br/> <class name="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest"/><br/> </classes><br/> </test><br/></suite><br/></tt></body></html> \ No newline at end of file diff --git a/authentication/test-output/authentication/toc.html b/authentication/test-output/authentication/toc.html new file mode 100644 index 00000000000..05c0bb068fb --- /dev/null +++ b/authentication/test-output/authentication/toc.html @@ -0,0 +1,30 @@ +<html> +<head> +<title>Results for authentication</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>authentication</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>1 method:<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'>ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest (1/0/0)</td><td valign='top' align='right'> + <a href='ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.html' target='mainFrame'>Results</a> +</td></tr></table> +</td></tr><p/> +</table> +</body></html> \ No newline at end of file diff --git a/authentication/test-output/emailable-report.html b/authentication/test-output/emailable-report.html new file mode 100644 index 00000000000..c447bdcffd8 --- /dev/null +++ b/authentication/test-output/emailable-report.html @@ -0,0 +1,43 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>TestNG: Unit Test</title> +<style type="text/css"> +table caption,table.info_table,table.param,table.passed,table.failed {margin-bottom:10px;border:1px solid #000099;border-collapse:collapse;empty-cells:show;} +table.info_table td,table.info_table th,table.param td,table.param th,table.passed td,table.passed th,table.failed td,table.failed th { +border:1px solid #000099;padding:.25em .5em .25em .5em +} +table.param th {vertical-align:bottom} +td.numi,th.numi,td.numi_attn { +text-align:right +} +tr.total td {font-weight:bold} +table caption { +text-align:center;font-weight:bold; +} +table.passed tr.stripe td,table tr.passedodd td {background-color: #00AA00;} +table.passed td,table tr.passedeven td {background-color: #33FF33;} +table.passed tr.stripe td,table tr.skippedodd td {background-color: #cccccc;} +table.passed td,table tr.skippedodd td {background-color: #dddddd;} +table.failed tr.stripe td,table tr.failedodd td,table.param td.numi_attn {background-color: #FF3333;} +table.failed td,table tr.failedeven td,table.param tr.stripe td.numi_attn {background-color: #DD0000;} +tr.stripe td,tr.stripe th {background-color: #E6EBF9;} +p.totop {font-size:85%;text-align:center;border-bottom:2px black solid} +div.shootout {padding:2em;border:3px #4854A8 solid} +</style> +</head> +<body> +<table cellspacing=0 cellpadding=0 class="param"> +<tr><th>Test</th><th class="numi">Methods<br/>Passed</th><th class="numi">Scenarios<br/>Passed</th><th class="numi"># skipped</th><th class="numi"># failed</th><th class="numi">Total<br/>Time</th><th class="numi">Included<br/>Groups</th><th class="numi">Excluded<br/>Groups</th></tr> +<tr><td style="text-align:left;padding-right:2em">ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest</td><td class="numi">1</td><td class="numi">1</td><td class="numi">0</td><td class="numi">0</td><td class="numi">0.9 seconds</td><td class="numi"></td><td class="numi"></td></tr> +</table> +<a id="summary"></a> +<table cellspacing=0 cellpadding=0 class="passed"> +<tr><th>Class</th><th>Method</th><th># of<br/>Scenarios</th><th>Time<br/>(Msecs)</th></tr> +<tr><th colspan="4">ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest — passed</th></tr> +<tr class="passedodd"><td rowspan="1">ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest<td><a href="#m1">testCrowdTestAccount (broken)</a></td><td class="numi">1</td><td class="numi">818</td></tr> +</table> +<h1>ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest</h1> +<a id="m1"></a><h2>ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest:testCrowdTestAccount</h2> +<p class="totop"><a href="#summary">back to summary</a></p> +</body></html> diff --git a/authentication/test-output/index.html b/authentication/test-output/index.html new file mode 100644 index 00000000000..fc180bb8e42 --- /dev/null +++ b/authentication/test-output/index.html @@ -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>1</em></td><td><em>0</em></td><td><em>0</em></td><td> </td></tr> +<tr align='center' class='invocation-passed'><td><a href='authentication/index.html'>authentication</a></td> +<td>1</td><td>0</td><td>0</td><td><a href='authentication/testng.xml.html'>Link</a></td></tr></table></body></html> diff --git a/authentication/test-output/testng-failed.xml b/authentication/test-output/testng-failed.xml new file mode 100644 index 00000000000..2ca0c5276af --- /dev/null +++ b/authentication/test-output/testng-failed.xml @@ -0,0 +1,12 @@ +<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> +<suite thread-count="5" skipfailedinvocationCounts="false" verbose="1" name="Failed suite [authentication]" junit="false" annotations="JDK"> + <test name="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest(failed)" junit="false" annotations="JDK"> + <classes> + <class name="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest"> + <methods> + <include name="testCrowdTestAccount"/> + </methods> + </class> + </classes> + </test> +</suite> diff --git a/authentication/test-output/testng-results.xml b/authentication/test-output/testng-results.xml new file mode 100644 index 00000000000..732f12079a1 --- /dev/null +++ b/authentication/test-output/testng-results.xml @@ -0,0 +1,17 @@ +<testng-results> + <reporter-output> + </reporter-output> + <suite name="authentication"> + <groups> + <group name="broken"> + <method signature="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest.testCrowdTestAccount()" name="testCrowdTestAccount" class="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest"/> + </group> + </groups> + <test name="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest"> + <class name="ch.systemsx.cisd.authentication.crowd.RealCrowdAuthenticationTest"> + <test-method status="PASS" signature="testCrowdTestAccount()" name="testCrowdTestAccount" duration-ms="818" started-at="2010-01-07T14:08:56Z" finished-at="2010-01-07T14:08:57Z"> + </test-method> + </class> + </test> + </suite> +</testng-results> diff --git a/authentication/test-output/testng.css b/authentication/test-output/testng.css new file mode 100644 index 00000000000..5124ba863b3 --- /dev/null +++ b/authentication/test-output/testng.css @@ -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; +} + -- GitLab