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

            return(path);
        }