Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed reporting feature #18

Merged
merged 1 commit into from
Aug 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading