testing: Report time required for all scenarios on test overview page
This commit is contained in:
parent
0ea16f6b15
commit
d4908c06c1
|
@ -131,7 +131,7 @@ ENVIRONMENT_HEADER=$(cat <<@EOF
|
|||
<tr>
|
||||
<td width="100"> </td>
|
||||
<td width="300"> </td>
|
||||
<td width=" 50"> </td>
|
||||
<td width=" 80"> </td>
|
||||
<td > </td>
|
||||
</tr>
|
||||
@EOF
|
||||
|
@ -159,7 +159,8 @@ cat > $TESTRESULTSHTML <<@EOF
|
|||
<tr align="left">
|
||||
<th>Number</th>
|
||||
<th>Test</th>
|
||||
<th colspan="2">Result</th>
|
||||
<th align="right">Time [s]</th>
|
||||
<th>Result</th>
|
||||
</tr>
|
||||
@EOF
|
||||
|
||||
|
@ -249,6 +250,8 @@ do
|
|||
testname=$SUBDIR/$name
|
||||
log_action " $testnumber $testname:"
|
||||
|
||||
teststart=$(date +%s)
|
||||
|
||||
if [ ! -d $DEFAULTTESTSDIR/${testname} ]
|
||||
then
|
||||
echo "is missing..skipped"
|
||||
|
@ -782,6 +785,9 @@ do
|
|||
##########################################################################
|
||||
# write test status to html file
|
||||
#
|
||||
testend=$(date +%s)
|
||||
let "testend -= teststart"
|
||||
let "timetotal += testend"
|
||||
|
||||
if [ $STATUS = "passed" ]
|
||||
then
|
||||
|
@ -796,8 +802,8 @@ do
|
|||
<tr>
|
||||
<td>$testnumber</td>
|
||||
<td><a href="$testname/index.html">$testname</a></td>
|
||||
<td align="right">$testend</td>
|
||||
<td><a href="$testname/console.log"><font color="$COLOR">$STATUS</font></a></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
@EOF
|
||||
cat >> $SUBTESTSINDEX << @EOF
|
||||
|
@ -839,6 +845,9 @@ cat >> $TESTRESULTSHTML << @EOF
|
|||
<tr>
|
||||
<td><b>Failed</b></td><td><b><font color="red">$failed_cnt</font></b></td><td> </td><td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Time [s]</b></td><td><b><font color="blue">$timetotal</font></b></td><td> </td><td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -883,6 +892,6 @@ echo
|
|||
echo "The results are available in $TODAYDIR"
|
||||
echo "or via the link http://$ipv4_winnetou/testresults/$TESTDATE"
|
||||
|
||||
ENDDATE=`date +%Y%m%d-%H%M`
|
||||
ENDDATE=`date +%Y%m%d-%H%M-%S`
|
||||
echo
|
||||
echo "Finished : $ENDDATE"
|
||||
|
|
Loading…
Reference in New Issue