grasshopper7 / extentreports-cucumber6-adapter

Cucumber-JVM 6 Adapter for Extent Framework
https://ghchirp.online/2098/
MIT License
16 stars 15 forks source link

Scenario Outline shows Incorrect / Extra test Count in Dashboard View - extentreports-cucumber6-adapter #19

Closed bughunter7 closed 4 years ago

bughunter7 commented 4 years ago

When Running a Scenario Outline the count in the dashboard is incorrect . it displays double count to what scenario is executed also tags section shows same scenario title twice.

Please find Below link for report screenshots – https://github.com/bughunter7/ExtentReportIssue

Dependency used –

tech.grasshopper extentreports-cucumber6-adapter 1.2.0 test

sc11

sc22

Please let me the solution its urgent .also let me know if any more info required from my end awaiting for your response 🙂

grasshopper7 commented 4 years ago

How many rows do u have in the scenario outline? Add ur feature file. Is it double or just one additional test count?

bughunter7 commented 4 years ago

Feature file I am using has only one test count -

Note : This happens only when scenario outline keyword is used in feature file works fine in case of only scenario keyword .

Feature: Backend Order Creation

@Checkout Scenario Outline: User Creates an order From Backend Given user is on Landing Page When he enters his username and password to test OrderCreation TC And clicks on sales And clicks on orders And clicks on create new order Then he enters the and And clicks on search button And clicks on search results Then selects as a store And clicks on add products Then searches for And selects the product from checkbox And clicks on add selected products to order And enters the purchase order no And clicks on link get shipping methods and rates And selects the radio button And clicks on submit order Then message visible is you created the order And order no is displayed

Examples: 
  | email id              | userid | sku                                    | po number |
  | tomailior.com    |     70   | 00-2118860-4-106-a0820 |      1234       |
grasshopper7 commented 4 years ago

The adapter collects and sends the data to the existing Extent Spark Report which applies the logic for report creation. If the data collection logic is changed at the adapter level by ignoring the scenario outline then the report will not display the scenarios under a scenario outline but as independent scenarios. Pretty sure there would be other consequences. My understanding is that this needs to be looked at from the Extent Report level. As you have already created a similar issue in that repo, it would be my suggestion to get their feedback on this.