[ptt-users] Strange behavior - but where from?

Olivier Dony olivier.dony at denali.be
Mon Sep 17 23:33:04 PDT 2007


On Sep 15, 2007, at 2:32 AM, Ernest Semerda wrote:
> Hi,

Hi Ernest,


> I'm getting strange behavior from TM which hopefully someone can  
> shed some light / help me out? :)
> Here's what has been scripted in TM:
>
> 1. I've setup a login to an online secure service.
>
> 2. One of the scripts POSTs login details to a URL which is  
> structured like this to login into the system:
> https://www.mydomain.com/loginControl/?%22https://www.mydomain.com/ 
> myFriendlyName%22-T
>
> 3. After the login, a call is redirected to
> https://www.mydomain.com/myFriendlyName

Is this redirect supposed to be done via a HTTP redirect response  
(302|303) coming from the server, or via a javascript or meta tag in  
the HTML itself?


> Which should return content and response code 200.

Do you mean you expect a 200 response for the next request after the  
redirect, or for the redirect response itself?


> However, it doesn't returning 302 and 0 content length.
> After running a debug on jcookie, the RFC2965CookieParser,tailMatch 
> () URL is returning:
> https://www.mydomain.com/myFriendlyName/?%22https:// 
> www.mydomain.com/myFriendlyName%22-T
> Which is invalid and is dumped by this Novell Access Gateway as a  
> 302 Redirect with 0 byte content weight.

I'm not sure I understand correctly. What has jcookie to do with a  
redirect?
Just in case: an HTTP 302 redirect response is a correct way to  
redirect the browser to another URL, and is achieved by returning an  
HTTP 302 status code, with a special "Location" header. This kind of  
HTTP response should contain a non-empty body (as per HTTP RFC 2616),  
but that is *not* mandatory, so even a Content-Length of 0 is valid,  
and the gateway has no reason to drop it.
And even if it did, I don't see why it wouldn't also drop the same  
response when you do the scenario using a regular browser?!

Have you tried capturing the HTTP packets going back and forth  
between the client and the server during the test (using Ethereal for  
example)?
What does that look like? What is the difference when you execute the  
scenario manually with a browser, as opposed to when you do it via TM?

And what does your jython script look like? Have you used TestGen4Web  
to record the scenario and then imported it within TM?
Or is this a custom script?



--
Olivier Dony,

Denali s.a., "Bridging the gap between Business and IT"
Rue de Clairvaux 8, B-1348 Louvain-la-Neuve, Belgium
Office: +32 10 43 99 51  Fax: +32 10 43 99 52
www.denali.be

Legal Notice: This message may contain confidential and/or privileged  
information. If you are not the addressee or authorized to receive  
this for the addressee, you must not use, copy, disclose or take any  
action based on this message or any information herein. If you have  
received this message by mistake, please advise the sender  
immediately by return e-mail and delete this message from your  
system. Thank you for your cooperation.




More information about the Users mailing list