jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arihan <arihan.si...@gmail.com>
Subject Re: parameter parsed to SHA1 in BSF processor ( javascript) of jmeter throws error
Date Tue, 08 Oct 2013 22:30:36 GMT
I did a workaround and it worked fine.

Added another BSF sampler ( BeanShell) before that and mentioned like

    vars.put ("reservationid", "${reservationid_1}");

then the next BSF post processor ( java script) 

     var handShakeKeyForDynamicUrls = CryptoJS.SHA1(
"/reservation/${reservationid}" +"abcdeeee"+"12345678"); 

    handShakeKeyForDynamicUrls =
handShakeKeyForDynamicUrls.toString(CryptoJS.enc.Base64); 

    vars.put("handShakeKeyForDynamicUrls", handShakeKeyForDynamicUrls);



--
View this message in context: http://jmeter.512774.n5.nabble.com/parameter-parsed-to-SHA1-in-BSF-processor-javascript-of-jmeter-throws-error-tp5718381p5718383.html
Sent from the JMeter - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Mime
View raw message