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

Log info in the steps #49

Closed iyustlop closed 4 years ago

iyustlop commented 4 years ago

Hi,

In the past I use Extent Report widely using Listener. Then I have a class that contains the loging mechanism.

With the plugin I want to log the same information but I don't find an example to follow. I want to include the response of a RestAssured Request in the report but I don't find the way to do it.

I have implemented in the Runner Class the plugin configuration.

Could you share a example??

Thank you very much indeed.

anshooarora commented 4 years ago

@iyustlop You can do so using:

ExtentCucumberAdapter.addTestStepLog(message);