{"action":"created","issue":{"url":"https://api.github.com/repos/extent-framework/extentreports-cucumber4-adapter/issues/5","repository_url":"https://api.github.com/repos/extent-framework/extentreports-cucumber4-adapter","labels_url":"https://api.github.com/repos/extent-framework/extentreports-cucumber4-adapter/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/extent-framework/extentreports-cucumber4-adapter/issues/5/comments","events_url":"https://api.github.com/repos/extent-framework/extentreports-cucumber4-adapter/issues/5/events","html_url":"https://github.com/extent-framework/extentreports-cucumber4-adapter/issues/5","id":391460605,"node_id":"MDU6SXNzdWUzOTE0NjA2MDU=","number":5,"title":"OS: Windows - Not writing embedded png file on the directory pointed in extent.properties due to which throws IO Exception","user":{"login":"NerdishShah","id":31189986,"node_id":"MDQ6VXNlcjMxMTg5OTg2","avatar_url":"https://avatars3.githubusercontent.com/u/31189986?v=4","gravatar_id":"","url":"https://api.github.com/users/NerdishShah","html_url":"https://github.com/NerdishShah","followers_url":"https://api.github.com/users/NerdishShah/followers","following_url":"https://api.github.com/users/NerdishShah/following{/other_user}","gists_url":"https://api.github.com/users/NerdishShah/gists{/gist_id}","starred_url":"https://api.github.com/users/NerdishShah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NerdishShah/subscriptions","organizations_url":"https://api.github.com/users/NerdishShah/orgs","repos_url":"https://api.github.com/users/NerdishShah/repos","events_url":"https://api.github.com/users/NerdishShah/events{/privacy}","received_events_url":"https://api.github.com/users/NerdishShah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-16T12:02:40Z","updated_at":"2018-12-17T17:05:50Z","closed_at":"2018-12-17T17:05:50Z","author_association":"NONE","body":"On Windows, there is no screenshots written on the pointed directory in extent.properties and throws IO Exception. Please note that the same works fine on Mac platform except that it always writes on first level directory.\r\n\r\n**OS:** Windows\r\n**Klov Version:** 0.2.2\r\n**Adapter Version:** 1.2.5\r\n\r\n**Using:**\r\n\r\n@After\r\n\tpublic void embedScreenshot(Scenario scenario) throws IOException {\r\n\t\tif (scenario.isFailed()) {\r\n\t\t\tWebDriver driver = DriverManager.getDriver();\r\n\t\t\tbyte[] screenshot = ((TakesScreenshot) driver).getScreenshotAs(OutputType.BYTES);\r\n\t\t\tscenario.embed(screenshot, \"image/png\");\r\n\t\t\tif (driver != null) {\r\n\t\t\t\tdriver.quit();\r\n\t\t\t\tdriver = null;\r\n\t\t\t}\r\n\r\n\t}\r\n\r\n**extent.properties**\r\n\r\nextent.reporter.avent.start=false\r\nextent.reporter.bdd.start=false\r\nextent.reporter.cards.start=false\r\nextent.reporter.email.start=false\r\nextent.reporter.html.start=true\r\nextent.reporter.klov.start=true\r\nextent.reporter.logger.start=true\r\nextent.reporter.tabular.start=false\r\n\r\nextent.reporter.avent.config=\r\nextent.reporter.bdd.config=\r\nextent.reporter.cards.config=\r\nextent.reporter.email.config=\r\nextent.reporter.html.config=\r\nextent.reporter.klov.config=src/test/resources/klov.properties\r\nextent.reporter.logger.config=\r\nextent.reporter.tabular.config=\r\n\r\nextent.reporter.avent.out=test-output/AventReport/\r\nextent.reporter.bdd.out=test-output/BddReport/\r\nextent.reporter.cards.out=test-output/CardsReport/\r\nextent.reporter.email.out=test-output/EmailReport/ExtentEmail.html\r\nextent.reporter.html.out=test-output/HtmlReport/ExtentHtml.html\r\nextent.reporter.logger.out=test-output/LoggerReport/\r\nextent.reporter.tabular.out=test-output/TabularReport/\r\n\r\nscreenshot.dir=test-output/screenshots/\r\n\r\n**StackTrace:** \r\n\r\njava.io.IOException: The system cannot find the file specified D:\\Dev\\My Lab\\cucumber4adapter\\test-output\\screenshots\\embedded1.png\r\n\tat com.aventstack.extentreports.mediastorage.impl.HttpMediaManagerImplKlov.storeMedia(HttpMediaManagerImplKlov.java:44)\r\n\tat com.aventstack.extentreports.mediastorage.KlovMediaStorageHandler.saveScreenCapture(KlovMediaStorageHandler.java:47)\r\n\tat com.aventstack.extentreports.reporter.ExtentKlovReporter.saveScreenCapture(ExtentKlovReporter.java:679)\r\n\tat com.aventstack.extentreports.reporter.ExtentKlovReporter.onScreenCaptureAdded(ExtentKlovReporter.java:671)\r\n\tat com.aventstack.extentreports.ExtentObservable.addScreenCapture(ExtentObservable.java:374)\r\n\tat com.aventstack.extentreports.ExtentTest.addLog(ExtentTest.java:363)\r\n\tat com.aventstack.extentreports.ExtentTest.log(ExtentTest.java:308)\r\n\tat com.aventstack.extentreports.ExtentTest.info(ExtentTest.java:443)\r\n\tat com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter.handleEmbed(ExtentCucumberAdapter.java:178)\r\n\tat com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter.access$4(ExtentCucumberAdapter.java:168)\r\n\tat com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter$6.receive(ExtentCucumberAdapter.java:115)\r\n\tat com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter$6.receive(ExtentCucumberAdapter.java:1)\r\n\tat cucumber.runner.AbstractEventPublisher.send(AbstractEventPublisher.java:45)\r\n\tat cucumber.runner.AbstractEventBus.send(AbstractEventBus.java:9)\r\n\tat cucumber.runner.TimeServiceEventBus.send(TimeServiceEventBus.java:3)\r\n\tat cucumber.runner.ThreadLocalRunnerSupplier$SynchronizedEventBus.send(ThreadLocalRunnerSupplier.java:90)\r\n\tat cucumber.runner.ThreadLocalRunnerSupplier$LocalEventBus.send(ThreadLocalRunnerSupplier.java:63)\r\n\tat cucumber.runner.Scenario.embed(Scenario.java:58)\r\n\tat com.ei.StepDefinitions.TransferSteps.embedScreenshot(TransferSteps.java:60)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat cucumber.runtime.Utils$1.call(Utils.java:26)\r\n\tat cucumber.runtime.Timeout.timeout(Timeout.java:16)\r\n\tat cucumber.runtime.Utils.invoke(Utils.java:20)\r\n\tat cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)\r\n\tat cucumber.runner.HookDefinitionMatch.runStep(HookDefinitionMatch.java:16)\r\n\tat cucumber.runner.TestStep.executeStep(TestStep.java:63)\r\n\tat cucumber.runner.TestStep.run(TestStep.java:49)\r\n\tat cucumber.runner.TestCase.run(TestCase.java:48)\r\n\tat cucumber.runner.Runner.runPickle(Runner.java:40)\r\n\tat cucumber.runtime.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:146)\r\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:68)\r\n\tat cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:23)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:73)\r\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:124)\r\n\tat cucumber.api.junit.Cucumber.runChild(Cucumber.java:65)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat cucumber.api.junit.Cucumber$1.evaluate(Cucumber.java:133)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)\r\n\tat org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:538)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:760)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:460)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:206)\r\n"},"comment":{"url":"https://api.github.com/repos/extent-framework/extentreports-cucumber4-adapter/issues/comments/447920891","html_url":"https://github.com/extent-framework/extentreports-cucumber4-adapter/issues/5#issuecomment-447920891","issue_url":"https://api.github.com/repos/extent-framework/extentreports-cucumber4-adapter/issues/5","id":447920891,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzkyMDg5MQ==","user":{"login":"anshooarora","id":4107384,"node_id":"MDQ6VXNlcjQxMDczODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4107384?v=4","gravatar_id":"","url":"https://api.github.com/users/anshooarora","html_url":"https://github.com/anshooarora","followers_url":"https://api.github.com/users/anshooarora/followers","following_url":"https://api.github.com/users/anshooarora/following{/other_user}","gists_url":"https://api.github.com/users/anshooarora/gists{/gist_id}","starred_url":"https://api.github.com/users/anshooarora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anshooarora/subscriptions","organizations_url":"https://api.github.com/users/anshooarora/orgs","repos_url":"https://api.github.com/users/anshooarora/repos","events_url":"https://api.github.com/users/anshooarora/events{/privacy}","received_events_url":"https://api.github.com/users/anshooarora/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T17:05:50Z","updated_at":"2018-12-17T17:05:50Z","author_association":"MEMBER","body":"I am unable to reproduce.  I am also closing this as this issue is very difficult to comprehend.  Please format your code properly and make sure your configuration is valid.  If you continue to face issues, you can open a new ticket with properly formatted test+code.  Thank you.\r\n\r\nklov.properties\r\n```\r\nmongodb.host=localhost\r\nmongodb.port=27017\r\nmongodb.uri=\r\nklov.host=http://localhost\r\nklov.port=80\r\nklov.project.name=cucumber4\r\nklov.report.name=snapshots\r\n```\r\n\r\nextent.properties\r\n```\r\nextent.reporter.html.start=true\r\nextent.reporter.klov.start=true\r\n\r\nextent.reporter.html.config=\r\nextent.reporter.klov.config=src/test/resources/klov.properties\r\n\r\nextent.reporter.html.out=test-output/HtmlReport/ExtentHtml.html\r\n\r\nscreenshot.dir=test-output/screenshots/shots/\r\n```\r\n\r\nKlov:\r\n\r\n![image](https://user-images.githubusercontent.com/4107384/50102764-e4ded400-01f3-11e9-8373-df4fb63e7e35.png)\r\n"}}
{"actor":{"display_login":"anshooarora"}}