4 messages in com.canoo.lists.webtestRe: [Webtest] Re: Canoo WebTest and t...
FromSent OnAttachments
Office 2004 Test Drive-Benutzer24 Jan 2006 06:46 
Marc Guillemot24 Jan 2006 10:49 
Paul King24 Jan 2006 12:11 
Marc Guillemot24 Jan 2006 13:52 
Subject:Re: [Webtest] Re: Canoo WebTest and testing WAP/WML
From:Marc Guillemot (mgui@yahoo.fr)
Date:01/24/2006 01:52:20 PM
List:com.canoo.lists.webtest

Now fixed in htmlunit. Users who want to use it before I drop a new snapshot of htmlunit in webtest can get htmlunit from CVS and make a local build.

Marc.

PS: thanks Paul for the example (in fact I've added unit tests using only the content type, it was easier ;-))

Paul King wrote:

Marc, here is an example from ASERT's WAP course - but we haven't run it for several years so I don't know if it is out of date.

<?xml version="1.0"?> <!DOCTYPE WML PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card> <p>Hello, WAP world.</p> </card> </wml>

Cheers, Paul.

Marc Guillemot wrote:

Hi,

this is currently not possible to configure how responses are read. If such requests come frequently it would be interesting to give such a possibility.

I will add the right mapping for text/vnd.wap.wml. Can you give me a minimal text/vnd.wap.wml file to add in the tests, I wouldn't have to search by myself for a meaningfull example.

Marc.

Office 2004 Test Drive-Benutzer wrote:

Hi,

I tried to use following XPath test on WML: <verifyXPath description="simple match" xpath="/wml/card/@title"/>

but I get following error message: BUILD FAILED /Users/alex/Desktop/WebTest/XPathWMLTest.xml:7: Canoo Webtest: R_1135. Test failed. Test step verifyXPath (/Users/alex/Desktop/WebTest/XPathWMLTest.xml:24: ) named "simple match" failed with message "Current response is not an HTML or XML page but of type text/vnd.wap.wml (com.gargoylesoftware.htmlunit.TextPage)"

I browsed the documentation but I could not find a possibility to add the Content-Type text/vnd.wap.wml to the accepted content types. Is that possible?

Hi,

there are no specific steps but I guess that you can use xpath to perform some tests.

Marc.

Hi folks,

is it possible to use Canoo Webtest for testing WAP applications?

Thanks in advance,