Execute Java code
Introduction
During a load test, it is possible to execute Java code that is external to the Virtual Users. This feature allows NeoLoad functional range to be extended in order to create Virtual Users with a very complex behavior.
This tutorial takes as its example RMI (Remote Method Invocation) calls to a remote Java server. The server provides two services: one gives the dollar value of a stock on the US Stock Exchange, the other provides for the conversion of one currency to another. You are going to string together the call to these two services to obtain a stock price in Euros.
- Warning: The Java code must be compiled with a Java version lower or equal to the NeoLoad Java version. To know the NeoLoad Java version, execute command jre\bin\java -version from the NeoLoad installation directory.
Home