use of com.coveros.selenified.OutputFile in project selenified by Coveros.
the class OutputFileTest method createFile.
@BeforeMethod
public void createFile() {
outputFile = new OutputFile("directory", "file", Browser.ANDROID, null, null, null, null, null, null);
directory = new File("directory");
file = new File("directory", "fileANDROID.html");
}
use of com.coveros.selenified.OutputFile in project selenified by Coveros.
the class OutputFileTest method createOutputHeaderObjectivesTest.
@Test
public void createOutputHeaderObjectivesTest() throws IOException {
new OutputFile("newdirectory", "file", Browser.ANDROID, null, null, null, null, null, "My Objectives");
File file = new File("newdirectory", "fileANDROID.html");
Assert.assertTrue(file.exists());
String content = Files.toString(file, Charsets.UTF_8);
Assert.assertTrue(content.contains("My Objectives"));
file.delete();
new File("newdirectory").delete();
}
Aggregations