2 ////////////////////////////////////////////////////////////////////////////////
6 // Description: Main index page for Rantest
7 // Author: Andrew@ClearSCM.com
8 // Created: Mon Apr 28 15:20:06 MST 2008
12 // (c) Copyright 2008, General Dynamics, all rights reserved.
14 // All rights reserved except as subject to DFARS 252.227-7014 of contract
15 // number CP02H8901N issued under prime contract N00039-04-C-2009.
17 // Warning: This document contains technical data whose export is restricted
18 // by the Arms Export Control Act (Title 22, U.S.C., Sec 2751, et seq.) or the
19 // Export Administration Act of 1979, as amended, Title, 50, U.S.C., App. 2401
20 // et seq. Violations of these export laws are subject to severe criminal
21 // penalties. Disseminate in accordance with provisions of DoD Directive
24 ////////////////////////////////////////////////////////////////////////////////
25 $script = basename ($_SERVER["PHP_SELF"]);
26 include_once "$_SERVER[DOCUMENT_ROOT]/php/Utils.php";
27 include_once "$_SERVER[DOCUMENT_ROOT]/php/RantestDB.php";
30 $testNames = getTestNames();
32 $ran_versions = getVersions ("ran_version");
33 $latestDate = YMD2MDY (getLatestDate ());
34 $earliestDate = YMD2MDY (getEarliestDate ());
36 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
37 "http://www.w3.org/TR/html4/strict.dtd">
40 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
41 <link rel="stylesheet" type="text/css" media="screen" href="/css/Testing.css">
42 <link rel="stylesheet" type="text/css" media="screen" href="/css/Tables.nohover.css">
43 <title>RANTEST: RAN Tool for Execution of System Tests</title>
52 <h1 align=center><font class="standout">RAN T</font>ool for <font class="standout">E</font>xecution of <font class="standout">S</font>ystem <font class="standout">T</font>ests</h1>
54 <table width="95%" align="center">
57 <th colspan=2 class="top"><big>Execution Reports</big><br>
59 print "Status for $latestDate: ";
67 <td class="shaded" width=50%>
68 <b>Test History</b><br>
69 <small>How often a test case has run, with pass/fail status<br><br>
70 <form action="TestHistory.php">
71 <table class="shaded" align="center">
74 <th class="left">Build</th>
77 <th class="right">Test</th>
83 <select name=build class=inputfield>
84 <option selected=selected>*</option>
91 <select name=level class=inputfield>
92 <option selected=selected>*</option>
99 <select name=DUT class=inputfield>
100 <option selected=selected>*</option>
107 <td><input type=text name=test size=10 class=inputfield value="*"></input></td>
110 <td colspan=4 align=center>
111 <input type=submit value="Report">
119 <b>Version per Testcase</b><br>
120 <small>For a given test case, what was the test environment (software version of each of the test equipment and RBS/RNC)</small><br><br>
121 <form action="VersionPerTestcase.php">
122 <table class="shaded" align="center">
125 <th class=left>Build</th>
128 <th class=right>Test</th>
134 <select name=build class=inputfield>
135 <option selected=selected>*</option>
142 <select name=level class=inputfield>
143 <option selected=selected>*</option>
150 <select name=DUT class=inputfield>
151 <option selected=selected>*</option>
158 <td><input type=text name=test size=10 class=inputfield value="*"></input></td>
161 <td colspan=4 align=center>
162 <input type=submit value="Report">
172 <b>Testcase per Version</b><br>
173 <small>What test cases have run against a given RBS/RNC/RAN software version<br><br>
174 <form action="TestcasePerVersion.php">
176 <select name=version class=inputfield>
178 foreach ($ran_versions as $version) {
179 print "<option>$version</option>\n";
183 <input type=submit value="Report">
188 <b>Test Statistics</b><br>
189 <small>Number of test cases run over a given period with pass/fail status<br><br>
190 <form action="TestStats.php">
192 <select name=start class=inputfield>
194 foreach ($days as $day) {
197 if ($day == $earliestDate) {
198 print " selected=selected";
201 print ">$day</option>\n";
206 <select name=end class=inputfield>
208 foreach ($days as $day) {
211 if ($day == $latestDate) {
212 print " selected=selected";
215 print ">$day</option>\n";
218 <input type=submit name="action" value="Report">
219 <input type=submit name="action" value="Graph">
225 <td class="shaded" width=50%>
226 <b>Failure Analysis</b><br>
227 <small>Show the reasons for failure<br><br>
228 <form action="FailureAnalysis.php">
229 <select name=day class=inputfield>
231 foreach ($days as $day) {
234 if ($day == $latestDate) {
235 print " selected=selected";
238 print ">$day</option>\n";
241 <input type=submit name="action" value="Report">
246 <b>Daily Test Report</b><br>
247 <form action="rantest.php">
248 <small>What test automation ran on:<br><br>
249 <select name=day class=inputfield>
251 foreach ($days as $day) {
252 print "<option>$day</option>\n";
256 <input type=submit value="Report">
260 <tr class="white" align="center">
263 exec ("ls /east/seast1/testlogs/nightly*log /east/seast1/testlogs/ranscrub.log", &$nightly_logs, &$status);
266 print "Unable to do ls /east/seast1/testlogs/nightly*log (Status: $status)";
268 $count = count ($nightly_logs);
272 print "<h3>Nightly logs</h3>";
273 foreach ($nightly_logs as $nightly_log) {
274 preg_match ("/\/east\/seast1\/testlogs\/(.*)\.log/", $nightly_log, &$matches);
276 print "<a href=\"/testlogs/$matches[1].log\">$matches[1]</a>";
279 if ($nbr++ % 5 == 0) {
282 print " | ";