public static string CreateReportDirectory() { var reportFolder = PathHelper.BaseDir() + ConfigManager.Settings.ReportPath; return(Directory.CreateDirectory(reportFolder + "Report" + DateTime.Now.ToString("_MM_dd_yyyy_HH-mm") + "\\").ToString()); }
private static string CreateScreenshotFilePath() { var screenshotFolderPath = PathHelper.BaseDir() + ConfigManager.Settings.ScreenshotPath; var screenshotFileName = "screenshot" + DateTime.Now.ToString("_MM_dd_yyyy_HH-mm") + ".png"; return(Path.Combine(screenshotFolderPath, screenshotFileName)); }
public static string GetAbsolutePath(string filePath) { var path = PathHelper.BaseDir() + filePath; return(path); }