[Webtest] encoding problem
Dierk Koenig
webtest@lists.canoo.com
Wed, 5 May 2004 11:12:56 +0200
try
<setinputfield name="q" value="µ" /> <!-- decimal value of hex b5 -->
cheers
Mittie
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Renato Gasparelli
> Cavalcante
> Sent: Dienstag, 4. Mai 2004 23:25
> To: webtest@lists.canoo.com
> Subject: [Webtest] encoding problem
>
>
> Hi
>
> I have a test case that need to use the 'µ' symbol (hex:B5), but
> seems to me, that webtest convert it to '?' symbol (hex:3F). Does anyone
> know what can i do to solve this problem?
>
> I have made a sample to show my point. Look the stretches below:
> google.xml (input file) : <setinputfield name="q" value="µ" />,
> result.xml (result file) : <parameter name="value" value="?"/>,
> lastResponse...html (google last response file) :
> http://images.google.com/images?q=%3F&...
>
> I am passing 'µ' to webtest and webtest is returning me the
> '?' symbol.
>
> file: google.xml
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="google" default="main" >
>
>
>
> <target name="main">
> <testSpec name="google">
> <config host="www.google.com"
> port="80"
> protocol="http"
> basepath="/"
> haltonfailure="false"
> haltonerror="false"
> summary="true"
> resultpath="."
> resultfile="results.xml"
> verbose="true"
> saveresponse="true"
> showhtmlparseroutput="false"/>
>
>
>
> <steps>
> <invoke url="ncr" />
> <setinputfield name="q" value="µ" />
> <clickbutton name="btnG"/>
> </steps>
>
>
>
> </testSpec>
> </target>
>
>
>
> <property name="webtest.home"
> value="/var/tmp/renatogc/workspace/test.webtest/original" />
>
>
>
> <taskdef file="${webtest.home}/webtestTaskdefs.properties">
> <classpath>
> <pathelement path="${webtest.home}/lib"/>
> <fileset dir="${webtest.home}"
> includes="**/lib/*.jar"/>
> </classpath>
> </taskdef>
>
>
>
> </project>
>
> file: result.xml
> ...
> <step>
> <parameter name="value" value="?"/>
> <parameter name="stepId" value="<unknown>"/>
> <parameter name="name" value="q"/>
> <parameter name="stepType" value="setinputfield"/>
> <result>
> <completed duration="3"/>
> </result>
> </step>
> ...
>
> link found in one of the lastResponse file:
> "http://images.google.com/images?q=%3F&hl=en&lr=&ie=UTF-8&oe=ISO-8
859-1&sa=N&tab=wi"
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest