Hi actually I want to test web service using Jmeter. but I am stuck when I want try to get response message from http request. actually I want to get the response message from beanshell post processor. How should I do to get the response code?
It is as simple as
prev.getResponseMessage();
where prev
is a shorthand to parent SampleResult class
Demo:
See How to Use BeanShell: JMeter's Favorite Built-in Component article for more information on using Beanshell in JMeter