public static void AfterScenarioRun() { string log = TestLogger.Result; //Замена на правильное название скриншота для отображения в логах тестрейла foreach (var screenshotName in CommonComponentSteps.screenshotList) { log = log.Replace (screenshotName, "![Screenshot](" + $"{TestConfiguration.Current.ScreenshotsUrl}" + $"/{DateTime.UtcNow.ToString("dd.MM.yyyy")}" + $"/{screenshotName})"); _JSerrorsList = _JSerrorsList.Replace (screenshotName, "![Screenshot](" + $"{TestConfiguration.Current.ScreenshotsUrl}" + $"/{DateTime.UtcNow.ToString("dd.MM.yyyy")}" + $"/{screenshotName})"); } try { TestRun.PushResult(log); //3587910 - номер кейса для пуша консольных ошибок браузера if (_JSerrorsList.Length != 0) { _JSerrorsList.Insert(0, "#================" + ScenarioContext.Current.ScenarioInfo.Title + " https://qa.swiftcom.uk/index.php?/cases/view/" + ScenarioContext.Current.ScenarioInfo.Tags.First() + " ================" + Environment.NewLine); TestRun.PushResult(_JSerrorsList.ToString(), 3587910); _JSerrorsList.Clear(); } TestLogger.Clear(); } catch (Exception e) { Console.WriteLine(e); throw; } finally { DriverManager.QuitWebDriver(); /// Wait Asynchronous file uploading to cloud storage Task.WaitAll(); } }