首页 \ 问答 \ 如何在jmeter UI Listner响应数据中打印java System.out.println(How to print java System.out.println in jmeter UI Listner response data)

如何在jmeter UI Listner响应数据中打印java System.out.println(How to print java System.out.println in jmeter UI Listner response data)

我刚开始玩jmeter,我写了一个小的java sampler测试,它向服务器发送请求并得到一个UUID作为响应,我在我的测试中将此响应打印为System.out.println

我在Windows上运行jmeter,所以这个响应打印在cmd窗口而不是jmeter UI Listener,这是正确的(因为cmd是控制台输出)

我想知道,如果有任何方法可以设置记录器? 在jmeter中处理这些情况的标准做法是什么?

如果有人能用一个小例子来解释,我将不胜感激


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

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 )

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


原文:https://stackoverflow.com/questions/28818445
更新时间:2022-10-02 17:10

最满意答案

我不确定Windows Media Player,但有一个iTunes COM界面用于以编程方式与Windows上的iTunes进行交互。 这里有一个关于在C#中使用COM API的简短教程: http//www.ohscope.com/2009/04/02/itunes-com-api-in-c/

我也不确定你是否要求让iTunes播放曲目(你可以做),或者你只是想在曲目开始播放时得到一个回调(你也可以这样做)。


I'm not sure about Windows Media Player, but there is an iTunes COM interface for programmatically interacting with iTunes on Windows. There is a short tutorial on using the COM API with C# here: http://www.ohscope.com/2009/04/02/itunes-com-api-in-c/

I'm also not sure if you're asking about making iTunes play a track (which you can do) or if you just want to get a callback when a track starts playing (which you can also do).

相关问答

更多
  • 最好选择使用音频文件是“ Fmod.dll ”。这有很多权限与音频文件一起使用。 这是一款用于游戏的音频内容创建工具,专注于“专业音频”方法。 它有一个全新的界面,使用专业数字音频工作站的人比现有的游戏音频工具更熟悉,并且加载了新功能。 我已经使用过这个,这是非常强大的组件,易于使用。 Best chose for working with audio file is "Fmod.dll".this have a lot of Privilege to work with audio file. This ...
  • 我认为代码是C / C ++的翻译? 使用TInterfacedObject时,您不需要_AddRef等方法,因为TInterfacedObject将处理这些方法。 另一个建议:我错过了线程实现。 通常,这是在构造函数或初始化部分中声明的。 例: initialization CoInitializeEx(Nil, COINIT_APARTMENTTHREADED); 要么 //Create method inherited Create(); CoInit ...
  • 尝试: smbpasswd -r machine -U user. 您可以使用wmi-client ,但另一方面,在带有域控制器的Windows 2008服务器上不起作用,密码在网络中传递而不加密。 Try: smbpasswd -r machine -U user. You can use wmi-client, but on the other hand that does not work on windows 2008 server with domain controller and the ...
  • 我不确定Windows Media Player,但有一个iTunes COM界面用于以编程方式与Windows上的iTunes进行交互。 这里有一个关于在C#中使用COM API的简短教程: http : //www.ohscope.com/2009/04/02/itunes-com-api-in-c/ 我也不确定你是否要求让iTunes播放曲目(你可以做),或者你只是想在曲目开始播放时得到一个回调(你也可以这样做)。 I'm not sure about Windows Media Player, bu ...
  • 答案是几乎没有文档,我发现的唯一参考是Apple list serv,声明它不是一个完全开发的API。 相反,如果您需要音频时钟数据,请使用您的发电机音频单元注册渲染回调。 AudioUnitAddRenderNotify(m_generatorAudioUnit, auRenderCallback, this); OSStatus auRenderCallback ( void *inRefCon, ...
  • 您不需要使用两个平移器 - Panner是立体声。 对于这个问题,这个旧答案是一个很好的答案: 如何使用createPanner()创建非常基本的左/右等功率平移; You shouldn't need to use two panners - Panner is stereo. This old answer is a great one to this question: How to create very basic left/right equal power panning with creat ...
  • 我认为目前这个问题的答案是“不”。 Chrome似乎是目前唯一支持Windows上的Web Audio API的浏览器。 Safari / WebKit for Windows尚不支持它。 I think the answer to this question at the moment is "no". It seems that Chrome is the only browser at the moment that supports the Web Audio API on Windows. Saf ...
  • WASAPI将允许您执行所需的操作,以便您使用正确的API。 你错误的IMMDevice代表了音频设备的集合,那就是IMMDeviceCollection。 IMMDevice代表单个音频设备。 通过“设备”,WASAPI并不是指您所期望的音频卡,而是指这种卡上的单个输入/输出。 例如,具有模拟输入/输出+数字输出的音频卡将显示为3个IMM设备,每个IMM设备具有其自己的IMMEndpoint。 我不确定你的详细信息,但在我看来,IMMDevice将为您提供所需的一切。 基本上,你会想做这样的事情: 创建一 ...
  • 我想要做的就是一起玩。 实际上,您要执行的操作可以通过Windows.Media.Editing namespace API实现。 UWP提供MediaComposition相关API,使用户能够从音频和视频源文件创建媒体合成。 有关如何操作的详细信息请参考向合成添加背景音轨 。 您可以从MediaEditing官方样本的方案3中找到样本 。 此外,由于您尝试编辑媒体,您可能需要具有媒体文件的访问权限,因此您可能需要首先通过URL将文件下载到本地。 如何在Windows 10中向MediaPlaybackI ...
  • 我通过谷歌搜索找到了这个。 希望它有所帮助。 http://www.codeproject.com/KB/winsdk/changerefresh.aspx http://msdn.microsoft.com/en-us/library/ms533260(VS.85).aspx I found this via a google search. Hope it helps some. http://www.codeproject.com/KB/winsdk/changerefresh.aspx http:/ ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。