thucydides-webtests/thucydides — pull request #38 by rahulj51 (2012-06-08 17:19:50+00:00)
Title: Fixed bug in checking for disabled statistics option. Fixed the corresponding test case also.

John,

The isStatisticsDisabled() method should return true if the statistics are disabled (i.e., when the flag is set to false). Right now, this method is doing the opposite.

Further, the test case was failing because of two reasons

1. By default it was using the h2 database. If an h2 schema already exists, the value of storedTestRuns.size() could be non-zero. So I changed the test to always use hsqldb.
2. Even with hsqldb, this test was failing because a record gets inserted in the dstabase from the previous test case. So I have written a small method to truncate the schema after every test case run.

Please review.