Search in sources :

Example 11 with OutputFile

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");
}
Also used : OutputFile(com.coveros.selenified.OutputFile) OutputFile(com.coveros.selenified.OutputFile) File(java.io.File) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 12 with OutputFile

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();
}
Also used : OutputFile(com.coveros.selenified.OutputFile) OutputFile(com.coveros.selenified.OutputFile) File(java.io.File) Test(org.testng.annotations.Test)

Aggregations

OutputFile (com.coveros.selenified.OutputFile)12 Test (org.testng.annotations.Test)10 File (java.io.File)8 BeforeMethod (org.testng.annotations.BeforeMethod)2 Response (com.coveros.selenified.services.Response)1