cancel
Showing results for 
Search instead for 
Did you mean: 

How to use "CryptoJS" through groovy scripting in SoapUI

Rajana
New Contributor

How to use "CryptoJS" through groovy scripting in SoapUI

I am using the code to generate hash key in SoapUi open source :

 

def authHash = CryptoJS.enc.Base64.stringify(CryptoJS.HmacSHA256(CryptoJS.enc.Utf8.parse(stringToSign), CryptoJS.enc.Base64.parse(testRunner.testCase.testSuite.getPropertyValue("SignKey"))));
 
Its throwing the below error : groovy.lang.missingPropertyException:No such property : CryptoJS for class . How to handle this issue .
2 REPLIES 2
PrathapR
Frequent Contributor

Re: How to use "CryptoJS" through groovy scripting in SoapUI

Rajana
New Contributor

Re: How to use "CryptoJS" through groovy scripting in SoapUI

Thanks Prathap , I already referred and tried the solution mentioned in this post , unfortunately , it still throws the same error .

New Here?
Join us and watch the welcome video:
Top Kudoed Authors