-
Notifications
You must be signed in to change notification settings - Fork 478
Custom Classpath
Some tests need external libraries. As larger libraries that the test is importing, time for preparing the performance test goes longer.
To avoid longer preparation time, you can manually distribute libraries to agent machine and refer to it.
Until now, you must put them in the lib
folder that unzipped downloaded agent archive. It was a very limited option. So, we decided to provide another way to add classpath on worker process.
Let's see how to add common-lang3-3-10.jar
library to the classpath.
-
Place library in any path you want on agent machine.
-
Open
${NGRINDER_AGENT_HOME}/agent.conf
file and editagent.jvm.classpath
option.agent.jvm.classpath=${LIBRARY_PATH}
Restart the agent for the option to take effect.
-
Refer to imported library.
-
Before setting
Can not find the library in test script.
-
After setting
-