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

In generated report Screen shot URL is absolute path instead of relative path #38

Closed samaran43 closed 4 years ago

samaran43 commented 4 years ago

Hi, I am using "extentreports-cucumber4-adapter" in my project. I am facing following issue. Can any resolve this?

  1. I have configured the screen shot directory as "screenshot.dir=test-output/screenshots" in properties file it working for me. but the thing is, In generated report screen shot path formed by absolute path instead of absolute path. So when i send my report to someone then screen shot is displaying in the report since it's absolute path.

can anyone solve this? Or any alternate way to resolve this issue?

anshooarora commented 4 years ago

This behavior is due to the following: https://github.com/extent-framework/extentreports-cucumber4-adapter/blob/master/src/main/java/com/aventstack/extentreports/cucumber/adapter/ExtentCucumberAdapter.java#L213

This must be changed to the as-is path provided by screenshot.dir.

anshooarora commented 4 years ago

@samaran43 Please view #20. The latest snapshot provides the ability to specify the relative path from the report to display screenshots.

samaran43 commented 4 years ago

@samaran43 Please view #20. The latest snapshot provides the ability to specify the relative path from the report to display screenshots.

Hi @anshooarora , thank you valuable response. When can i get the final version of 1.0.11 in MVN repository?

anshooarora commented 4 years ago

@samaran43 This was a SNAPSHOT version until today, I have just released it and may take a few hours to reflect here.

anshooarora commented 4 years ago

@samaran43 are you still experiencing this issue, or can it be closed?

samaran43 commented 4 years ago

Hi @anshooarora , Issue resoved we can close this