md5 hash string include comma

189 views
Skip to first unread message

iwac...@gmail.com

unread,
Oct 16, 2015, 6:42:16 AM10/16/15
to jmeter-plugins
hi
im using Jmeter2.13 and jmeterplugin-standard 1.3.1

i tryed ${__MD5(aaaa,bbbb)}.
but i get result.

aaaa,bbbbb
->74b87337454200d4d33f80c4663dc5e5

aaaa
-> 74b87337454200d4d33f80c4663dc5e5

can't MD5 function calculate strings include comma ?

gli...@gmail.com

unread,
Oct 16, 2015, 12:55:57 PM10/16/15
to jmeter-plugins, iwac...@gmail.com
It can given you escape the comma with a backslash like:

${__MD5(aaaa\,bbbb,)}

Demo (click to enlarge)


















It prints out MD5 hash of your aaaa,bbbb string as it comes from __md5() function and from DigestUtils.md5Hex() method being called from the Beanshell Sampler 

iwac...@gmail.com

unread,
Oct 17, 2015, 12:04:06 AM10/17/15
to jmeter-plugins
thx gli

I could get a hash of entire strings which include comma character.

and I found a document to use jmeter api.

http://jmeter.apache.org/usermanual/functions.html

thank you ;)

eddi...@gmail.com

unread,
Jan 12, 2016, 11:27:40 PM1/12/16
to jmeter-plugins, iwac...@gmail.com
This is not working for me, is there any idea to solve the issue?
Reply all
Reply to author
Forward
0 new messages