From 212e118c71a2b94900ce59405bb7ad4e9e693400 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko Date: Mon, 17 May 2021 14:34:34 +0300 Subject: [PATCH] Output simple http requests statistics at the end of results reporting --- .../ReportPortalListener.Launch.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ReportPortal.NUnitExtension/ReportPortalListener.Launch.cs b/src/ReportPortal.NUnitExtension/ReportPortalListener.Launch.cs index b6d4bfe..27e53b2 100644 --- a/src/ReportPortal.NUnitExtension/ReportPortalListener.Launch.cs +++ b/src/ReportPortal.NUnitExtension/ReportPortalListener.Launch.cs @@ -112,6 +112,10 @@ private void FinishRun(string report) Console.WriteLine($"Elapsed: {sw.Elapsed}"); + var statisticsRecord = _launchReporter.StatisticsCounter.ToString(); + _traceLogger.Info(statisticsRecord); + Console.WriteLine(statisticsRecord); + try { AfterRunFinished?.Invoke(this, new RunFinishedEventArgs(_rpService, finishLaunchRequest, _launchReporter, report));