email2vimalraj / CucumberExtentReporter

A plugin to generate the cucumber jvm custom html report using ExtentsReport
http://www.vimalselvam.com/cucumber-extent-reporter/
MIT License
58 stars 74 forks source link

To Exclude "Before" and "After" in Cucumber-Extent-Report for each scenario #117

Open manjunp opened 4 years ago

manjunp commented 4 years ago

Hello, Here's my POM.xml file dependency. All works fine, but my report has @Before and @After method details part of Extent Report. I would like them to be excluded. Is there any configuration to exclude them from the report?


    <dependency>
        <groupId>com.vimalselvam</groupId>
        <artifactId>cucumber-extentsreport</artifactId>
        <version>3.1.1</version>
    </dependency>
    <dependency>
        <groupId>com.aventstack</groupId>
        <artifactId>extentreports</artifactId>
        <version>4.1.2</version>
    </dependency>
    <dependency>
        <groupId>com.aventstack</groupId>
        <artifactId>extentreports-cucumber4-adapter</artifactId>
        <version>1.0.10</version>
    </dependency>

Report:

Scenario: Create Employee(s) and validate the response status code EmsStepDeps.beforeScenario() --> This I want to exclude from extent report Given the EMS REST Service API "api/v1/employees" Endpoint to CREATE the Employee record When client provides the MyFirstName to set on first_name And client provides the MyLastName to set on last_name And client provides the myemailid@gmail.com to set on email_id And client send the "HTTP-POST" request Then client receives valid response status code as 200 EmsStepDeps.afterScenario() --> This I want to exclude from extent report

Any suggestions?

manjunp commented 4 years ago

If any solution "to exclude @Before and @After log steps in Cucumber Extent Report for each scenario", kindly advise. Thanks in advance.