agent-java-cucumber icon indicating copy to clipboard operation
agent-java-cucumber copied to clipboard

Serenity BDD Agent to support detailed reporting to reportportal

Open robinGupta11392 opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. Currently there is no agent to support Serenity BDD automation. As per the docs on reportportal, I found this open-source contribution from Invictum but its outdated from both ReportPortal client-java and Serenity Core versions. I am using the provided agent from cucumber6 but it is not able to report the detailed Steps like how this plugin used to work with old versions - https://github.com/Invictum/serenity-reportportal-integration

Describe the solution you'd like Either an addition to existing cucumber6-7 agent or a separate agent plugin to support this integration will help to get this feature out of the box. It will be also helpful if we can have a starter-kit which we can extend as per our use cases.

Describe alternatives you've considered java-agent-cucumber6 --> this works for providing the basic report for the scenario and immediate steps only (most hurtful is that attachments are missing from Reportportal Launch). Its missing the internal steps inside the traditional GIVEN, WHEN and THEN

Appreciate if there is any workaround or guidance to start building this plugin.

robinGupta11392 avatar Aug 08 '23 11:08 robinGupta11392

@robinGupta11392 Unfortunately I don't have any example project which uses good amount of Serenity features to implement adequate listener. It looks like Serenity has StepListener class specially for that, but I can't say if that will be enough.

HardNorth avatar Aug 11 '23 14:08 HardNorth

Hi @HardNorth, thanks for your reply. I could find some of the example projects from serenity-BDD official GitHub account. Few of them are:

  • https://github.com/serenity-bdd/screenplay-pattern-todomvc
  • https://github.com/serenity-bdd/serenity-cucumber-starter

They have for other patterns too.

As a workaround, I tried to fork and update invictum's integration repo and have sent a PR yesterday. But It would really help if can help a reportportal official agent for serenity bdd to integrate StepListener with attachments.

robinGupta11392 avatar Aug 12 '23 01:08 robinGupta11392