Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution videos in HTML report #33

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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