358476 - Need Test "Harness" to ensure not too many network requests some from WTP
diff --git a/releng.wtpbuilder/distribution/jsdt.site/staticDropFiles/httplogs.php b/releng.wtpbuilder/distribution/jsdt.site/staticDropFiles/httplogs.php
new file mode 100644
index 0000000..4845485
--- /dev/null
+++ b/releng.wtpbuilder/distribution/jsdt.site/staticDropFiles/httplogs.php
@@ -0,0 +1,57 @@
+<html>
+<head>
+
+
+
+<?php
+$parts = explode("/", getcwd());
+$parts2 = explode("-", $parts[count($parts) - 1]);
+$buildName = $parts2[1];
+
+echo "<title>Diagnosic logs for HTTP requests for $buildName </title>";
+?>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css"
+       type="text/css">
+<title>Diagnosic logs for HTTP requests while Running JUnit Plug-in Tests</title>
+</head>
+<body>
+
+<h1>Diagnosic logs for HTTP requests while Running JUnit Plug-in Tests</h1>
+       <?php
+       $rootDir = "testResults/httplogstest/";
+       $hasNotes = false;
+       $aDirectory = dir($rootDir);
+       $index = 0;
+       $dirindex = 0;
+       while ($anEntry = $aDirectory->read()) {
+           if ($anEntry != "." && $anEntry != "..") {
+               if (is_file("$rootDir/$anEntry")) {
+                   $entries[$index] = $anEntry;
+                   $index++;
+               }
+           }
+       }
+       $aDirectory->close();
+
+
+       sort($entries);
+
+
+       for ($i = 0; $i < $index; $i++) {
+           $anEntry = $entries[$i];
+           $logsize = filesize("$rootDir/$anEntry");
+
+           echo "<a href=\"$rootDir/$anEntry\">$anEntry</a>  ($logsize bytes) <br />";
+           
+           $hasNotes = true;
+       }
+
+       if (!$hasNotes) {
+           echo "<br>If there are no logs here, that (likely) means the HTTP Trace Diagnostic jar needs to be copied to the test JREs lib/ext directory.";
+       }
+       ?>
+
+       </table>
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/jsdt.site/templateFiles/testResults.php.template.php b/releng.wtpbuilder/distribution/jsdt.site/templateFiles/testResults.php.template.php
index 1574fa8..3caa6ee 100644
--- a/releng.wtpbuilder/distribution/jsdt.site/templateFiles/testResults.php.template.php
+++ b/releng.wtpbuilder/distribution/jsdt.site/templateFiles/testResults.php.template.php
@@ -151,6 +151,11 @@
 contain the console output captured while running the JUnit automated
 tests.
 <br>
+These
+<a href="httpconsoleLogs.php">http logs</a>
+contain logs of http requests captured while running the JUnit automated
+tests.
+<br>
 <br>
 
 
diff --git a/releng.wtpbuilder/distribution/wtp.site/staticDropFiles/httplogs.php b/releng.wtpbuilder/distribution/wtp.site/staticDropFiles/httplogs.php
new file mode 100644
index 0000000..4845485
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtp.site/staticDropFiles/httplogs.php
@@ -0,0 +1,57 @@
+<html>
+<head>
+
+
+
+<?php
+$parts = explode("/", getcwd());
+$parts2 = explode("-", $parts[count($parts) - 1]);
+$buildName = $parts2[1];
+
+echo "<title>Diagnosic logs for HTTP requests for $buildName </title>";
+?>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css"
+       type="text/css">
+<title>Diagnosic logs for HTTP requests while Running JUnit Plug-in Tests</title>
+</head>
+<body>
+
+<h1>Diagnosic logs for HTTP requests while Running JUnit Plug-in Tests</h1>
+       <?php
+       $rootDir = "testResults/httplogstest/";
+       $hasNotes = false;
+       $aDirectory = dir($rootDir);
+       $index = 0;
+       $dirindex = 0;
+       while ($anEntry = $aDirectory->read()) {
+           if ($anEntry != "." && $anEntry != "..") {
+               if (is_file("$rootDir/$anEntry")) {
+                   $entries[$index] = $anEntry;
+                   $index++;
+               }
+           }
+       }
+       $aDirectory->close();
+
+
+       sort($entries);
+
+
+       for ($i = 0; $i < $index; $i++) {
+           $anEntry = $entries[$i];
+           $logsize = filesize("$rootDir/$anEntry");
+
+           echo "<a href=\"$rootDir/$anEntry\">$anEntry</a>  ($logsize bytes) <br />";
+           
+           $hasNotes = true;
+       }
+
+       if (!$hasNotes) {
+           echo "<br>If there are no logs here, that (likely) means the HTTP Trace Diagnostic jar needs to be copied to the test JREs lib/ext directory.";
+       }
+       ?>
+
+       </table>
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/wtp.site/templateFiles/testResults.php.template.php b/releng.wtpbuilder/distribution/wtp.site/templateFiles/testResults.php.template.php
index 1574fa8..3caa6ee 100644
--- a/releng.wtpbuilder/distribution/wtp.site/templateFiles/testResults.php.template.php
+++ b/releng.wtpbuilder/distribution/wtp.site/templateFiles/testResults.php.template.php
@@ -151,6 +151,11 @@
 contain the console output captured while running the JUnit automated
 tests.
 <br>
+These
+<a href="httpconsoleLogs.php">http logs</a>
+contain logs of http requests captured while running the JUnit automated
+tests.
+<br>
 <br>
 
 
diff --git a/releng.wtpbuilder/distribution/wtp4x.site/staticDropFiles/httplogs.php b/releng.wtpbuilder/distribution/wtp4x.site/staticDropFiles/httplogs.php
new file mode 100644
index 0000000..4845485
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtp4x.site/staticDropFiles/httplogs.php
@@ -0,0 +1,57 @@
+<html>
+<head>
+
+
+
+<?php
+$parts = explode("/", getcwd());
+$parts2 = explode("-", $parts[count($parts) - 1]);
+$buildName = $parts2[1];
+
+echo "<title>Diagnosic logs for HTTP requests for $buildName </title>";
+?>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css"
+       type="text/css">
+<title>Diagnosic logs for HTTP requests while Running JUnit Plug-in Tests</title>
+</head>
+<body>
+
+<h1>Diagnosic logs for HTTP requests while Running JUnit Plug-in Tests</h1>
+       <?php
+       $rootDir = "testResults/httplogstest/";
+       $hasNotes = false;
+       $aDirectory = dir($rootDir);
+       $index = 0;
+       $dirindex = 0;
+       while ($anEntry = $aDirectory->read()) {
+           if ($anEntry != "." && $anEntry != "..") {
+               if (is_file("$rootDir/$anEntry")) {
+                   $entries[$index] = $anEntry;
+                   $index++;
+               }
+           }
+       }
+       $aDirectory->close();
+
+
+       sort($entries);
+
+
+       for ($i = 0; $i < $index; $i++) {
+           $anEntry = $entries[$i];
+           $logsize = filesize("$rootDir/$anEntry");
+
+           echo "<a href=\"$rootDir/$anEntry\">$anEntry</a>  ($logsize bytes) <br />";
+           
+           $hasNotes = true;
+       }
+
+       if (!$hasNotes) {
+           echo "<br>If there are no logs here, that (likely) means the HTTP Trace Diagnostic jar needs to be copied to the test JREs lib/ext directory.";
+       }
+       ?>
+
+       </table>
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/wtp4x.site/templateFiles/testResults.php.template.php b/releng.wtpbuilder/distribution/wtp4x.site/templateFiles/testResults.php.template.php
index 1574fa8..3caa6ee 100644
--- a/releng.wtpbuilder/distribution/wtp4x.site/templateFiles/testResults.php.template.php
+++ b/releng.wtpbuilder/distribution/wtp4x.site/templateFiles/testResults.php.template.php
@@ -151,6 +151,11 @@
 contain the console output captured while running the JUnit automated
 tests.
 <br>
+These
+<a href="httpconsoleLogs.php">http logs</a>
+contain logs of http requests captured while running the JUnit automated
+tests.
+<br>
 <br>