Alternative implementation of the ConsoleReporter #2797
-
I have a question that I'd like to ask as am now using a feature of serenity-js again that I used a long time ago (right back when serenity-js was a youngster at v1.x 😃). I use it to interact with a Ramblers production system as part of an open source project I created called NGX-Ramblers. Ramblers has no API for the function I wish to perform, so I built a screen scraper that invokes this scenario. This is orchestrated by a node-js server-side process here that currently scrapes the default My question is, how can I do this better by creating an alternative implementation of the ConsoleReporter that writes directly to my database in a non-scrapy way? 🤣. Also as a bonus. I would like to see real-time messages written to the database, as the current implementation only sees the parsed output once the serenity process is complete. Your thoughts appreciated please @jan-molak! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I'm interested in this discussion because I recently attempted to do something somewhat similar and ran into some problems. I was trying to just report to a network endpoint some key details when the test was started and when it had finished. I discovered that
1: The same place that the I wasn't able to get real-time reporting to the endpoint—though I was able to get end-of-scene reporting. I'd be curious, @jan-molak, what advice you have if someone wants to get scene-specific real-time reporting based on events. Thanks for all of your hard work on this project! |
Beta Was this translation helpful? Give feedback.
-
@nbarrett - Please have a look at https://github.com/orgs/serenity-js/discussions/2839
@TurekBot - Yes, I'm working on addressing that as part of #2788
Of course! And thanks for helping me make it better for everyone! |
Beta Was this translation helpful? Give feedback.
-
Hey @jan-molak - I've completed the work and have pushed the changes to my repo here if you are interested! Also here's a video of it in action - really pleased with the results - thanks so much for your help in creating the awesomeness of the Serenity-js project 🚀 Serenity.Real-Time.Events.Demo.mp4 |
Beta Was this translation helpful? Give feedback.
@nbarrett - Please have a look at https://github.com/orgs/serenity-js/discussions/2839
While that question talks about code coverage reporting, your use case is similar, in that you want to have a custom stage crew member that performs async operations in response to events.
@TurekBot - Yes, I'm working on addressing that as part of #2788
I want both the st…