Search in sources :

Example 6 with OutputFile

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

Example 7 with OutputFile

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

Example 8 with OutputFile

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

Example 9 with OutputFile

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

Example 10 with OutputFile

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();
}
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