Displaying DigestEncodeFunction Error in JMeter

Viewed 18

When I am trying to execute my created script on another system then it's throwing this error like "Displaying DigestEncodeFunction Error in JMeter". PFA Screenshot for the same.enter image description here

1 Answers
  1. Please don't post jmeter.log file in form of a screenshot
  2. You forgot to include your __digest() function call itself

The first problem is that you're using wrong algorithm name, it should be SHA-256, for possible algorithms check out Algorithms section of MessageDigest class JavaDoc

Just in case here how it looks now for Java 8:

enter image description here

If you have troubles when it comes to coming up with proper JMeter Function syntax - go for the Functions Helper Dialog

enter image description here

enter image description here

Here is the function which generates SHA-256 hash of string foo using bar as the salt:

${__digest(SHA-256,foo,bar,,)}

More information on JMeter Functions concept: Apache JMeter Functions - An Introduction

Related