简体   繁体   English

如何从Jmeter中的响应数据中提取以下URL和响应代码

[英]How to extract Below URL and Response Code from response data in Jmeter

Below are the response datam, we are working to extract the response from the below URL's, but we are not able to extract using Regular Expression Extractor in Jmeter. 以下是响应数据,我们正在努力从下面的URL中提取响应,但是我们无法在Jmeter中使用正则表达式提取器进行提取。

<td class="td-data2">http://elasticsearch.perf5.ua-north-1.bio.prod.platforms.build1:1340/</td>
<td class="td-data2">Failed to ping: Connection refused. - Connection failed: connect timed out</td>

Could any one help us on this issue which we are facing? 在我们面临的这个问题上,有谁能帮助我们?

Below is the regular expression 下面是正则表达式

在此处输入图片说明 Now, you need to fetch the second error message if there are multiple matches. 现在,如果存在多个匹配项,则需要获取第二条错误消息。 Use ${ErrorMsg_2} or ${ErrorMsg_2_g1} 使用$ {ErrorMsg_2}或$ {ErrorMsg_2_g1} 在此处输入图片说明

Hope it helps. 希望能帮助到你。

Regular Expression Extractor 正则表达式提取器

正则表达式提取器

Debug Sampler 调试采样器

调试采样器

JMeter Tree JMeter树

在此处输入图片说明

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM