code: private void updateIndexFile(int stepNumber, File file, String methodName,
  			String[] values) throws IOException {
  		File indexFile = initializeIndexIfNeeded();
  
  		BufferedWriter w = new BufferedWriter(new FileWriter(indexFile, stepNumber > INITIAL_STEP_NUMBER));
  		try {
  			String title = "| " + methodName + " | " + (values.length > 0 ? values[0] : "") + " | " + (values.length > 1 ? values[1] : "") + " |";
  			w.write("<h2>" + stepNumber + ". " + title + "</h2>\n");
  			w.write("<img src='" + file.getName() +"' alt='" + title + "'/>\n");
  		} finally {
  			try {
  				w.close();
  			} catch (IOException e) {
  				LOG.error("Unable to close screenshot file " + file.getPath(), e);
  			}
  		}
  	}
docs: <p>Provide an easy to use index.html file for viewing the screenshots.
  </p>
  <p>The base directory is expected to exist at this point.
  </p>
  
  @throws IOException