println() inside static void main method is not printing anything anywhere, whereas only println() prints in terminal. Here is my code:
class Ca
Use below to display text in JMeter Response Tab in "Results Tree":
SampleResult.setResponseData("Document: " + variable,"UTF-8");
Use below to log in the console text area of JMeter:
log.info("hello");
A 3rd option is to use Java standard:
System.out.println("Any String");
Above can be written from any Java/Groovy/JSR223 sampler. But it will be printed on the Parent CMD window that opened the JMeter UI in windows.