Index: TestHarness4LAMS2/template.html =================================================================== RCS file: /usr/local/cvsroot/TestHarness4LAMS2/template.html,v diff -u -r1.2 -r1.3 --- TestHarness4LAMS2/template.html 20 Oct 2008 23:08:31 -0000 1.2 +++ TestHarness4LAMS2/template.html 22 May 2009 09:01:11 -0000 1.3 @@ -54,6 +54,7 @@
  • Total response time: ${totalResponseTime} seconds
  • Average response time: ${averageResponseTime} seconds +
  • learner.do?method=joinLesson average response time: ${joinLessonAverageResponseTime} seconds Index: TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestReporter.java =================================================================== RCS file: /usr/local/cvsroot/TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestReporter.java,v diff -u -r1.8 -r1.9 --- TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestReporter.java 15 Apr 2009 16:50:15 -0000 1.8 +++ TestHarness4LAMS2/src/org/lamsfoundation/testharness/TestReporter.java 22 May 2009 09:01:12 -0000 1.9 @@ -241,16 +241,25 @@ context.put("time", new SimpleDateFormat("HH:mm:ss dd MMM yyyy").format(new Date())); long total = 0; long count = 0; + long joinLessonTotal = 0; + long joinLessonCount = 0; for (CallRecord r : callRecords) { if (r.getHttpStatusCode() != null && r.getHttpStatusCode().equals(new Integer("200"))) { total += r.getTimeInMillis(); count++; + // learning/learner.do?method=joinLesson + if (r.getCallee().indexOf("learner.do?method=joinLesson") > 0) { + joinLessonTotal += r.getTimeInMillis(); + joinLessonCount++; + } } } log.info("Total response time: "+total / 1000.0+" seconds"); log.info("Average response time: "+total / 1000.0 /count+" seconds"); + log.info("Average response time of joinLesson calls: "+joinLessonTotal / 1000.0 / joinLessonCount+" seconds"); context.put("totalResponseTime", total / 1000.0); context.put("averageResponseTime", total / 1000.0 / count); + context.put("joinLessonAverageResponseTime", joinLessonTotal / 1000.0 / joinLessonCount); } static String load() throws IOException {