Skip to content
New issue

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

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

Already on GitHub? # to your account

Improve Scenarioo Reporter #20

Open
bruderol opened this issue Nov 14, 2017 · 0 comments
Open

Improve Scenarioo Reporter #20

bruderol opened this issue Nov 14, 2017 · 0 comments

Comments

@bruderol
Copy link
Member

bruderol commented Nov 14, 2017

Some findings from junit5 refactoring to be addressed in both versions (junit4 and junit5) of the example:

  1. Exception information (stacktrace) should be attached to scenarioo report on test failure.

  2. WebDriver is initialized to listen for all interactions for each use case - shouldnt the listener only start to report during test execution (such that a test could do some test preparation without reporting it?)? Currenty it looks a bit weird this initialization is only done once per test class. In junit5 there is a special hook for BeforeTestExecution that could be used for that.

    • also this kind of opening the browser for each use case leads to browser poping always up again during test execution on desktop for many tests (maybe we should reuse the browser somehow)
  3. ScenariooEventListener: better rename to ScenariooStepReporter or even WebDriverStepReporter?

  4. UseCaseContext:

    • I think we should rename this to "ScenriooReporterContext" or something similar, since it holds more than just the use case
    • Ideas for junit5 only:
      • maybe it would be better to not handle that as a Singleton through the context holder but directly hold it inside the reporter ??
      • also we should later change it to use more of the JUnit 5 context info - see class ExtensionContext (e.g. DisplayName!)
  5. Further Ideas for Junit 5 only:

    • support Tag annotation from junit5
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant