Hi Dierk,

i assume that the actual value is: 'text/html;charset=utf-8'
because this combination of steps:

 storeHeader(name:'Content-Type',property:'contentType')
 verifyProperty(name:'contentType',text:'text/html;charset=utf-8')

works fine and the test succeeds. I can provide a test project if its necessary.

Hope that helps.

Kind regards,
Sebastian



On 12.08.2010 20:50, Dierk König wrote:
Hi,

verifyHeader hasn't changed since a long time and specifically not in
syntax.

Can you check what Content-Type was actually returned?

cheers
Dierk

Am 11.08.2010 um 11:28 schrieb sebastianb:

Hello,

since i have upgraded my grails (v1.3.4) to webtest 3.0 some of my webtest
fails due to a StepExecutionException for verifyHeader: e.g:

class SimpleWebTests extends grails.util.WebTest {

    void testGrailsProjectSite() {
        invoke 'http://www.grails.org'

        storeResponseCode(property: "status")
        verifyProperty(description:"response code should be 200",
name:"status", text:"200")

        verifyHeader(description: 'checking Content-Type header', name:
'Content-Type', text: "text/html;charset=utf-8")
    }

}

Did the verifyHeader syntax change in some way or am i missing something?

Kind regards
Sebastian

--
View this message in context: 
http://old.nabble.com/verifyHeader-throws-com.canoo.webtest.engine.StepExecutionException-tp29406508p29406508.html
Sent from the WebTest mailing list archive at Nabble.com.

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest


--
Sebastian Barszczewski
Juno Internet GmbH | www.kaufDA.de
Softwareentwickler

Tel. + 49 (0) 30 / 609 896 0 - 0
Fax + 49 (0) 30 / 609 896 0 - 99
[email protected]

Sitz des kaufDA Office:
Schönhauser Tor, Tortsraße 49, 10119 Berlin

Sitz der Gesellschaft:
Fronhoferstr. 6, 12165 Berlin

Amtsgericht Charlottenburg - HRB 115393 B
Geschäftsführung: Thomas Frieling, Christian W. Gaiser, Tim M. Marbach


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to