My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
DummySampler  

Sampler
Updated Apr 4, 2011 by a...@apc.kg

Dummy Sampler since 0.2.0

Dummy Sampler is the most obedient of the JMeter samplers: it generates sample just with the values that was defined fot it. It is extremely convenient when you need to debug a BeanShell Post-Processor or RegExp Extractor without repeating whole test or waiting for exact condition in application under test.

Example

Download Example Test Plan

Comment by san...@pa7.nl, Feb 25, 2011

Hi, Do you know if it possible to fill the response data with the response data of the previous sample?

Edit: Is there a simple way for doing the following

  • HTTP Request (with response I like to show in dummy sample)
  • Beanshell postprocessor (String responseData = prev.getResponseDataAsString(); vars.put("response",responseData);)
  • Dummy Sampler (${response})

I tried adding the beanshell command directly in the dummy sample with ${__BeanShell(prev.getResponseDataAsString())} , but this didn't work

Kind Regards,

Sander

Comment by project member a...@apc.kg, Feb 25, 2011

Sander, your scenario works for me fine. Maybe something else wrong with your test? If you think Dummy Sampler is wrong, you could use Debug Sampler to see all the variables.

Comment by san...@pa7.nl, Feb 27, 2011

Hi Andrey,

Which scenario works fine for you? The one with the beanshell directly in the dummy sample?

Comment by project member a...@apc.kg, Feb 28, 2011

yes, I attach postprocessor to sampler. this guarantees that it will work only for this single sampler. But not Dummy Sampler! HTTP Sampler, because I want to post-process its results

Powered by Google Project Hosting