I have this simple object:
var apple = {
type: "macintosh",
color: "red",
getInfo: function(int){
return "test" + int;
}
}
In Jmeter I want to put this object into a global variable that allows me to access this object.
I tried:
vars.putObject("test",apple);
(In a pre-processor, so before all the assertions)
var test = vars.getObject("test");
(In all the assertions)
But it seems that the function is casted as string and therefore I can't use it in my assertions.
How to make this work?