IntelliJ not recognizing Rest Assured dependencies

Hi everyone,

I'm working on a Maven project in IntelliJ and trying to use Rest Assured for API testing, but I'm having trouble importing Rest Assured dependencies .

IntelliJ shows "Cannot resolve symbol 'Response'" when I try to import `io.restassured.response.Response`, even though I have the dependency in my pom.xml. I have a lot of problems just with Restassured…

Thanks in advance for any help!

0
1 comment

IntelliJ shows "Cannot resolve symbol 'Response'" when I try to import `io.restassured.response.Response`, even though I have the dependency in my pom.xml.

You seem to have the dependencies on the test classpath, but your code is placed in the compile/runtime classpath. Have a look at your “scope” elements in the dependencies.

test

This scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases.

https://stackoverflow.com/a/29230903/2055163

0

Please sign in to leave a comment.