protected void starting(Description description) {
if(perfTestConfiguration == null) {
File file = IoUtil.getFile(PROPERTY_FILE_NAME);
if(!file.exists()) {
throw new PerfTestException("Cannot load file '"+PROPERTY_FILE_NAME+"': file does not exist.");
}
FileInputStream propertyInputStream = null;
try {
propertyInputStream = new FileInputStream(file);
Properties properties = new Properties();
properties.load(propertyInputStream);
perfTestConfiguration = new PerfTestConfiguration(properties);
} catch(Exception e) {
throw new PerfTestException("Cannot load properties from file "+PROPERTY_FILE_NAME+": "+e);
} finally {
IoUtil.closeSilently(propertyInputStream);
}
}