All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.reporters.HtmlHelper Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
package org.testng.reporters;

import org.testng.internal.Utils;

import java.io.File;
import java.io.IOException;

public class HtmlHelper {
  private static final String CSS_FILE_NAME = "testng.css";
  private static final String MY_CSS_FILE_NAME = "my-testng.css";

  static public String getCssString() {
    return getCssString("..");
  }

  static public String getCssString(String directory) {
    return
      "\n" +
      "\n";
  }

  public static File generateStylesheet(String outputDirectory) throws IOException {
    File stylesheetFile = new File(outputDirectory, CSS_FILE_NAME);
    if (!stylesheetFile.exists()) {
      Utils.writeResourceToFile(stylesheetFile, CSS_FILE_NAME, TestHTMLReporter.class);
    }
    return stylesheetFile;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy