I'm using Jmeter for testing purposes and I have to edit a paticular variable which is extracted through a regular expression and I'm trying to edit the variable using a javaScript which is in the Beanshell. First of all I would like to know whether I can iunclude javascripts directly in the Beanshell and second How can I invoke a JavaScript Function. For Example the following code.
var passwd = "abcd@123";
var newpasswd = "";
var ranVal= "ABCDEF";
function SaveClick(){
print("BBBBB");
document.write("<h3>Final Encripted Password : </h3>", newpasswd);
//document.write(newpasswd);
}