jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Beznogov" <andb...@googlemail.com>
Subject Re: Response code: 302
Date Thu, 21 Aug 2008 13:35:39 GMT
Hi,

add a View Results Tree Listener to your Test Plan. Set its options to
record everything (just check all of them). All the request made
during the run will be recorded there.

Set the Number of Threads and Loop Count for your Thread Group to 1,
so that you will have the minimal number of different requests. Run
you test, and check the requests/response data recorded in your View
Results Tree Listener. See that the proper requests were generated,
and the response was what you are expecting.

If you still cannot figure out whats wrong, post one of those request
with 302 response code plus its whole response.

Don't forget to check all the nodes if JMeter was following some redirects.

Regards,
Andrey

On Thu, Aug 21, 2008 at 5:04 PM, Jose Pablo Sarco
<jose.sarco@ar.neoris.com> wrote:
> Thanks for the answer Ronan, but I don't think so. The variable
> 'jsViewState' is not set in the 'HTTP URL Re-Writing Modifier' ?
>
> Please, let me know if I'm wrong or anyone need more information to help me.
>
> Thanks in advance,
>
> Jose
>
>
>
>
> De: Ronan Klyne
> Enviado el: Jue 21/08/2008 3:42
> Para: JMeter Users List
> Asunto: Re: Response code: 302
>
>
> Jose Pablo Sarco wrote:
>>
>> Hi,
>>
>> I'm trying to test a Login-logout path with Jmeter but When I tried to
>> run the Test Plan with Jmeter I get messages of the type "Response code:
>> 302 -- Response message: Moved Temporarily" and can not continue with
>> the path correctly.
>>
>> This is the test plan:
>>  HTTP Cookie manager (with clear cookies and compatibility policy)
>> HTTP URL Re-Writing Modifier (with path extension and cache session)
>> Simple Controller
>>
>> Regular Expression Extractor
>> HTTP Request HTTPClient (get: login page | Follow redirects=True)
>> HTTP Request HTTPClient (post: User; check; View: ${jsViewState};
>> loginForm | Follow redirects=True) <---Here I have the Response code:
>> 302
>>
>  HTTP Request HTTPClient (get: Check user.faces | Follow
>>
>> redirects=True)<---Here I have the Response code: 302
>>
>  HTTP Request HTTPClient (get: responsability.faces | Follow
>>
>> redirects=True)
>
> JMeter does appear to be following the 302 redirects successfully...
>
>> HTTP Request HTTPClient (post:responsability; login;
>> View:${jsViewState};loginForm | Follow redirects=True)
>
> It looks like the variable 'jsViewState' is not set. This is probably the
> cause of your problems
>
>        # r
>
> --
> Ronan Klyne
> Business Collaborator Developer
> Tel: +44 01189 028518
> ronan.klyne@groupbc.com
> www.groupbc.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
> #################################################################################################################
> Este documento puede incluir información confidencial y propiedad de Neoris
> y deberá ser leído solamente por la o las personas a quienes está dirigido.
> Si usted ha recibido este mensaje por error, por favor avise inmediatamente
> al remitente contestando y eliminando este correo. Cualquier punto de vista
> u opiniones expresadas en este mensaje son del remitente y no necesariamente
> coinciden con aquellas de Neoris. Este documento no deberá ser reproducido,
> copiado, distribuido, publicado, ni modificado por terceros sin la
> autorización por escrito de Neoris.
> Este mensaje ha sido verificado contra virus. Visítenos en www.neoris.com.
> #################################################################################################################
>



-- 
diem perdidi

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message