如何在jmeter UI Listner响应数据中打印Java System.out.println [英] How to print java System.out.println in jmeter UI Listner response data
问题描述
我刚开始玩jmeter,我写了一个小型的Java采样器测试,该测试将请求发送到服务器并获得UUID作为响应,我在测试中将此响应打印为System.out.println
I just started playing with jmeter, I wrote a small java sampler test, which send request to server and get a UUID in response, I am printing this response as System.out.println in my test
我正在Windows上运行jmeter,因此此响应会在cmd窗口而不是jmeter UI侦听器中显示,这是正确的(因为cmd是console out)
I am running jmeter on windows, so this response get printed on cmd window and not in jmeter UI Listener, which is right ( since cmd is console out )
我想知道是否可以设置记录器? 在jmeter中处理这些情况的标准做法是什么?
I wanted to find out, if there is any way to setup logger ? what are standard practices to handle these situation in jmeter ?
如果有人可以举一个小例子来解释我,我将不胜感激
I will appreciate if someone can explain with a small example
推荐答案
使用命令行选项-j jmeterlogfile
这篇关于如何在jmeter UI Listner响应数据中打印Java System.out.println的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!