Operation and syntax
In NeoLoad, Java code may be invoked from JavaScript code, as part of the "JavaScript" logical action.
For Java classes to be used in JavaScript, the class names must be fully qualified (even for Java classes such as java.util.List) and preceded by "Packages.".
For example:
var myObj = new Packages.com.company.MyClass();var result = myObj.compute(myArg);var result2 = Packages.com.company.MyClass.someStaticMethod(result);
Home