After upgrading canoo webtest to version 3.0, the verifyHeader test no longer works

40 Views Asked by At

The browser page for the test displays

Unexpected exception caught: org.apache.tools.ant.BuildException.

The console log shows no errors.

I know the project is defunct, but I love the package and hope someone has a suggestion.

1

There are 1 best solutions below

0
On

I've come up with a workaround. If the original test looked like this:

<!-- language: lang-xml -->
<verifyHeader name="Content-Type" text="application/x-gzip"/>

You can replace it with this:

<!-- language: lang-xml -->
<storeHeader name="Content-Type" property="contentType"/>
<verifyProperty name="contentType" text="application/x-gzip"/>