Open djoodle opened 9 years ago
The web-app under test doesn't appear to actually start up when running in the functional test phase using the functional-spock plugin. I'm trying to use HTTPBuilder to test XML-RPC API:
Functional-Spock: 0.7 Grails: 2.3.8
BuildConfig.groovy: compile ':functional-spock:0.7'
compile ':functional-spock:0.7'
ExampleTestSpec.groovy:
class ExampleTestSpec extends Specification { def "test post to webapp url"() { when: groovyx.net.http.HTTPBuilder('http://localhost:9000/example-app').get(path:'/') { resp, reader -> println "resp.status" } then: true } }
The above test throws a HttpResponseException: Not Found
HttpResponseException: Not Found
During the test I cannot wget the page, 404 response.
The web-app under test doesn't appear to actually start up when running in the functional test phase using the functional-spock plugin. I'm trying to use HTTPBuilder to test XML-RPC API:
Functional-Spock: 0.7 Grails: 2.3.8
BuildConfig.groovy:
compile ':functional-spock:0.7'
ExampleTestSpec.groovy:
The above test throws a
HttpResponseException: Not Found
During the test I cannot wget the page, 404 response.