Index: TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestReporter.java =================================================================== diff -u -r08950e1090443c3423a3d1c587416a2fccd8bbdf -r7727fe90dd7a4123f832d1189d12ad6a0972e5c4 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestReporter.java (.../TestReporter.java) (revision 08950e1090443c3423a3d1c587416a2fccd8bbdf) +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestReporter.java (.../TestReporter.java) (revision 7727fe90dd7a4123f832d1189d12ad6a0972e5c4) @@ -221,6 +221,16 @@ context.put("callRecords", callRecords); context.put("testSuites", testSuites); context.put("time", new SimpleDateFormat("HH:mm:ss dd MMM yyyy").format(new Date())); + long total = 0; + long count = 0; + for (CallRecord r : callRecords) { + if (r.getHttpStatusCode() != null && r.getHttpStatusCode().equals(new Integer("200"))) { + total += r.getTimeInMillis(); + count++; + } + } + context.put("totalResponseTime", total/1000.0); + context.put("averageResponseTime", total/1000.0/count); } static String load() throws IOException { Index: TestHarness4LAMS2/template.html =================================================================== diff -u -r5e9593a48bb1efdecbf93cdb85b92cac619287c0 -r7727fe90dd7a4123f832d1189d12ad6a0972e5c4 --- TestHarness4LAMS2/template.html (.../template.html) (revision 5e9593a48bb1efdecbf93cdb85b92cac619287c0) +++ TestHarness4LAMS2/template.html (.../template.html) (revision 7727fe90dd7a4123f832d1189d12ad6a0972e5c4) @@ -52,6 +52,8 @@ and ${testSuite.learnerTest.countAborted} learner(s) aborted.
+