Example usage for org.openqa.selenium.server.htmlrunner HTMLTestResults write

List of usage examples for org.openqa.selenium.server.htmlrunner HTMLTestResults write

Introduction

In this page you can find the example usage for org.openqa.selenium.server.htmlrunner HTMLTestResults write.

Prototype

public void write(Writer out) throws IOException 

Source Link

Usage

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*/
}