How to use the java script in neoload
You need to add a Javascript action to your VU profile:
http://www.neotys.com/documents/doc/neoload/latest/en/htm...
NeoLoad Javascript API is described here:
http://www.neotys.com/documents/doc/neoload/latest/en/htm...
Add javascript action to virtual script and add your code. For example, I added following code to retrieve load generator hostname, which worked for me:
if (context.currentLG.name==null) {
context.fail("Agent Name not found");
}
context.variableManager.setValue("AgentName", context.currentLG.name);
logger.debug("Agent Name=" + context.variableManager.getValue("AgentName"));
Ramchander answered
christophe answered
Nrusingh posted a new question