serenity-bdd / serenity-cucumber

Cucumber integration for the Serenity BDD Reporting library
Other
78 stars 74 forks source link

Not Getting the serenity BDD report properly with total counts #261

Closed anweshadhal closed 3 years ago

anweshadhal commented 3 years ago

I have implemented BDD cucumber with serenity. But my serenity report is not coming properly. I'm expecting as number test cases with failed and passed count with percentage.

@wakaleo Please refer the below dependencies i have added in build.gradle as well as my runner file.

Build.Gradle: Page-1 Screenshot (13)

Page-2 Screenshot (16) Runner class: Screenshot (15) Report: Screenshot (18)

Expected Report layout:

Screenshot (19)

Thanks in advance!!!

wakaleo commented 3 years ago

Try with a more recent version: http://github.com/serenity-bdd/serenity-cucumber-starter

anweshadhal commented 3 years ago

Hi @wakaleo ,

Thanks for your quick response.

I have tried to replace the build.gradle with the one you have provided in the serenity-cucumber-starter project, but i'm getting the below error. Even i have imported the serenity-cucumber-starter project and saw the same error.

Script is running fine, with that error but reports are not coming as serenity report.(Same as i got before and raised this issue for.)

Snapshot of error: Screenshot (20)

wakaleo commented 3 years ago

That looks like an eclipse issue - see if you can run from the command line.

anweshadhal commented 3 years ago

Thanks @wakaleo

I'm able to run from command line and got the aggregate report as shown in the below snapshot of my project.

Screenshot (21)

anweshadhal commented 3 years ago

Getting repot as expected

globalworming commented 3 years ago

just out of curiosity @anweshadhal, why didn't you try a more recent version to begin with? For example if you found an old project on github or old documentation, we might want to update that.