extent-framework / extentreports-cucumber4-adapter

Cucumber4 Adapter for Extent Framework
http://extentreports.com/docs/versions/4/java/cucumber2.html
Apache License 2.0
39 stars 22 forks source link

Cucumber-Non-functional: look and feel for steps and scenario headline needs improvement #65

Open rahgir opened 4 years ago

rahgir commented 4 years ago

Hi @anshooarora ,

I was going through the SparkReporter Cucumber report and just felt that the look and feel in Test Panel needs improvement. If I expand the scenario(right of attached image) , it looks very weird and it's difficult for anyone to easily distinguish between a scenario headline and its step to contract it back. Situation gets more worse when there are multiple scenarios in feature file.

It looks low priority as of now but would really matter if fixed. may be a color change or some font alterations etc. ExtentScenarioDisplayIssue

I am attaching screenshot for your reference.

anshooarora commented 4 years ago

What version is this?

rahgir commented 4 years ago

Extentreports: 4.1.7 & extentreports-cucumber4-adapter: 1.0.12

anshooarora commented 4 years ago

Can you try with 1.2.0?

rahgir commented 4 years ago

Hi @anshooarora , Below are my observations after using cucumber-adapter: 1.0.12 along with extent-report 5.0.0(klov-reporter added to exclusions).

  1. Look and Feel got improved. Better than earlier.
  2. I am not able to generate report in dark mode even if theme set to DARK in spark-config.xml and other config as mentioned here -> https://github.com/extent-framework/extentreports-cucumber4-adapter/tree/master/config
  3. Spark Report is getting generated via JSON Formatter in JSON format but existing JSON file(Extent.json) in path ("test-output/JsonReport/Extent.json") is not getting considered when "extent.reporter.spark.start=true & extent.reporter.json.start=false/true". I use to use this feature to merge multiple json reports and generate a single final html report. It was possible in 4.1.5 version. Wish this is also possible via adapter. Eg: extent.createDomainFromJsonArchive method
  4. In Dashboard Section, Steps Count Not != Sum of total of Passed Steps under Tags. Sending the report via email. Please check.
rahgir commented 4 years ago

@anshooarora : did you get any chance to look into this issue ?

anshooarora commented 4 years ago

The latest v1.2.1 resolves 2 & 3. For 4, it should match up as it counts the total number of tests, not steps.

rahgir commented 4 years ago

@anshooarora : I verified with adapter version 1.2.1 & extentreport - 5.0.1 by reexecuting same test twice. It is overwriting the earlier JSON file and the spark report generated is showing only one test instead of two with the same name. Hence observation 3 above needs to be fixed.

Below is my config

--# spark-reporter extent.reporter.spark.start=true extent.reporter.spark.config= extent.reporter.spark.out=target/test-classes/ExtentReports/SparkReport/Index.html

--# klov-reporter extent.reporter.klov.start=false extent.reporter.klov.config=src/test/resources/klov.properties

--# json-reporter extent.reporter.json.start=true extent.reporter.json.out=target/test-classes/ExtentReports/JsonReport/Extent.json

--# screenshot config screenshot.dir=test-output/ screenshot.rel.path=../