示例#1
0
        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());
        }
示例#2
0
        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));
        }
示例#3
0
        public static string GetAbsolutePath(string filePath)
        {
            var path = PathHelper.BaseDir() + filePath;

            return(path);
        }