Jmeter supports writing code in java (and other languages that run on the
JVM) so its fairly trivial to do this (for e.g. in a beanshell pre/post
processor )
Assuming you are using a SUN JDK (otherwise just use the apache commons
class) in a BeanShell pre processor write something like
import sun.misc.BASE64Encoder;
BASE64Encoder encoder = new BASE64Encoder();
String s = encoder.encodeBuffer("test string to be encoded
^%$^^".getBytes("UTF-8"));
vars.put("result",s);
and you can use ${result} for the base64 encoded string
On Mon, Nov 3, 2014 at 6:23 AM, 张为东(为东) <[email protected]> wrote:
> Hi, experts
>
>
>
> I would like to encode one string to base64 format, but I don’t find any
> functions which is supported by Jmeter.
>
> Any ideas on it?
>
>
>
> Thanks
>
> --Weidong
>
>