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

extent.properties file taking only from src/main/resource. #22

Open sandeepmknair opened 5 years ago

sandeepmknair commented 5 years ago

Hi Anshoo,

Thank you so much for your great work.This really helped our project to go furher. My problem is If I want to create a directory under resources and place extent.properties it is not working.Could you please tell me how to configure the path of extent.properties?

anshooarora commented 4 years ago

It should pick up the properties file from "src/test/resources". Can you try again?

anshooarora commented 4 years ago

Closing as there has been no response. Please reopen if you still encounter this issue with the latest release.

kameshbabu commented 4 years ago

Following to this questions, is there any ways to configure to pick up from other folders apart from "src/test/resource" ?

grasshopper7 commented 4 years ago

The locations are coded in the source itself. Check this https://github.com/extent-framework/extentreports-cucumber4-adapter/blob/75b01cf2de9781b4894c779579ad443c9a427cd4/src/main/java/com/aventstack/extentreports/service/ExtentService.java#L48

Do not think there is a way to configure a specific folder. A 'not so good' workaround could be to pass the key-value in the command itself. Maybe worthwhile if you create one reporter only, need to pass start, config and out key-value pairs.

anshooarora commented 4 years ago

The issue with config is it should be available right when the Service loads so it knows which components to setup for use. I can add a convenience method to allow this after the instance has been created to which you can supply the properties path. To better understand this, can you specify where you can storing the properties file?