Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: chrome_release_test_status/war/TestingStatus-query.jsp

Issue 2831022: The following java and jsp files will collect the Chrome release testing stat... Base URL: svn://svn.chromium.org/chrome/trunk/tools/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <%@ page contentType="text/html;charset=UTF-8" language="java" %>
2 <%@ page import="java.util.List" %>
3 <%@ page import="javax.jdo.PersistenceManager" %>
4 <%@ page import="com.google.appengine.api.users.User" %>
5 <%@ page import="com.google.appengine.api.users.UserService" %>
6 <%@ page import="com.google.appengine.api.users.UserServiceFactory" %>
7 <%@ page import="mydemo.BuildInfo" %>
8 <%@ page import="mydemo.TestStatus" %>
9 <%@ page import="mydemo.RegisterFeature" %>
10 <%@ page import="mydemo.PMF" %>
11
12 <html>
13 <Head>
14 <style>
15 body
16 {
17 background-color:#d0e4fe;
18 font-family: tims, cursive, serif;
19 }
20
21 .mytable {
22 border: 1px solid #CCC;
23 font-size: 17px;
24
25 }
26
27 .fitrow {
28 background-color:#F4F4F4;
29 height:20px;
30 }
31
32 </style>
33 <style>
34
35
36 ul#list-nav li {
37 display:inline;
38 }
39
40 ul#list-nav li a {
41 text-decoration:none;
42 padding:5px 5px 5px 5px;
43 background:9966ff;
44 color:#eee;
45 float:left;
46 text-align:center;
47 border-left:1px solid #fff;
48 }
49
50 ul#list-nav li a:hover {
51 background:9999ff;
52 color:#000
53 }
54
55
56 </style>
57 <script>
58 var selected_val1 = 0;
59 var g_rowNo = 0;
60 function addRow(selected_val) {
61
62
63 var s = "/TestingStatus-query.jsp?buildn=" + selected_val ;
64 window.location= s;
65
66 }
67
68 </script>
69
70 <script>
71
72 var DDSPEED = 10;
73 var DDTIMER = 15;
74
75 // main function to handle the mouse events //
76 function ddMenu(id,d){
77 var h = document.getElementById(id + '-ddheader');
78 var c = document.getElementById(id + '-ddcontent');
79 clearInterval(c.timer);
80 if(d == 1){
81 clearTimeout(h.timer);
82 if(c.maxh && c.maxh <= c.offsetHeight){return}
83 else if(!c.maxh){
84 c.style.display = 'block';
85 c.style.height = 'auto';
86 c.maxh = c.offsetHeight;
87 c.style.height = '0px';
88 }
89 c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
90 }else{
91 h.timer = setTimeout(function(){ddCollapse(c)},50);
92 }
93 }
94
95 // collapse the menu //
96 function ddCollapse(c){
97 c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER);
98 }
99
100 // cancel the collapse if a user rolls over the dropdown //
101 function cancelHide(id){
102 var h = document.getElementById(id + '-ddheader');
103 var c = document.getElementById(id + '-ddcontent');
104 clearTimeout(h.timer);
105 clearInterval(c.timer);
106 if(c.offsetHeight < c.maxh){
107 c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
108 }
109 }
110
111 // incrementally expand/contract the dropdown and change the opacity //
112 function ddSlide(c,d){
113 var currh = c.offsetHeight;
114 var dist;
115 if(d == 1){
116 dist = (Math.round((c.maxh - currh) / DDSPEED));
117 }else{
118 dist = (Math.round(currh / DDSPEED));
119 }
120 if(dist <= 1 && d == 1){
121 dist = 1;
122 }
123 c.style.height = currh + (dist * d) + 'px';
124 c.style.opacity = currh / c.maxh;
125 c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')';
126 if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){
127 clearInterval(c.timer);
128 }
129 }
130
131 </script>
132
133 <style>
134 .menu{
135 width:717px;
136 height:65px;
137
138 }
139 .links div{
140 float:left;}
141 .dropdown {
142
143 background:9966ff;
144 color:#eee;
145 border-left:1px solid #fff;
146 font-family:BOOK ANTIQUA;
147 font-size:14px;
148 margin: 0;
149 padding:0px;}
150
151 .dropdown dt:hover {
152 background:9999ff;
153 }
154
155 .dropdown dt {
156
157 cursor:pointer;}
158 .dropdown dd {
159 position:absolute;
160 overflow:hidden;
161 display:none;
162 background:9966ff;
163 z-index:1000;
164 opacity:.5;
165 margin:0 0 0 20px;
166 border-left:2px solid #620000;
167 border-right:2px solid #620000}
168
169 .dropdown ul {
170 width:100px;
171 list-style:none;
172 margin:0;
173 padding: 0;
174 z-index:900;}
175 .dropdown li {
176 display:block;
177 width: 100px;
178 margin: 0;
179 padding: 5px;
180 border-bottom:2px solid #620000;}
181 .dropdown li a{
182 float:none;
183 width:auto;
184 padding: 0;
185 width:100px}
186
187 .dropdown a:hover {
188 color:#FFFF00;}
189
190 a{
191 color:blue;
192 font-family:BOOK ANTIQUA;
193 font-size:15px;
194 text-decoration: none;
195 padding-left:23px;
196 padding-right:23px;
197 }
198 a:hover {
199 background:9999ff;
200 color:#000
201 }
202 </style>
203 <body>
204 <div align=center class="headerMembers">
205 <!-- menu starts here -->
206 <div class="menu">
207 <div class="links">
208 <body>
209 <H2 align=center><font color="background:9900CC"> Chrome Release testing dashboa rd </font></h2>
210
211 <div>
212 <dl class="dropdown">
213 <dt id="one-ddheader" onmouseover="ddMenu('one',1)" onmouseout="ddMenu ('one',-1)"><a>Register new feature</a></dt>
214 <dd id="one-ddcontent" onmouseover="cancelHide('one')" onmouseout="ddM enu('one',-1)">
215 <ul>
216 <li><a href="registerfeature.jsp">Chrome</a></li>
217 <li><a href="">Chrome Frame</a></li>
218 </ul>
219 </dd>
220 </dl>
221 </div>
222
223
224 <div>
225 <dl class="dropdown">
226 <dt id="two-ddheader" onmouseover="ddMenu('two',1)" onmouseout="ddMenu ('two',-1)"><a>Submit Status</a></dt>
227 <dd id="two-ddcontent" onmouseover="cancelHide('two')" onmouseout="ddM enu('two',-1)">
228 <ul>
229 <li><a href="SubmitStatus-Windows.jsp">Windows</a></li>
230 <li><a href="SubmitStatus-Mac.jsp">Mac</a></li>
231 <li><a href="SubmitStatus-Linux.jsp">Linux</a></li>
232 <li><a href="">Chrome Frame </a></li>
233 </ul>
234 </dd>
235 </dl>
236 </div>
237
238 <div>
239 <dl class="dropdown">
240 <dt id="three-ddheader" onmouseover="ddMenu('three',1)" onmouseout="dd Menu('three',-1)"><a>View Status</a></dt>
241 <dd id="three-ddcontent" onmouseover="cancelHide('three')" onmouseout= "ddMenu('three',-1)">
242 <ul>
243 <li><a href="TestingStatus-query.jsp">Windows</a></li>
244 <li><a href="TestingStatus-query-Mac.jsp">Mac</a></li>
245 <li><a href="TestingStatus-query-Linux.jsp">Linux</a></li>
246 <li><a href="">Chrome Frame </a></li>
247 </ul>
248 </dd>
249 </dl>
250 </div>
251
252 <div>
253 <dl class="dropdown">
254 <dt id="four-ddheader" onmouseover="ddMenu('four',1)" onmouseout="ddMe nu('four',-1)"><a>Release Blockers</a></dt>
255 <dd id="four-ddcontent" onmouseover="cancelHide('four')" onmouseout="d dMenu('four',-1)">
256 <ul>
257 <li><a href="Release-blockers.jsp?channel=Dev">Dev</a></li>
258 <li><a href="Release-blockers.jsp?channel=Beta">Beta</a></li>
259 <li><a href="Release-blockers.jsp?channel=Stable">Stable</a></ li>
260 <li><a href="">ChromeFrame-Dev</a></li>
261 <li><a href="">ChromeFrame-Beta</a></li>
262 </ul>
263 </dd>
264 </dl>
265 </div>
266 <div style="background:9966ff;border-left:1px solid #fff;"><a href="calendar.jsp ">Calendar</a></div>
267
268 </body>
269 </div>
270 </div>
271 </div>
272 </html>
273 <BODY style="background:CCCCFF;font-family:BOOK ANTIQUA">
274
275
276 <%
277 PersistenceManager pm1 = PMF.get().getPersistenceManager();
278 String query1 = "select from " + BuildInfo.class.getName();
279 List<BuildInfo> build_val = (List<BuildInfo>) pm1.newQuery(query1).execute() ;
280 %>
281
282 <div style="position:relative; width:100%; height:20px"></div>
283 <form id='mainForm1' action="" method="post">
284
285 <div align=center>Pick a build: <select name="buildn" id="buildn" onChange="a ddRow(this.options[selectedIndex].text);">
286 <option value="Pick a build" selected>Pick a build
287 <% for (BuildInfo g : build_val) { %>
288 <option value=<%= g.getBuildNumber() %>><%= g.getBuildNumber() %>
289 <% } %>
290 </select>
291
292 </form>
293
294 <div id="status" >
295 <%
296 PersistenceManager pm3 = PMF.get().getPersistenceManager();
297 String query2 = "select from " + RegisterFeature.class.getName() + " where feature_type=='Frontend'";
298 List<RegisterFeature> feature_list = (List<RegisterFeature>) pm3.newQuery(qu ery2).execute();
299
300
301 PersistenceManager pm = PMF.get().getPersistenceManager();
302 String query = "select from " + TestStatus.class.getName() + " where build_n umber=='" + request.getParameter("buildn") +"'" ;
303 List<TestStatus> windows = (List<TestStatus>) pm.newQuery(query).execute();
304
305
306 %>
307
308 <% if (windows.isEmpty()) { %>
309 <p>No results to display</p>
310 <% } else {%>
311 <table align=center class="mytable" style="table-layout: fixed;">
312 <tr><td><b><H3>Frontend Features:</H3></b></td></tr>
313 <tr>
314 <th ><b>Featurename</b></th>
315 <th><b>XP</b></th>
316 <th><b>Tester</b></th>
317 <th><b>Vista</b></th>
318 <th><b>Tester</b></th>
319 <th><b>Win7</b></th>
320 <th><b>Tester</b></th>
321 <th><b>Bugs Found</b></th>
322 <% for (RegisterFeature f_list : feature_list) {
323 int found = 0;
324 for (TestStatus win_status : windows) {
325 if ((win_status.getFeatureName()).equals(f_list.getF eatureName())) {%>
326 <tr class ="fitrow" style="border:1px solid #CCC; Color: b lack; padding: 2px">
327 <td><%= win_status.getFeatureName() %></td>
328
329
330 <% if (win_status.getStatusXP() .equals("Buggy")) {%>
331 <td style="background-color:#F F0000"><%= win_status.getStatusXP() %></td>
332 <% } else if (win_stat us.getStatusXP().equals("InProgress")) { %>
333 <td style="background- color:#FFFF00"><%= win_status.getStatusXP() %></td>
334 <% } else if (win_status.getStatusXP().equals("Finis hed")) { %>
335 <td style="background-color:#008000"><%= win_statu s.getStatusXP() %></td>
336 <% } else{ %>
337 <td style="backgroun d-color:#FFA500"><%= win_status.getStatusXP() %></td>
338 <%} %>
339
340 <td><%= win_status.getXp Tester()%></td>
341
342
343
344
345 <% if (win_status.getStatusVis ta().equals("Buggy")) {%>
346 <td style="background-color:#F F0000"><%= win_status.getStatusVista() %></td>
347 <% } else if (win_stat us.getStatusVista().equals("InProgress")) { %>
348 <td style="background- color:#FFFF00"><%= win_status.getStatusVista() %></td>
349 <% } else if (win_status.getStatusVista().equals("Fi nished")) { %>
350 <td style="background-color:#008000"><%= win_statu s.getStatusVista() %></td>
351 <% } else{ %>
352 <td style="backgroun d-color:#FFA500"><%= win_status.getStatusVista() %></td>
353 <%}%>
354 <td><%= win_status.getVistaTe ster()%></td>
355
356
357 <% if (win_status.getStatusWin 7().equals("Buggy")) {%>
358 <td style="background-color:#F F0000"><%= win_status.getStatusWin7() %></td>
359 <% } else if (win_stat us.getStatusWin7().equals("InProgress")) { %>
360 <td style="background- color:#FFFF00"><%= win_status.getStatusWin7() %></td>
361 <% } else if (win_status.getStatusWin7().equals("Fin ished")) { %>
362 <td style="background-color:#008000"><%= win_statu s.getStatusWin7() %></td>
363 <% } else{ %>
364 <td style="backgroun d-color:#FFA500"><%= win_status.getStatusWin7() %></td>
365 <%}%>
366 <td><%= win_status.getWi n7Tester()%></td>
367 <td><%= win_status.getNo tes()%></td>
368
369 </tr>
370 <% found=1;
371 break;
372 }
373 }
374 if (found == 0) {
375 if (!(f_list.getFeatureName().equals(""))) {%>
376 <tr class ="fitrow" style="border:1px solid #CCC; Color : black; padding:2px">
377 <td><%= f_list.getFeatureName() %></td>
378 <td style="background-color:#FFA500">Not Started</td>
379 <td> n/a </td>
380 <td style="background-color:#FFA500">Not Started</td >
381 <td> n/a </td>
382 <td style="background-color:#FFA500">Not Started</td >
383 <td> n/a </td>
384 </tr>
385 <%} }
386 %>
387
388
389 <% }
390
391 pm.close();
392
393 %>
394
395
396 </table>
397
398 <%
399 PersistenceManager pm_frontend = PMF.get().getPersistenceManager();
400 String query_frontend = "select from " + RegisterFeature.class.getName() + " where feature_type=='Backend'";
401 List<RegisterFeature> frontend_feature_list = (List<RegisterFeature>) pm_fro ntend.newQuery(query_frontend).execute();
402 %>
403 <table align=center class="mytable" style="table-layout: fixed; ">
404 <tr><td><b><H3>Backend Features:</H3></b></td></tr>
405 <tr>
406 <th ><b>Featurename</b></th>
407 <th><b>XP</b></th>
408 <th><b>Tester</b></th>
409 <th><b>Vista</b></th>
410 <th><b>Tester</b></th>
411 <th><b>Win7</b></th>
412 <th><b>Tester</b></th>
413 <th><b>Bugs Found</b></th>
414 <% for (RegisterFeature f_list : frontend_feature_list) {
415 int found = 0;
416 for (TestStatus win_status : windows) {
417 if ((win_status.getFeatureName()).equals(f_list.getF eatureName())) {%>
418 <tr class ="fitrow" style="border:1px solid #CCC; Color: b lack; padding: 2px">
419 <td><%= win_status.getFeatureName() %></td>
420
421
422 <% if (win_status.getStatusXP() .equals("Buggy")) {%>
423 <td style="background-color:#F F0000"><%= win_status.getStatusXP() %></td>
424 <% } else if (win_stat us.getStatusXP().equals("InProgress")) { %>
425 <td style="background- color:#FFFF00"><%= win_status.getStatusXP() %></td>
426 <% } else if (win_status.getStatusXP().equals("Finis hed")) { %>
427 <td style="background-color:#008000"><%= win_statu s.getStatusXP() %></td>
428 <% } else{ %>
429 <td style="backgroun d-color:#FFA500"><%= win_status.getStatusXP() %></td>
430 <%} %>
431
432 <td><%= win_status.getXp Tester()%></td>
433
434
435
436
437 <% if (win_status.getStatusVis ta().equals("Buggy")) {%>
438 <td style="background-color:#F F0000"><%= win_status.getStatusVista() %></td>
439 <% } else if (win_stat us.getStatusVista().equals("InProgress")) { %>
440 <td style="background- color:#FFFF00"><%= win_status.getStatusVista() %></td>
441 <% } else if (win_status.getStatusVista().equals("Fi nished")) { %>
442 <td style="background-color:#008000"><%= win_statu s.getStatusVista() %></td>
443 <% } else{ %>
444 <td style="backgroun d-color:#FFA500"><%= win_status.getStatusVista() %></td>
445 <%}%>
446 <td><%= win_status.getVistaTe ster()%></td>
447
448
449 <% if (win_status.getStatusWin 7().equals("Buggy")) {%>
450 <td style="background-color:#F F0000"><%= win_status.getStatusWin7() %></td>
451 <% } else if (win_stat us.getStatusWin7().equals("InProgress")) { %>
452 <td style="background- color:#FFFF00"><%= win_status.getStatusWin7() %></td>
453 <% } else if (win_status.getStatusWin7().equals("Fin ished")) { %>
454 <td style="background-color:#008000"><%= win_statu s.getStatusWin7() %></td>
455 <% } else{ %>
456 <td style="backgroun d-color:#FFA500"><%= win_status.getStatusWin7() %></td>
457 <%}%>
458 <td><%= win_status.getWi n7Tester()%></td>
459 <td><%= win_status.getNo tes()%></td>
460
461 </tr>
462 <% found=1;
463 break;
464 }
465 }
466 if (found == 0) {
467 if (!(f_list.getFeatureName().equals(""))) {%>
468 <tr class ="fitrow" style="border:1px solid #CCC; Color : black; padding:2px">
469 <td><%= f_list.getFeatureName() %></td>
470 <td style="background-color:#FFA500">Not Started</td>
471 <td> n/a </td>
472 <td style="background-color:#FFA500">Not Started</td >
473 <td> n/a </td>
474 <td style="background-color:#FFA500">Not Started</td >
475 <td> n/a </td>
476 </tr>
477 <%} }
478 %>
479
480
481 <% }
482
483 pm_frontend.close();
484
485 %>
486
487
488 </table>
489 <%
490 PersistenceManager pm_compat = PMF.get().getPersistenceManager();
491 String query_compat = "select from " + RegisterFeature.class.getName() + " where feature_type=='Compat'";
492 List<RegisterFeature> compat_feature_list = (List<RegisterFeature>) pm_compa t.newQuery(query_compat).execute();
493 %>
494
495 <table align=center class="mytable" width=708px style="table-layout: fixed;">
496 <tr><td><b><H3>Compat:</H3></b></td></tr>
497 <tr>
498 <th ><b>Featurename</b></th>
499 <th><b>XP</b></th>
500 <th><b>Tester</b></th>
501 <th><b>Vista</b></th>
502 <th><b>Tester</b></th>
503 <th><b>Win7</b></th>
504 <th><b>Tester</b></th>
505 <th><b>Bugs Found</b></th>
506 <% for (RegisterFeature f_list : compat_feature_list) {
507 int found = 0;
508 for (TestStatus win_status : windows) {
509 if ((win_status.getFeatureName()).equals(f_list.getF eatureName())) {%>
510 <tr class ="fitrow" style="border:1px solid #CCC; Color: b lack; padding: 2px">
511 <td><%= win_status.getFeatureName() %></td>
512
513
514 <% if (win_status.getStatusXP() .equals("Buggy")) {%>
515 <td style="background-color:#F F0000"><%= win_status.getStatusXP() %></td>
516 <% } else if (win_stat us.getStatusXP().equals("InProgress")) { %>
517 <td style="background- color:#FFFF00"><%= win_status.getStatusXP() %></td>
518 <% } else if (win_status.getStatusXP().equals("Finis hed")) { %>
519 <td style="background-color:#008000"><%= win_statu s.getStatusXP() %></td>
520 <% } else{ %>
521 <td style="backgroun d-color:#FFA500"><%= win_status.getStatusXP() %></td>
522 <%} %>
523
524 <td><%= win_status.getXp Tester()%></td>
525
526
527
528
529 <% if (win_status.getStatusVis ta().equals("Buggy")) {%>
530 <td style="background-color:#F F0000"><%= win_status.getStatusVista() %></td>
531 <% } else if (win_stat us.getStatusVista().equals("InProgress")) { %>
532 <td style="background- color:#FFFF00"><%= win_status.getStatusVista() %></td>
533 <% } else if (win_status.getStatusVista().equals("Fi nished")) { %>
534 <td style="background-color:#008000"><%= win_statu s.getStatusVista() %></td>
535 <% } else{ %>
536 <td style="backgroun d-color:#FFA500"><%= win_status.getStatusVista() %></td>
537 <%}%>
538 <td><%= win_status.getVistaTe ster()%></td>
539
540
541 <% if (win_status.getStatusWin 7().equals("Buggy")) {%>
542 <td style="background-color:#F F0000"><%= win_status.getStatusWin7() %></td>
543 <% } else if (win_stat us.getStatusWin7().equals("InProgress")) { %>
544 <td style="background- color:#FFFF00"><%= win_status.getStatusWin7() %></td>
545 <% } else if (win_status.getStatusWin7().equals("Fin ished")) { %>
546 <td style="background-color:#008000"><%= win_statu s.getStatusWin7() %></td>
547 <% } else{ %>
548 <td style="backgroun d-color:#FFA500"><%= win_status.getStatusWin7() %></td>
549 <%}%>
550 <td><%= win_status.getWi n7Tester()%></td>
551 <td><%= win_status.getNo tes()%></td>
552
553 </tr>
554 <% found=1;
555 break;
556 }
557 }
558 if (found == 0) {
559 if (!(f_list.getFeatureName().equals(""))) {%>
560 <tr class ="fitrow" style="border:1px solid #CCC; Color : black; padding:2px">
561 <td><%= f_list.getFeatureName() %></td>
562 <td style="background-color:#FFA500">Not Started</td>
563 <td> n/a </td>
564 <td style="background-color:#FFA500">Not Started</td >
565 <td> n/a </td>
566 <td style="background-color:#FFA500">Not Started</td >
567 <td> n/a </td>
568 </tr>
569 <%} }
570 %>
571
572
573 <% }
574
575 pm_compat.close();
576 }
577
578 %>
579
580
581 </table>
582
583 </div>
584
585 </body>
586 </html>
OLDNEW
« no previous file with comments | « chrome_release_test_status/war/SubmitStatus-Windows.jsp ('k') | chrome_release_test_status/war/TestingStatus-query-Linux.jsp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698