VideoEntry videoEntry = new VideoEntry();
videoEntry.setPath(configuration.getRootDir().getAbsolutePath() + "/some/someVideo.mp4");
videoEntry.setSize("54M");
reporter.getReporterCursor().getCursor().getPropertyEntries().add(videoEntry);
TestMethodReport testMethodReport = new TestMethodReport();
testMethodReport.setName("someTestMethod");
TestResult testResult = new TestResult();
testResult.setStatus(Status.PASSED);
testResult.setStart(System.currentTimeMillis());
testResult.setEnd(testResult.getStart() + 1000);
testMethodReport.setReportMessage("This test should be executed manually too.");
testMethodReport.setStatus(testResult.getStatus());
testMethodReport.setDuration(testResult.getEnd() - testResult.getStart());
reporter.getLastTestClassReport().getTestMethodReports().add(testMethodReport);
reporter.setTestMethodReport(testMethodReport);
TestMethodReport testMethodReport2 = new TestMethodReport();
testMethodReport2.setName("someTestMethod2");
TestResult testResult2 = new TestResult();
testResult2.setStatus(Status.FAILED);
testResult2.setThrowable(new IOException("Exception"));
testResult2.setStart(System.currentTimeMillis());
testResult2.setEnd(testResult2.getStart() + 2000);
testMethodReport2.setStatus(testResult2.getStatus());
testMethodReport2.setDuration(testResult2.getEnd() - testResult2.getStart());
testMethodReport2.setException("some exception");
reporter.getLastTestClassReport().getTestMethodReports().add(testMethodReport2);
reporter.setTestMethodReport(testMethodReport2);
ScreenshotEntry sce = new ScreenshotEntry();