Skip to content

Commit

Permalink
Merge pull request #33 from ing-bank/IPS-VideoInReports
Browse files Browse the repository at this point in the history
Execution videos in HTML report
  • Loading branch information
JPBorude08 authored Oct 3, 2024
2 parents 5a96b0d + 31dbea2 commit 068d0b5
Show file tree
Hide file tree
Showing 11 changed files with 578 additions and 420 deletions.
33 changes: 20 additions & 13 deletions Engine/src/main/java/com/ing/engine/constants/AppResourcePath.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

package com.ing.engine.constants;

import com.ing.engine.core.RunManager;
Expand Down Expand Up @@ -32,6 +31,7 @@ public class AppResourcePath {
private final static String DETAILED_HTML = "detailed.html";
private final static String PERF_HTML = "perfReport.html";
private final static String REPORT_HISTORY_HTML = "ReportHistory.html";
private final static String VIDEO_HTML = "videoReport.html";
private final static String REPORT_DATA = "data.js";
private final static String REPORT_HISTORY_DATA = "reportHistory.js";

Expand All @@ -53,7 +53,7 @@ public class AppResourcePath {
private static String date;
private static String time;

public static String getAppRoot(){
public static String getAppRoot() {
try {
// return System.getProperty("user.dir");
return new File(System.getProperty("user.dir")).getCanonicalPath();
Expand All @@ -62,7 +62,6 @@ public static String getAppRoot(){
}
return null;
}


public static String getExternalCommandsConfig() {
return getLibPath() + File.separator + EXTERNAL_COMMANDS_CONFIG;
Expand Down Expand Up @@ -123,7 +122,7 @@ public static String getEncFile() {
public static String getSummaryHTMLPath() {
return getReportTemplatePath() + File.separator + SUMMARY_HTML;
}

public static String getDetailedHTMLPath() {
return getReportTemplatePath() + File.separator + DETAILED_HTML;
}
Expand Down Expand Up @@ -161,17 +160,17 @@ public static String getCurrentResultsPath() {
public static String getCurrentResultsLocation() {
return getResultsPath() + getResultPath();
}

public static String getCurrentTestCaseLogsLocation() {
return getCurrentResultsLocation() + File.separator + date + " " + time+ File.separator + "logs";
return getCurrentResultsLocation() + File.separator + date + " " + time + File.separator + "logs";
}

public static String getCurrentTestCaseAccessibilityLocation() {
return getCurrentResultsLocation() + File.separator + date + " " + time+ File.separator + "aXe";
return getCurrentResultsLocation() + File.separator + date + " " + time + File.separator + "aXe";
}

public static String getCurrentTestCaseVideosLocation() {
return getCurrentResultsLocation() + File.separator + date + " " + time+ File.separator + "videos";
return getCurrentResultsLocation() + File.separator + date + " " + time + File.separator + "videos";
}

public static String getLatestResultsLocation() {
Expand All @@ -185,15 +184,15 @@ public static String getCurrentDetailedHTMLPath() {
public static String getCurrentExtentReportPath() {
return getCurrentResultsPath() + File.separator + EXTENT_HTML;
}

public static String getCurrentAzureReportPath() {
return getCurrentResultsPath() + File.separator + AZURE_XML;
}

public static String getCurrentExtentPDFReportPath() {
return getCurrentResultsPath() + File.separator + EXTENT_PDF;
}

public static String getCurrentSummaryHTMLPath() {
return getCurrentResultsPath() + File.separator + SUMMARY_HTML;
}
Expand Down Expand Up @@ -283,4 +282,12 @@ public static String getPerfReportHTMLPath() {
public static String getCurrentPerfReportHTMLPath() {
return getCurrentResultsPath() + File.separator + PERF_HTML;
}

public static String getVideoReportHTMLPath() {
return getReportTemplatePath() + File.separator + VIDEO_HTML;
}

public static String getCurrentVideoReportHTMLPath() {
return getCurrentResultsPath() + File.separator + VIDEO_HTML;
}
}
Loading

0 comments on commit 068d0b5

Please sign in to comment.