On 13/08/2009, Deepak Shetty <[email protected]> wrote: > hi > The only workaround I had was to uncheck redirect automatically and follow > redirects and use the regex extractor to extract the Location headers to > redirect to and add another sample to visit the extracted location.
Yes. > As far as I know if redirect automatically or follow redirects is checked > then the assertion applies to the last sample. With redirect automatically there will be only one sample - JMeter won't see any redirects. Otherwise, the Assertion is applied to the parent and/or all child samples, depending on what you select. There's no way to select a particular child sample. > regars > deepak > > On Thu, Aug 13, 2009 at 1:02 AM, Adrian Speteanu <[email protected]>wrote: > > > > Hi, > > > > For this request: > > loginRequest?username=x&userpass=y&ticket=z&_event=submit > > In the result tree I get: > > -home page > > |- loginRequest? all parameters as above > > -> set-cookies headers > > |- redirect1 > > -> the cookies above were intrepreted and a new unique value is > > generated to validate the login (this is done automatically) > > -> in the Header of the response Set-Cookie: JSESSIONID=.+; > > path=/blabla/ is received > > |- redirect2 > > > > I want to add to the sample request the following > > |-> Response Assertion (options main sample only, main sample and > > sub-samples or sub-samples only) > > - checkbox in Response Headers > > - look for: Set-Cookie: JSESSIONID=.+; > > > > I want to use the response assertion to check that JSESSIONID is > > re-set after a successful login, for this example, or other things > > specific to only one sub-sample, in general. So far, I wasn't > > successful. > > Is it possible to specify that if it is found in only one sub-sample , > > the assertion is PASSED? (I think in v2.3.2 if such an assertion was > > added it passed if it was found anywhere - not sure about this.) > > Any ideas for a workaround to this if it is yet not possible? > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

