On 9 September 2011 16:37, evanphelan <evanphe...@gmail.com> wrote: > What is the general process for making use, within a BeanShell > Pre/PostProcessor, of a jar that is dropped into lib/ext? > > For example, if I wanted to use the functions made available by > http://code.google.com/p/rest-assured/ REST Assured within a BeanShell > PostProcessor to run JSONPath queries on the responses to HTTP requests? > > Firstly how do I access the response? Is it what gets returned by > /prev.getResponseDataAsString())/;
Depends on the Bsh test element. The PreProcessor obviouslty has no access to the response. For PostProcessor, see: http://jakarta.apache.org/jmeter/usermanual/component_reference.html#BeanShell_PostProcessor "prev - (SampleResult) - gives access to the previous SampleResult ... For details of all the methods available on each of the above variables, please check the Javadoc" which is at http://jakarta.apache.org/jmeter/api/index.html in particular: http://jakarta.apache.org/jmeter/api/org/apache/jmeter/samplers/SampleResult.html > Then is it a case of calling the various functions on this string? > Try it and see. > > > > -- > View this message in context: > http://jmeter.512774.n5.nabble.com/Process-for-calling-jars-in-BeanShell-Processors-tp4786783p4786783.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org