Skip to content

Commit

Permalink
Merge pull request #18 from riganti/reporting-deprecation
Browse files Browse the repository at this point in the history
Removed reporting feature
  • Loading branch information
quigamdev authored Aug 17, 2024
2 parents d312796 + 39c6381 commit 1f8bd36
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 503 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using System.Text;
using OpenQA.Selenium;
using Riganti.Selenium.Core.Abstractions.Attributes;
using Riganti.Selenium.Core.Abstractions.Reporting;

namespace Riganti.Selenium.Core.Abstractions.Exceptions
{
Expand Down Expand Up @@ -61,7 +60,6 @@ public override string StackTrace
public string WebBrowser { get; set; }
public string CurrentUrl { get; set; }
public string Screenshot { get; set; }
public Dictionary<string, TestRunInputResult> ReporterResults { get; set; }

protected TestExceptionBase()
{
Expand Down Expand Up @@ -109,41 +107,10 @@ private string RenderMetadata()
AppendField(sb, "Browser", WebBrowser);
AppendField(sb, "Url", CurrentUrl);
AppendField(sb, "Screenshot", Screenshot);
AppendReportersResults(sb, ReporterResults);

return sb.ToString();
}

private void AppendReportersResults(StringBuilder sb, Dictionary<string, TestRunInputResult> reporterResults)
{
if (reporterResults != null && reporterResults.Any())
{
sb.AppendLine("Reporters results: ");
foreach (var result in reporterResults)
{
if (result.Value is FailedTestRunInputResult failedResult)
{
if (failedResult.Exception != null)
{
AppendField(sb, $"{result.Key}.Exception ", failedResult.Exception?.Message);
}

continue;
}

if (!string.IsNullOrWhiteSpace(result.Value?.TestResultUrl))
{
AppendField(sb, $"{result.Key}.TestResultUrl ", result.Value.TestResultUrl);
}

if (!string.IsNullOrWhiteSpace(result.Value?.TestSuiteUrl))
{
AppendField(sb, $"{result.Key}.TestSuiteUrl ", result.Value.TestSuiteUrl);
}
}
}
}

private void RenderExceptionMessage(StringBuilder sb)
{
if (ExceptionMessage == null || ExceptionMessage.Length <= 0)
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions src/Core/Riganti.Selenium.Core/Configuration/ReportingOptions.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ public class SeleniumTestsConfiguration
public TestRunOptions TestRunOptions { get; } = new TestRunOptions();

public LoggingOptions Logging { get; } = new LoggingOptions();
public ReportingOptions Reporting { get; } = new ReportingOptions();
}
}
86 changes: 0 additions & 86 deletions src/Core/Riganti.Selenium.Core/Discovery/ResultReportersFactory.cs

This file was deleted.

Loading

0 comments on commit 1f8bd36

Please sign in to comment.