Hi,
since i upgraded my grails project from 1.2.1 to 1.3.3 and webtest (plugin)
2.0.1 to 3.0. most of the tests fail.
I dont know if this is a grails or a webtest problem so i post this message
in both forums.
The problem is that my test throws an org.apache.tools.ant.BuildException
when i use the verifyHeader step. For example here:
void testShouldRedirectForFrankfurt(){
config() {
option name: "RedirectEnabled", value: "false"
option name: "ThrowExceptionOnFailingStatusCode", value: "false"
}
testInfo(type: 'summary', description: "Page should redirect from
'/Frankfurt-HE' to '/Frankfurt-am-Main'")
//disable redirect
//groovy(description: 'disabling automatic redirect',
'step.context.webClient.redirectEnabled = false')
def oldCityUrlRep = 'Frankfurt-HE'
def newCityUrlRep = 'Frankfurt-am-Main'
enableJavaScript(description: 'disabling javascript', enable:
'false')
invoke homeUrl + '/' +oldCityUrlRep
storeResponseCode(property: "status")
verifyProperty(description:"response code should be 301",
name:"status", text:"301")
verifyHeader(description: 'checking redirect location', name:
'Location', text: "/$newCityUrlRep")
}
Any help would be appreciated.
Cheers
Sebastian
--
View this message in context:
http://old.nabble.com/verifyHeader-throws-org.apache.tools.ant.BuildException-%28webtest-3.0-%2B-grails-1.3.3%29-tp29170208p29170208.html
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest