You can use an http://jmeter.apache.org/usermanual/component_reference.html#If_Controller If Controller to control this and place the Http Request underneath this. You can use something like a http://jmeter.apache.org/usermanual/component_reference.html#XPath_Extractor XPath Extractor or Regex Extractor against the previous requests response and store the value in a variable. Then use this variable in your If Controller to determine whether to proceed with the second request or not
Patrick Farnan On Thu, Nov 22, 2012 at 1:10 PM, Sambhav Rathore < [email protected]> wrote: > Hi All, > I needed to ask if we can enable or disable a request based on a parameter > being present or not in the previous requests' response. The application I > am testing for is a HTTP based one. Any help is deeply appreciated. > > Regards, > Sambhav Rathore > > > **************** CAUTION - Disclaimer ***************** > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended > solely > for the use of the addressee(s). If you are not the intended recipient, > please > notify the sender by e-mail and delete the original message. Further, you > are not > to copy, disclose, or distribute this e-mail or its contents to any other > person and > any such actions are unlawful. This e-mail may contain viruses. Infosys > has taken > every reasonable precaution to minimize this risk, but is not liable for > any damage > you may sustain as a result of any virus in this e-mail. You should carry > out your > own virus checks before opening the e-mail or attachment. Infosys reserves > the > right to monitor and review the content of all messages sent to or from > this e-mail > address. Messages sent to or from this e-mail address may be stored on the > Infosys e-mail system. > ***INFOSYS******** End of Disclaimer ********INFOSYS*** > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
