extentreports-cucumber7-adapter icon indicating copy to clipboard operation
extentreports-cucumber7-adapter copied to clipboard

Customizing scenario outline when cucumber test scenario has multiple example sets

Open pallerlavamshi opened this issue 8 months ago • 0 comments

I am currently working on a project where we run multiple tests with same test steps but have different test data as below.

Test case 1: Verify addition for integers

Test case 2: Verify addition for float numbers

So instead of creating two different scenario outlines, we combined them into one scenario by passing example sets as below

Scenario Outline: verify addition (@CDM-T1234 & @CDM-T1235) Given pass input and do addition

@CDM-T1234 @testreport
Examples:
  | dataIteration |
  | data01        |
@CDM-T1235 @testreport
Examples:
  | dataIteration |
  | data01        |

@CDM-T1234 - add two integer values @CDM-T1235 - add two float values

when I run these tests reports is coming as below

Image

But I want to customize the report as below. main scenario outline is verify addition (@CDM-T1234 & @CDM-T1235) and individual test case title are add two integer values add two float values example report we are looking for

Image

is there a way to set the custom test name at test level? by keeping the scenario outline as is and modifying the test name at test level

pallerlavamshi avatar Apr 03 '25 13:04 pallerlavamshi