You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by Apache Wiki <wi...@apache.org> on 2010/06/03 16:07:11 UTC

[Jakarta-jmeter Wiki] Update of "UserManual/Reference/BeanShellSampler" by carlo.marchiori

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-jmeter Wiki" for change notification.

The "UserManual/Reference/BeanShellSampler" page has been changed by carlo.marchiori.
http://wiki.apache.org/jakarta-jmeter/UserManual/Reference/BeanShellSampler?action=diff&rev1=3&rev2=4

--------------------------------------------------

  }
  return "Data from sample with Label "+Label;}}}
  
+ With the following code you can access the !HttpRequest body and modify it:
+ 
+  {{{
+ sampler = ctx.getCurrentSampler ();
+ args = sampler.getProperty ("HTTPsampler.Arguments");
+ httpArg = args.getObjectValue ().getArguments ().get (0);
+ body = httpArg.getObjectValue ().getProperty ("Argument.value").getStringValue ();}}}
+ 

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org