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

Simplify Selenium reporting configuration #32

Closed
Galad opened this issue May 9, 2018 · 0 comments
Closed

Simplify Selenium reporting configuration #32

Galad opened this issue May 9, 2018 · 0 comments
Projects
Milestone

Comments

@Galad
Copy link
Owner

Galad commented May 9, 2018

Provide a single method for configuring Selenium reporting (text + XML / HTML report + screenshots).

var actor = new Actor("John").WithSeleniumReporting(
     "C:\screenshots", 
     "Screenshot_{0:00}",
     out var reporter,
     new DebugObserver(),
     new ConsoleObserver()
     );

The signature of the method would be

public Actor WithSeleniumReporting(this Actor actor,
                                   string screenshotDirectory,
                                   string screenshotNameFormat,
                                   out ISeleniumReporter reporter,
                                   params IObserver<string>[] textOutputObservers);

The newly introduced interface would be a facade for accessing the report and saving the screenshots

public interface ISeleniumReporter
{
    XDocument GetXmlReport();
    string GetHtmlReport();
    void SaveScreenshots();
}
@Galad Galad added this to In Progress in tranquire May 9, 2018
@Galad Galad closed this as completed in 414580b May 9, 2018
tranquire automation moved this from In Progress to Done May 9, 2018
@Galad Galad added this to the v0.2.69-alpha milestone May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
tranquire
  
Done
Development

No branches or pull requests

1 participant