]> git.llucax.com Git - software/sercom.git/blobdiff - sercom/subcontrollers/misentregas/templates/corrida.kid
se aprueba con 4 los TPs
[software/sercom.git] / sercom / subcontrollers / misentregas / templates / corrida.kid
index 8a206d78ed359fe290ec1f7f35dde060a20c97f3..e3aff6e7ef56c9467802990ae2b993ee741047dc 100644 (file)
     </tr>
        </table>
 <h2>Pruebas Realizadas</h2>
-<div py:for="p in entrega.pruebas">
+<div py:for="p in entrega.pruebas" py:strip="True">
+       <?python
+               if p.exito:
+                       color = "pruebaok"
+               else:
+                       color = "pruebafail"
+       ?>
+       <div style="background:#ddd; border:1px solid black; margin-bottom:10px;">
     <h3 py:content="p.caso_de_prueba.shortrepr()" />
-<table>
+                       <table class="${color}" border="1" width="100%">
+                               <tr>
+                                       <td width="20%">Descripcion</td>
+                                       <td width="80%" py:content="p.caso_de_prueba.descripcion"></td>
+                               </tr>
+                               <tr>
+                                       <td>Comando</td>
+                                       <td py:content="p.caso_de_prueba.comando"></td>
+                               </tr>
+                               <tr>
+                                       <td>Inicio</td>
+                                       <td py:content="p.inicio"></td>
+                               </tr>
+                               <tr>
+                                       <td>Fin</td>
+                                       <td py:content="p.fin"></td>
+                               </tr>
+                               <tr>
+                                       <td>Observaciones</td>
+                                       <td py:content="p.observaciones"></td>
+                               </tr>
+                       </table>
+                       <h4>Comandos Ejecutados para la Prueba</h4>     
+               <table border="1" class="${color}" width="100%">
     <tr>
         <th>#</th>
         <th>Tarea</th>
@@ -66,6 +96,7 @@
                        </tr>
        </table>
 </div>
+</div>
 
 <a href="javascript:window.history.go(-1);">Volver</a>