简体   繁体   English

将jmeter Http请求的响应数据保存在字符串Java代码中

[英]Save jmeter Http request's response data in string java code

I am developing application in which user will give URL of the page based on that HTTP sampler request will be send and response is displayed. 我正在开发一个应用程序,其中用户将基于该HTTP采样器请求发送页面并给出响应,并显示响应。 Please suggest me proper way for doing this. 请建议我这样做的正确方法。

You need to elaborate your question. 您需要详细说明您的问题。 Given KISS principle I would suggest designing your test like: 根据KISS原则,我建议您像这样设计测试:

and saving it as ie test.jmx 并将其保存为ie test.jmx

So if you run JMeter in command-line non-GUI mode like : 因此,如果您在命令行非GUI模式下运行JMeter,例如

jmeter -Jurl=http://your.url.here -n -t example.jmx

you will be able to see response in the same command line. 您将可以在同一命令行中看到响应。

If you're developing your application in Java - here's JMeter API reference 如果您正在用Java开发应用程序-这是JMeter API参考

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 JMETER -- 想要调用响应(响应数据 -- 正文)到其他 HTTP 请求的正文数据) - JMETER -- want to call response (response data -- body) to body data of other HTTP request) jMeter显示响应代码:非HTTP响应代码:org.apache.http.ConnectionClosedException - jMeter showing response code: Non HTTP response code: org.apache.http.ConnectionClosedException 非Http响应代码:URL无法响应Jmeter - Non Http Response code: url fail to respond Jmeter 操作系统采样器 V/S HTTP 请求 JMeter 中的采样器 - OS Sampler V/S HTTP Request Sampler in JMeter JMeter - 如何将多行响应数据传递给 ForEach Controller 请求 - JMeter - How to pass Multiline response data to the ForEach Controller request Jmeter - 在 Jmeter 中构造一个 URL 和 Z293C9EA246FF9985DC6F62A6 请求 - Jmeter - Constructing a URL in Jmeter with HTTP request Jmeter http 请求完成通知 - Jmeter http request completion notification JMeter:当JMeter在分布式模式下运行时,为什么在树的响应数据的“视图结果”中未显示“成功”状态 - JMeter: Why status as “Success” is not shown in View Result in a Tree's response Data when JMeter runs in Distributed mode 无法使用 Jmeter 以 xml 格式获取带有 Response Data_Response Header 和 Request 标头的报告 - Unable to get report with Response Data_Response Header and Request header in xml format using Jmeter Jmeter:响应数据未完全加载 - Jmeter: Response data is not loaded completly
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM