Skip to content

Commit

Permalink
Output launch URL when it finishes (#92)
Browse files Browse the repository at this point in the history
Add Launch URL for RP
  • Loading branch information
mklpanasiuk authored Aug 6, 2024
1 parent 4b2b3b6 commit e2a7b36
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,11 @@ private void FinishRun(string report)
if (!eventArg.Canceled)
{
var sw = Stopwatch.StartNew();
Console.Write("Finishing to send the results to Report Portal... ");


_launchReporter.Finish(finishLaunchRequest);
_launchReporter.Sync();

Console.WriteLine($"Elapsed: {sw.Elapsed}");
Console.WriteLine($"Successfully sent at {_launchReporter.Info.Url} Elapsed: {sw.Elapsed}");

var statisticsRecord = _launchReporter.StatisticsCounter.ToString();
_traceLogger.Info(statisticsRecord);
Expand All @@ -128,11 +127,10 @@ private void FinishRun(string report)
else
{
var sw = Stopwatch.StartNew();
Console.Write("Finishing to send the results to Report Portal... ");

_launchReporter.Sync();

Console.WriteLine($"Elapsed: {sw.Elapsed}");
Console.WriteLine($"Successfully sent at {_launchReporter.Info.Url} Elapsed: {sw.Elapsed}");

var statisticsRecord = _launchReporter.StatisticsCounter.ToString();
_traceLogger.Info(statisticsRecord);
Expand Down

0 comments on commit e2a7b36

Please sign in to comment.