extentreports-cucumber4-adapter icon indicating copy to clipboard operation
extentreports-cucumber4-adapter copied to clipboard

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

Open sandeepmknair opened this issue 6 years ago • 5 comments

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?

sandeepmknair avatar May 07 '19 01:05 sandeepmknair

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

anshooarora avatar Dec 24 '19 05:12 anshooarora

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

anshooarora avatar Jan 06 '20 06:01 anshooarora

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

kameshbabu avatar May 29 '20 08:05 kameshbabu

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.

grasshopper7 avatar May 29 '20 09:05 grasshopper7

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?

anshooarora avatar May 29 '20 21:05 anshooarora