|HTTP Test: error converting .rec file in .testsuite file [message #69497]
||Fri, 05 May 2006 05:50
Originally posted by: lorenzobenvenuti.grupposervizi.it|
I've got the following issue while trying to test my web application
(I tried both v4.1 and v4.2): I can successfully record a sequence of HTTP
calls, but I receive an error while converting the .rec file in a
The editor complaints about an invalid input and, watching the logs, I
the resulting .testsuite file is a corrupted zip (it has just the
header, no data).
Everything works fine if I record some random web navigation, but I
error when trying my Macromedia (or Adobe, if you prefer) Flex (a Java
framework, for those who don't know) web app.
A test I made was to try the Macromedia Flex Explorer (a showcase of all
features) available at
Everything fine in this case. If I deploy the same application on my Tomcat
(both 4.1.30 and 5.0.28), TPTP is unable to perform the conversion
and .testsuite files. I tried to comment parts of the .rec file and
found the calls responsible of the TPTP failure: the issue seems to
be concerning a particular type of POST calls made from Flex (Content-type:
application/x-amf), but I can't see what's wrong whit them (there's a
backquotes and 0D junk, nothing more).
Here's a sample of an amf call/response:
<TRCPacket ticket="39" connectionNumber="3" timestamp="32578"
<data length="462" encoding="ASCIIFY" encodedLength="523"
type="HTTPDATA" ><![CDATA[POST /flex/amfgateway HTTP/1.1`0D`
Accept-Encoding: gzip, deflate`0D`
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)`0D`
JSESSIONID=649C4E9985F50F69B1950968A23F904F`0D0A0D0A00000000 000100`(samples.explorer.EmployeeManager.getList`0002`/2`000 000`
<TRCPacket ticket="40" connectionNumber="3" timestamp="32625"
<data length="501" encoding="ASCIIFY" encodedLength="655"
type="HTTPDATA" ><![CDATA[HTTP/1.1 200 OK`0D`
Date: Thu, 04 May 2006 10:53:05 GMT`0D`
Apache-Coyote/1.1`0D0A0D0A000000000001000B`/2/onResult`0004` null`FFFFFFFF0A00000002100019`samples.explorer.Employee`0005 `phone`02000C`555-219-2030`000C`_remoteClass`020019`samples. explorer.Employeefirstname.lastname@example.org`0004`name`02000E`Ronnie
Hodgman`0006`salary`000000000000000000000009100019`samples.e xplorer.Employee`0005`phone`02000C`555-219-2012`000C`_remote Class`020019`samples.explorer.Employeeemail@example.com`0004`name`02000B`Joanne
Thank you for your attention.