use of com.coveros.selenified.OutputFile in project selenified by Coveros.
the class OutputFileTest method recordActualBadFile.
@Test
public void recordActualBadFile() {
OutputFile file = new OutputFile("/somenewdir", "file", Browser.ANDROID, null, null, null, null, null, null);
file.recordActual("actual", Success.FAIL);
// we are just verifying that no errors were thrown
}
use of com.coveros.selenified.OutputFile in project selenified by Coveros.
the class OutputFileTest method createOutputHeaderAuthorTest.
@Test
public void createOutputHeaderAuthorTest() throws IOException {
new OutputFile("newdirectory", "file", Browser.ANDROID, null, null, null, "My Author", null, null);
File file = new File("newdirectory", "fileANDROID.html");
Assert.assertTrue(file.exists());
String content = Files.toString(file, Charsets.UTF_8);
Assert.assertTrue(content.contains("My Author"));
file.delete();
new File("newdirectory").delete();
}
use of com.coveros.selenified.OutputFile in project selenified by Coveros.
the class OutputFileTest method createOutputHeaderSuiteTest.
@Test
public void createOutputHeaderSuiteTest() throws IOException {
new OutputFile("newdirectory", "file", Browser.ANDROID, null, "My Suite", null, null, null, null);
File file = new File("newdirectory", "fileANDROID.html");
Assert.assertTrue(file.exists());
String content = Files.toString(file, Charsets.UTF_8);
Assert.assertTrue(content.contains("My Suite"));
file.delete();
new File("newdirectory").delete();
}
use of com.coveros.selenified.OutputFile in project selenified by Coveros.
the class OutputFileTest method recordExpectedBadFile.
@Test
public void recordExpectedBadFile() {
OutputFile file = new OutputFile("/somenewdir", "file", Browser.ANDROID, null, null, null, null, null, null);
file.recordExpected("expected");
// we are just verifying that no errors were thrown
}
use of com.coveros.selenified.OutputFile in project selenified by Coveros.
the class OutputFileTest method createOutputHeaderGroupTest.
@Test
public void createOutputHeaderGroupTest() throws IOException {
new OutputFile("newdirectory", "file", Browser.ANDROID, null, null, "My Group", null, null, null);
File file = new File("newdirectory", "fileANDROID.html");
Assert.assertTrue(file.exists());
String content = Files.toString(file, Charsets.UTF_8);
Assert.assertTrue(content.contains("My Group"));
file.delete();
new File("newdirectory").delete();
}
Aggregations