trivago / cluecumber

Clear and concise reporting for the Cucumber BDD JSON format.

Home Page:https://www.softwaretester.blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If I run same scenario multiple times but in different browser, there is no way to categorize/display scenario by browser or OS

motivatedmind opened this issue · comments

Is your feature request related to a problem? Please describe.
If I run same scenario multiple times but in different browser, there is no way to categorize/display scenario by browser or OS.

Describe the solution you'd like
In my project I pass browser values from CLI and then use testNg data provider to iterate a scenario for each browser supplied. The problem is that, as the same scenario is run multiple times, this gives an impression that there are duplicate entries in the report [though there are not exactly, because there is a difference of browser but one doesn't know that]. Could there be a possibilty to supply a custom value to cluecucumber. This category is then applied for each scenario. So when the report is generated, at home page I can just click category and then it shows all scenarios that has this category defined. This way one can sort reports by their choice of criteria like browser/OS/author etc.

Describe alternatives you've considered
So far I couldn't find anything yet.

Additional context
I get one json per scenario run. In other words I get 2 jsons if I run same scenario for chrome & firefox.

image

As Cluecumber uses the Cucumber json files which don't contain this information, it is not really possible without hacks such as attaching custom values that Cluecumber can interpret. However, these values would also show up in other reports but as meaningless overhead.
We actually have completely separate reports per browser but this depends on how your test framework/pipelines run these tests.