public static void CreatePlaylistArchive() { if (writer == null) { path = GetCurrentContextTestHelper.GetTestDirectoryName(); nomeArquivo = path + "Falha_" + DateTime.Now.ToString(" dd-MM-yyyy"); extensao = ".txt"; writer = new StreamWriter(nomeArquivo + extensao); AddLine("<Playlist Version=\"1.0\">"); } }
//essa função não está sendo usanda por enquanto public static string GetPathTakeScreenShot() { var dir = Utilitarios.CreateDirectoryFolder(GetCurrentContextTestHelper.GetTestDirectoryName(), "\\" + DateTime.Now.ToString("dd-MM-yyyy")); String currentDateTime = DateHelper.GetDateTimeNow().Replace("/", "-").Replace(":", "-"); //fileName = GetCurrentContextTestHelper.GetTestDirectoryName() + @"\Screenshot " + currentDateTime + ".Png"; fileName = dir + @"\Screenshot " + currentDateTime + ".Png"; return(fileName); }