Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » HTTP Test: error converting .rec file in .testsuite file
HTTP Test: error converting .rec file in .testsuite file [message #69497] Fri, 05 May 2006 05:50 Go to previous message
Eclipse User
Originally posted by: lorenzobenvenuti.grupposervizi.it

Hi all,

I've got the following issue while trying to test my web application
using TPTP
(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
..testsuite file.
The editor complaints about an invalid input and, watching the logs, I
found that
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
obtain the
error when trying my Macromedia (or Adobe, if you prefer) Flex (a Java
based RIA
framework, for those who don't know) web app.

A test I made was to try the Macromedia Flex Explorer (a showcase of all
Flex
features) available at

http://www.macromedia.com/go/flexapp_codeexplorer

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
between .rec
and .testsuite files. I tried to comment parts of the .rec file and
finally I
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
bit of
backquotes and 0D junk, nothing more).

Here's a sample of an amf call/response:

<TRCPacket ticket="39" connectionNumber="3" timestamp="32578"
from="CLIENT" type="HTTP">
<data length="462" encoding="ASCIIFY" encodedLength="523"
type="HTTPDATA" ><![CDATA[POST /flex/amfgateway HTTP/1.1`0D`
Accept: */*`0D`
x-flash-version: 8,5,0,246`0D`
Content-Type: application/x-amf`0D`
Content-Length: 66`0D`
Accept-Encoding: gzip, deflate`0D`
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)`0D`
Host: u-pc094:8080`0D`
Connection: Keep-Alive`0D`
Cache-Control: no-cache`0D`
Cookie: JSESSIONID=649C4E9985F50F69B1950968A23F904F;
JSESSIONID=649C4E9985F50F69B1950968A23F904F`0D0A0D0A00000000 000100`(samples.explorer.EmployeeManager.getList`0002`/2`000 000`

`00000001020002`PM]]></data>
</TRCPacket>

<TRCPacket ticket="40" connectionNumber="3" timestamp="32625"
from="SERVER" type="HTTP">
<data length="501" encoding="ASCIIFY" encodedLength="655"
type="HTTPDATA" ><![CDATA[HTTP/1.1 200 OK`0D`
Content-Type: application/x-amf`0D`
Content-Length: 364`0D`
Date: Thu, 04 May 2006 10:53:05 GMT`0D`
Server:
Apache-Coyote/1.1`0D0A0D0A000000000001000B`/2/onResult`0004` null`FFFFFFFF0A00000002100019`samples.explorer.Employee`0005 `phone`02000C`555-219-2030`000C`_remoteClass`020019`samples. explorer.Employee`0005`email`020017`rhodgman@fictitious.com`0004`name`02000E`Ronnie
Hodgman`0006`salary`000000000000000000000009100019`samples.e xplorer.Employee`0005`phone`02000C`555-219-2012`000C`_remote Class`020019`samples.explorer.Employee`0005`email`020014`jwall@fictitious.com`0004`name`02000B`Joanne
Wall`0006`salary`0000000000000000000000` ]]></data>
</TRCPacket>


Suggestions?

Thank you for your attention.

Regards,

Lorenzo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:HTTP Generate Wizard
Next Topic:ccessing AGR *.execution data inside and outside of eclipse
Goto Forum:
  


Current Time: Sun May 26 02:21:58 EDT 2013

Powered by FUDForum. Page generated in 0.06026 seconds