Requirement: Post response time of every sampler to Mongo DB, for that created an HttpClient java code(Class function).
Problem: Need to call the custom (reuse same code between 150+ jmx file) Java function to be called from Beanshell after every sampler.
void logTransaction(responseTime,samplerName);
Solution need: Incorporate custom java function(.c or .txt) with jmx file.
For example in Load runner we can include .h file(shared in common path) with reusable code and include in globals.h.
Is there any method or solution available with jmeter ?