*/
private void normalizeFilePaths(Reportable report) {
for (TestSuiteReport testSuiteReport : ((Report) report).getTestSuiteReports()) {
for (PropertyEntry entry : testSuiteReport.getPropertyEntries()) {
if (entry instanceof VideoEntry) {
VideoEntry e = (VideoEntry) entry;
e.setLink(e.getPath().substring(configuration.getRootDir().getAbsolutePath().length() + 1));
}
}
for (TestClassReport testClassReport : testSuiteReport.getTestClassReports()) {
for (PropertyEntry entry : testClassReport.getPropertyEntries()) {
if (entry instanceof VideoEntry) {
VideoEntry e = (VideoEntry) entry;
e.setLink(e.getPath().substring(configuration.getRootDir().getAbsolutePath().length() + 1));
}
}
for (TestMethodReport testMethodReport : testClassReport.getTestMethodReports()) {
for (PropertyEntry entry : testMethodReport.getPropertyEntries()) {
if (entry instanceof VideoEntry) {
VideoEntry e = (VideoEntry) entry;
e.setLink(e.getPath().substring(configuration.getRootDir().getAbsolutePath().length() + 1));
} else if (entry instanceof ScreenshotEntry) {
ScreenshotEntry e = (ScreenshotEntry) entry;
e.setLink(e.getPath().substring(configuration.getRootDir().getAbsolutePath().length() + 1));
}
}
}
}
}