-1

I'm not able to run a feature file. I'm getting the below error:

Can someone tell where the issue needs to be fixed? I'll add more info when asked as I don't know from which file this error is coming from.

Exception in thread "main" io.cucumber.core.exception.CompositeCucumberException: There were 3 exceptions:
  java.lang.IllegalStateException(Failed to load ApplicationContext)
  java.lang.IllegalStateException(Failed to load ApplicationContext)
  java.lang.IllegalStateException(Failed to load ApplicationContext)
    at io.cucumber.core.runtime.CucumberExecutionContext.getException(CucumberExecutionContext.java:84)
    at io.cucumber.core.runtime.Runtime.run(Runtime.java:103)
    at io.cucumber.core.cli.Main.run(Main.java:92)
    at cucumber.api.cli.Main.run(Main.java:30)
    at cucumber.api.cli.Main.main(Main.java:15)

Global Hooks:

@CucumberContextConfiguration
@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
@ContextConfiguration(classes = { Application.class, AppPropertiesContext.class },loader = SpringBootContextLoader.class)
3
  • How are you executing your suite? – João Farias Jun 1 at 7:14
  • I believe there is something wrong with your spring application config. – Alexey R. Jun 1 at 15:15
  • i have resolved this..the issue was it was pointing to a url which does not exist – user49677 Jun 2 at 3:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.