List of usage examples for org.openqa.selenium.server.htmlrunner HTMLTestResults write
public void write(Writer out) throws IOException
From source file:corner.test.BaseFunctionTestCase.java
License:Apache License
/** Print the test results out to the HTML response */ private void processResults(HTMLTestResults results, HttpResponse res) throws IOException { res.setContentType("text/html"); OutputStream out = res.getOutputStream(); Writer writer = new OutputStreamWriter(out, StringUtil.__ISO_8859_1); results.write(writer); writer.flush();/*from ww w. java2 s . c om*/ }