It's not a bad idea, it's just a little tricky.  For instance, you wouldn't want to 
do it for all assertions and post-processors because it's not always 
appropriate.  Ideally, I think we've decided we want the assertions and post-
processors to be smarter and to know abou the possibility of sub-results so 
they can check them too.  

For your need, look directly at 
org.apache.jmeter.assertions.ResponseAssertion and note that it accepts a 
SampleResult object as an argument.  That SampleResult could have sub 
results in it that the response assertion should check.  If any sub result 
results in a true result, the whole results should be returned as true.

-Mike

On 14 Aug 2003 at 16:35, Tolley Shorn wrote:

> Folks,
> 
> I need this kind of functionality too.
> I put the assertion on a HTTP sample, then turn on "Follow Redirects" and 
JMeter follows the redirect fine, but JMeter applies the assertion to the original 
302 response instead of the redirect follow-up GET response.
> 
> Would it be hard to alter the HTTPSample class to implement this behaviour 
(apply child components to the follow-up request if "follow redirects" is on)?
> If I did implement this - would it be accepted as a contibution or does no-
one else want this behaviour from JMeter?
> 
> Or is there a reason this kind of thing is a bad idea?
> 
> Cheers,
> Shorn.
> 
> 
> 
> -------------------------------------------------------------
> 
> List:     jmeter-user
> Subject:  Response assertion against a 302 on HTTP Request
> From:     Nick Faiz <nick.faiz () ce ! com ! au>
> Date:     2003-07-31 1:46:09
> 
> Hi,
>       I want to make a response assertion against the response of the 302
> that my HTTP Request gives. In other words, my test requests a URL, this 
URL
> then issues a 302 redirect to the user agent, the new URL contains the
> response I'd like to assert against.
>       Is it possible to co-ordinate a test for this?
> 
> Thanks,
> Nick Faiz
> B2B e-Commerce Developer
> Corporate Express Australia Ltd.
> 
> Phone: +61-2-9335-0495, Fax: 9335-0753, Email: [EMAIL PROTECTED]
> 
> 
> ************************************************************************
> The information in this e-mail together with any attachments is
> intended only for the person or entity to which it is addressed
> and may contain confidential and/or privileged material.
> Any form of review, disclosure, modification, distribution
> and/or publication of this e-mail message is prohibited.  
> If you have received this message in error, you are asked to
> inform the sender as quickly as possible and delete this message
> and any copies of this message from your computer and/or your
> computer system network.  
> ************************************************************************
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




--
Michael Stover
[EMAIL PROTECTED]
Yahoo IM: mstover_ya
ICQ: 152975688
AIM: mstover777

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to