Cucumber Exception Failed to create directory












0















When I run MainRunner class in response I get error message in console like below. I did set permissions for folder.



enter image description here



Here is my step class:



package CucumberFramework.steps;

import cucumber.api.java.en.Given;

import cucumber.api.java.en.Then;

import cucumber.api.java.en.When;



public class LoginSteps {

@Given("^User navigate to stackoverflow webstie$")

public void user_navigate_to_stackoverflow_webstie() throws Throwable {

System.out.println("user_navigate_to_stackoverflow_webstie");

}



@Given("^User clicks on the login button$")

public void user_clicks_on_the_login_button() throws Throwable {

System.out.println("user_clicks_on_the_login_button");

}



@Given("^User enters valid username$")

public void user_enters_valid_username() throws Throwable {

System.out.println("user_enters_valid_username");

}



@Given("^User enters valid password$")

public void user_enters_valid_password() throws Throwable {

System.out.println("user_enters_valid_password");

}

@When("^User clicks again on the login button$")

public void user_clicks_again_on_the_login_button() throws Throwable {

System.out.println("user_clicks_again_on_the_login_button");

}



@Then("^User should be taken to the sucsfull login page$")

public void user_should_be_taken_to_the_sucsfull_login_page() throws Throwable {

System.out.println("user_should_be_taken_to_the_sucsfull_login_page");

}

@Given("^User navigate to stackoverflow webstie(\d+)$")

public void user_navigate_to_stackoverflow_webstie2(int arg1) throws Throwable {

System.out.println("user_navigate_to_stackoverflow_webstie2");

}



@Given("^User clicks on the login button(\d+)$")

public void user_clicks_on_the_login_button2(int arg1) throws Throwable {

System.out.println("user_clicks_on_the_login_button2");

}



@Given("^User enters valid username(\d+)$")

public void user_enters_valid_username2(int arg1) throws Throwable {

System.out.println("user_enters_valid_username2");

}



@Given("^User enters valid password(\d+)$")

public void user_enters_valid_password2(int arg1) throws Throwable {

System.out.println("user_enters_valid_password2");

}



@When("^User clicks again on the login button(\d+)$")

public void user_clicks_again_on_the_login_button2(int arg1) throws Throwable {

System.out.println("user_clicks_again_on_the_login_button2");

}



@Then("^User should be taken to the sucsfull login page(\d+)$")

public void user_should_be_taken_to_the_sucsfull_login_page2(int arg1) throws Throwable {

System.out.println("user_should_be_taken_to_the_sucsfull_login_page2");

}

}


I have also looked at permissions for the target folder and have ensured permissions is granted for all users. I'm on Windows 10 Pro. I also try to run Eclipse in administrator mode that didn't help as well.



This is my Pom.xml
https://pastebin.com/ad2qyGRH



I have also tried the following:



running: Eclipse menu Project > Clean...



enter image description here



But no joy. Does anyone know what could be causing this please?



Kind regards










share|improve this question























  • Could you check that target/cucumber is not a file?

    – SubOptimal
    Nov 27 '18 at 8:56
















0















When I run MainRunner class in response I get error message in console like below. I did set permissions for folder.



enter image description here



Here is my step class:



package CucumberFramework.steps;

import cucumber.api.java.en.Given;

import cucumber.api.java.en.Then;

import cucumber.api.java.en.When;



public class LoginSteps {

@Given("^User navigate to stackoverflow webstie$")

public void user_navigate_to_stackoverflow_webstie() throws Throwable {

System.out.println("user_navigate_to_stackoverflow_webstie");

}



@Given("^User clicks on the login button$")

public void user_clicks_on_the_login_button() throws Throwable {

System.out.println("user_clicks_on_the_login_button");

}



@Given("^User enters valid username$")

public void user_enters_valid_username() throws Throwable {

System.out.println("user_enters_valid_username");

}



@Given("^User enters valid password$")

public void user_enters_valid_password() throws Throwable {

System.out.println("user_enters_valid_password");

}

@When("^User clicks again on the login button$")

public void user_clicks_again_on_the_login_button() throws Throwable {

System.out.println("user_clicks_again_on_the_login_button");

}



@Then("^User should be taken to the sucsfull login page$")

public void user_should_be_taken_to_the_sucsfull_login_page() throws Throwable {

System.out.println("user_should_be_taken_to_the_sucsfull_login_page");

}

@Given("^User navigate to stackoverflow webstie(\d+)$")

public void user_navigate_to_stackoverflow_webstie2(int arg1) throws Throwable {

System.out.println("user_navigate_to_stackoverflow_webstie2");

}



@Given("^User clicks on the login button(\d+)$")

public void user_clicks_on_the_login_button2(int arg1) throws Throwable {

System.out.println("user_clicks_on_the_login_button2");

}



@Given("^User enters valid username(\d+)$")

public void user_enters_valid_username2(int arg1) throws Throwable {

System.out.println("user_enters_valid_username2");

}



@Given("^User enters valid password(\d+)$")

public void user_enters_valid_password2(int arg1) throws Throwable {

System.out.println("user_enters_valid_password2");

}



@When("^User clicks again on the login button(\d+)$")

public void user_clicks_again_on_the_login_button2(int arg1) throws Throwable {

System.out.println("user_clicks_again_on_the_login_button2");

}



@Then("^User should be taken to the sucsfull login page(\d+)$")

public void user_should_be_taken_to_the_sucsfull_login_page2(int arg1) throws Throwable {

System.out.println("user_should_be_taken_to_the_sucsfull_login_page2");

}

}


I have also looked at permissions for the target folder and have ensured permissions is granted for all users. I'm on Windows 10 Pro. I also try to run Eclipse in administrator mode that didn't help as well.



This is my Pom.xml
https://pastebin.com/ad2qyGRH



I have also tried the following:



running: Eclipse menu Project > Clean...



enter image description here



But no joy. Does anyone know what could be causing this please?



Kind regards










share|improve this question























  • Could you check that target/cucumber is not a file?

    – SubOptimal
    Nov 27 '18 at 8:56














0












0








0








When I run MainRunner class in response I get error message in console like below. I did set permissions for folder.



enter image description here



Here is my step class:



package CucumberFramework.steps;

import cucumber.api.java.en.Given;

import cucumber.api.java.en.Then;

import cucumber.api.java.en.When;



public class LoginSteps {

@Given("^User navigate to stackoverflow webstie$")

public void user_navigate_to_stackoverflow_webstie() throws Throwable {

System.out.println("user_navigate_to_stackoverflow_webstie");

}



@Given("^User clicks on the login button$")

public void user_clicks_on_the_login_button() throws Throwable {

System.out.println("user_clicks_on_the_login_button");

}



@Given("^User enters valid username$")

public void user_enters_valid_username() throws Throwable {

System.out.println("user_enters_valid_username");

}



@Given("^User enters valid password$")

public void user_enters_valid_password() throws Throwable {

System.out.println("user_enters_valid_password");

}

@When("^User clicks again on the login button$")

public void user_clicks_again_on_the_login_button() throws Throwable {

System.out.println("user_clicks_again_on_the_login_button");

}



@Then("^User should be taken to the sucsfull login page$")

public void user_should_be_taken_to_the_sucsfull_login_page() throws Throwable {

System.out.println("user_should_be_taken_to_the_sucsfull_login_page");

}

@Given("^User navigate to stackoverflow webstie(\d+)$")

public void user_navigate_to_stackoverflow_webstie2(int arg1) throws Throwable {

System.out.println("user_navigate_to_stackoverflow_webstie2");

}



@Given("^User clicks on the login button(\d+)$")

public void user_clicks_on_the_login_button2(int arg1) throws Throwable {

System.out.println("user_clicks_on_the_login_button2");

}



@Given("^User enters valid username(\d+)$")

public void user_enters_valid_username2(int arg1) throws Throwable {

System.out.println("user_enters_valid_username2");

}



@Given("^User enters valid password(\d+)$")

public void user_enters_valid_password2(int arg1) throws Throwable {

System.out.println("user_enters_valid_password2");

}



@When("^User clicks again on the login button(\d+)$")

public void user_clicks_again_on_the_login_button2(int arg1) throws Throwable {

System.out.println("user_clicks_again_on_the_login_button2");

}



@Then("^User should be taken to the sucsfull login page(\d+)$")

public void user_should_be_taken_to_the_sucsfull_login_page2(int arg1) throws Throwable {

System.out.println("user_should_be_taken_to_the_sucsfull_login_page2");

}

}


I have also looked at permissions for the target folder and have ensured permissions is granted for all users. I'm on Windows 10 Pro. I also try to run Eclipse in administrator mode that didn't help as well.



This is my Pom.xml
https://pastebin.com/ad2qyGRH



I have also tried the following:



running: Eclipse menu Project > Clean...



enter image description here



But no joy. Does anyone know what could be causing this please?



Kind regards










share|improve this question














When I run MainRunner class in response I get error message in console like below. I did set permissions for folder.



enter image description here



Here is my step class:



package CucumberFramework.steps;

import cucumber.api.java.en.Given;

import cucumber.api.java.en.Then;

import cucumber.api.java.en.When;



public class LoginSteps {

@Given("^User navigate to stackoverflow webstie$")

public void user_navigate_to_stackoverflow_webstie() throws Throwable {

System.out.println("user_navigate_to_stackoverflow_webstie");

}



@Given("^User clicks on the login button$")

public void user_clicks_on_the_login_button() throws Throwable {

System.out.println("user_clicks_on_the_login_button");

}



@Given("^User enters valid username$")

public void user_enters_valid_username() throws Throwable {

System.out.println("user_enters_valid_username");

}



@Given("^User enters valid password$")

public void user_enters_valid_password() throws Throwable {

System.out.println("user_enters_valid_password");

}

@When("^User clicks again on the login button$")

public void user_clicks_again_on_the_login_button() throws Throwable {

System.out.println("user_clicks_again_on_the_login_button");

}



@Then("^User should be taken to the sucsfull login page$")

public void user_should_be_taken_to_the_sucsfull_login_page() throws Throwable {

System.out.println("user_should_be_taken_to_the_sucsfull_login_page");

}

@Given("^User navigate to stackoverflow webstie(\d+)$")

public void user_navigate_to_stackoverflow_webstie2(int arg1) throws Throwable {

System.out.println("user_navigate_to_stackoverflow_webstie2");

}



@Given("^User clicks on the login button(\d+)$")

public void user_clicks_on_the_login_button2(int arg1) throws Throwable {

System.out.println("user_clicks_on_the_login_button2");

}



@Given("^User enters valid username(\d+)$")

public void user_enters_valid_username2(int arg1) throws Throwable {

System.out.println("user_enters_valid_username2");

}



@Given("^User enters valid password(\d+)$")

public void user_enters_valid_password2(int arg1) throws Throwable {

System.out.println("user_enters_valid_password2");

}



@When("^User clicks again on the login button(\d+)$")

public void user_clicks_again_on_the_login_button2(int arg1) throws Throwable {

System.out.println("user_clicks_again_on_the_login_button2");

}



@Then("^User should be taken to the sucsfull login page(\d+)$")

public void user_should_be_taken_to_the_sucsfull_login_page2(int arg1) throws Throwable {

System.out.println("user_should_be_taken_to_the_sucsfull_login_page2");

}

}


I have also looked at permissions for the target folder and have ensured permissions is granted for all users. I'm on Windows 10 Pro. I also try to run Eclipse in administrator mode that didn't help as well.



This is my Pom.xml
https://pastebin.com/ad2qyGRH



I have also tried the following:



running: Eclipse menu Project > Clean...



enter image description here



But no joy. Does anyone know what could be causing this please?



Kind regards







eclipse cucumber pom.xml file-permissions






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 23 '18 at 11:46









bs3acbs3ac

49119




49119













  • Could you check that target/cucumber is not a file?

    – SubOptimal
    Nov 27 '18 at 8:56



















  • Could you check that target/cucumber is not a file?

    – SubOptimal
    Nov 27 '18 at 8:56

















Could you check that target/cucumber is not a file?

– SubOptimal
Nov 27 '18 at 8:56





Could you check that target/cucumber is not a file?

– SubOptimal
Nov 27 '18 at 8:56












1 Answer
1






active

oldest

votes


















0














The exception cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory ... happen, when a file with the name of output directory (target/cucumber) already exists.



Assume following structure



src/test/java/runner/TestRunner.java
pom.xml


pom.xml dependencies



<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.cucumber>2.0.0</version.cucumber>
</properties>
<dependencies>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-java</artifactId>
<version>${version.cucumber}</version>
</dependency>
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-junit</artifactId>
<version>${version.cucumber}</version>
<scope>test</scope>
</dependency>
</dependencies>


TestRunner.java



package runner;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

@RunWith(Cucumber.class)
@CucumberOptions(plugin = { "html:target/cucumber" })
public class TestRunner {
}


steps to reproduce



$ mvn clean test-compile
$ echo "some text" > target/cucumber


now as the file target/cucumber exists, run the test



$ mvn test


it fails with



Caused by: cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory /tmp/cuke.test/target/cucumber
at cucumber.runtime.formatter.HTMLFormatter.createReportFileOutputStream(HTMLFormatter.java:520)
at cucumber.runtime.formatter.HTMLFormatter.createJsOut(HTMLFormatter.java:510)
at cucumber.runtime.formatter.HTMLFormatter.<init>(HTMLFormatter.java:123)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)


Based on the line numbers in the above stacktrace and in the screenshot from the OP. It seems the OP uses a Cucumber version 2.0.0-SNAPSHOT. Because the method reportFileOutputStream was renamed in class HTMLFormatter to createReportFileOutputStream (SHA1: 486b82cb9). Which was before Cucumber version 2.0.0 was released.






share|improve this answer
























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53446128%2fcucumber-exception-failed-to-create-directory%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The exception cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory ... happen, when a file with the name of output directory (target/cucumber) already exists.



    Assume following structure



    src/test/java/runner/TestRunner.java
    pom.xml


    pom.xml dependencies



    <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <version.cucumber>2.0.0</version.cucumber>
    </properties>
    <dependencies>
    <dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-java</artifactId>
    <version>${version.cucumber}</version>
    </dependency>
    <dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-junit</artifactId>
    <version>${version.cucumber}</version>
    <scope>test</scope>
    </dependency>
    </dependencies>


    TestRunner.java



    package runner;
    import org.junit.runner.RunWith;
    import cucumber.api.CucumberOptions;
    import cucumber.api.junit.Cucumber;

    @RunWith(Cucumber.class)
    @CucumberOptions(plugin = { "html:target/cucumber" })
    public class TestRunner {
    }


    steps to reproduce



    $ mvn clean test-compile
    $ echo "some text" > target/cucumber


    now as the file target/cucumber exists, run the test



    $ mvn test


    it fails with



    Caused by: cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory /tmp/cuke.test/target/cucumber
    at cucumber.runtime.formatter.HTMLFormatter.createReportFileOutputStream(HTMLFormatter.java:520)
    at cucumber.runtime.formatter.HTMLFormatter.createJsOut(HTMLFormatter.java:510)
    at cucumber.runtime.formatter.HTMLFormatter.<init>(HTMLFormatter.java:123)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)


    Based on the line numbers in the above stacktrace and in the screenshot from the OP. It seems the OP uses a Cucumber version 2.0.0-SNAPSHOT. Because the method reportFileOutputStream was renamed in class HTMLFormatter to createReportFileOutputStream (SHA1: 486b82cb9). Which was before Cucumber version 2.0.0 was released.






    share|improve this answer




























      0














      The exception cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory ... happen, when a file with the name of output directory (target/cucumber) already exists.



      Assume following structure



      src/test/java/runner/TestRunner.java
      pom.xml


      pom.xml dependencies



      <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <version.cucumber>2.0.0</version.cucumber>
      </properties>
      <dependencies>
      <dependency>
      <groupId>io.cucumber</groupId>
      <artifactId>cucumber-java</artifactId>
      <version>${version.cucumber}</version>
      </dependency>
      <dependency>
      <groupId>io.cucumber</groupId>
      <artifactId>cucumber-junit</artifactId>
      <version>${version.cucumber}</version>
      <scope>test</scope>
      </dependency>
      </dependencies>


      TestRunner.java



      package runner;
      import org.junit.runner.RunWith;
      import cucumber.api.CucumberOptions;
      import cucumber.api.junit.Cucumber;

      @RunWith(Cucumber.class)
      @CucumberOptions(plugin = { "html:target/cucumber" })
      public class TestRunner {
      }


      steps to reproduce



      $ mvn clean test-compile
      $ echo "some text" > target/cucumber


      now as the file target/cucumber exists, run the test



      $ mvn test


      it fails with



      Caused by: cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory /tmp/cuke.test/target/cucumber
      at cucumber.runtime.formatter.HTMLFormatter.createReportFileOutputStream(HTMLFormatter.java:520)
      at cucumber.runtime.formatter.HTMLFormatter.createJsOut(HTMLFormatter.java:510)
      at cucumber.runtime.formatter.HTMLFormatter.<init>(HTMLFormatter.java:123)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)


      Based on the line numbers in the above stacktrace and in the screenshot from the OP. It seems the OP uses a Cucumber version 2.0.0-SNAPSHOT. Because the method reportFileOutputStream was renamed in class HTMLFormatter to createReportFileOutputStream (SHA1: 486b82cb9). Which was before Cucumber version 2.0.0 was released.






      share|improve this answer


























        0












        0








        0







        The exception cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory ... happen, when a file with the name of output directory (target/cucumber) already exists.



        Assume following structure



        src/test/java/runner/TestRunner.java
        pom.xml


        pom.xml dependencies



        <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <version.cucumber>2.0.0</version.cucumber>
        </properties>
        <dependencies>
        <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-java</artifactId>
        <version>${version.cucumber}</version>
        </dependency>
        <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-junit</artifactId>
        <version>${version.cucumber}</version>
        <scope>test</scope>
        </dependency>
        </dependencies>


        TestRunner.java



        package runner;
        import org.junit.runner.RunWith;
        import cucumber.api.CucumberOptions;
        import cucumber.api.junit.Cucumber;

        @RunWith(Cucumber.class)
        @CucumberOptions(plugin = { "html:target/cucumber" })
        public class TestRunner {
        }


        steps to reproduce



        $ mvn clean test-compile
        $ echo "some text" > target/cucumber


        now as the file target/cucumber exists, run the test



        $ mvn test


        it fails with



        Caused by: cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory /tmp/cuke.test/target/cucumber
        at cucumber.runtime.formatter.HTMLFormatter.createReportFileOutputStream(HTMLFormatter.java:520)
        at cucumber.runtime.formatter.HTMLFormatter.createJsOut(HTMLFormatter.java:510)
        at cucumber.runtime.formatter.HTMLFormatter.<init>(HTMLFormatter.java:123)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)


        Based on the line numbers in the above stacktrace and in the screenshot from the OP. It seems the OP uses a Cucumber version 2.0.0-SNAPSHOT. Because the method reportFileOutputStream was renamed in class HTMLFormatter to createReportFileOutputStream (SHA1: 486b82cb9). Which was before Cucumber version 2.0.0 was released.






        share|improve this answer













        The exception cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory ... happen, when a file with the name of output directory (target/cucumber) already exists.



        Assume following structure



        src/test/java/runner/TestRunner.java
        pom.xml


        pom.xml dependencies



        <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <version.cucumber>2.0.0</version.cucumber>
        </properties>
        <dependencies>
        <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-java</artifactId>
        <version>${version.cucumber}</version>
        </dependency>
        <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-junit</artifactId>
        <version>${version.cucumber}</version>
        <scope>test</scope>
        </dependency>
        </dependencies>


        TestRunner.java



        package runner;
        import org.junit.runner.RunWith;
        import cucumber.api.CucumberOptions;
        import cucumber.api.junit.Cucumber;

        @RunWith(Cucumber.class)
        @CucumberOptions(plugin = { "html:target/cucumber" })
        public class TestRunner {
        }


        steps to reproduce



        $ mvn clean test-compile
        $ echo "some text" > target/cucumber


        now as the file target/cucumber exists, run the test



        $ mvn test


        it fails with



        Caused by: cucumber.runtime.CucumberException: java.io.IOException: Failed to create directory /tmp/cuke.test/target/cucumber
        at cucumber.runtime.formatter.HTMLFormatter.createReportFileOutputStream(HTMLFormatter.java:520)
        at cucumber.runtime.formatter.HTMLFormatter.createJsOut(HTMLFormatter.java:510)
        at cucumber.runtime.formatter.HTMLFormatter.<init>(HTMLFormatter.java:123)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)


        Based on the line numbers in the above stacktrace and in the screenshot from the OP. It seems the OP uses a Cucumber version 2.0.0-SNAPSHOT. Because the method reportFileOutputStream was renamed in class HTMLFormatter to createReportFileOutputStream (SHA1: 486b82cb9). Which was before Cucumber version 2.0.0 was released.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 28 '18 at 8:18









        SubOptimalSubOptimal

        16.6k22746




        16.6k22746
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53446128%2fcucumber-exception-failed-to-create-directory%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Academy of Television Arts & Sciences

            L'Équipe

            1995 France bombings