SReport 1.0.1
dotnet add package SReport --version 1.0.1
NuGet\Install-Package SReport -Version 1.0.1
<PackageReference Include="SReport" Version="1.0.1" />
paket add SReport --version 1.0.1
#r "nuget: SReport, 1.0.1"
// Install SReport as a Cake Addin #addin nuget:?package=SReport&version=1.0.1 // Install SReport as a Cake Tool #tool nuget:?package=SReport&version=1.0.1
SReport
SReport is a log manager for Selenium based tests and projects
How to use
Call SReportBuilder
to generate a log Report file, based on what type of logs you want and the desired log folder. You should do it only one time:
SReport logReport = SReportBuilder.Setup(yourIWebDriver, desiredLogFolder)
.AddAllLogs()
.Build();
After that, you just can call the method Log
whenever you want to genetare a log based on test or a context. Generally it is called on tests TearDown, after each text execution if failed.
logReport.Log("your test name / context name");
Customizations
If you are not looking fo all logs, just a screenshoot or browser console info, you can filter them after the Setup
method, calling from the SReportBuilder. As Example:
// AddLog method cascate
SReport logReport = SReportBuilder.Setup(yourIWebDriver, desiredLogFolder)
.AddLog(SLog.Screenshoot)
.AddLog(SLog.BrowserConsole)
.AddLog(SLog.PageHtml)
.Build();
// Only one AddLog call
SReport logReport = SReportBuilder.Setup(yourIWebDriver, desiredLogFolder)
.AddLog(SLog.Screenshoot, SLog.BrowserConsole, SLog.PageHtml)
.Build();
Logs explanation
Screenshoot: Take a Screenshoot based in the Browser View, and saves it as .png file.
Browser Console: Saves a text file containing browser console content.
Page Html: Create a .htm file with the real state of the page. It can be also manipulated in a browser DevTools to be easy to correct errors based on element queries.
WebDriver Instance: Log Based on Selenium Web Driver Instance report.
Selenium Client: Log Based on Selenium Server report.
Profiling: Log Based on Selenium Profile report.
Profiling: Log Based on Selenium Server Messages report.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- HtmlAgilityPack (>= 1.11.1)
- Selenium.WebDriver (>= 3.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Fix css download for PageHtml log.