Message is not printing on the console in jmeter using JSR223 and groovy

后端 未结 5 1539
忘掉有多难
忘掉有多难 2021-01-04 00:19

println() inside static void main method is not printing anything anywhere, whereas only println() prints in terminal. Here is my code:

class Ca         


        
5条回答
  •  南方客
    南方客 (楼主)
    2021-01-04 00:58

    Don't use System.out.println in a Groovy or Beanshell step in jmeter. Instead , do this:

    1. Enable the stdout console in Jmeter so that you can see the output.
    2. Use  log.info("Message:" + vars.get("variableName"));  instead.
    

提交回复
热议问题