最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

performance testing - JMeter - Removing Results Tree entries based on text - Stack Overflow

programmeradmin2浏览0评论

Is possible to remove results in JMeter shown in the standard "View Results Tree" based on if certain text is present?

I am running the below, created via the BlazeMeter Chrome extension. The run is passing where expected but there are some failures which I am not concerned about (Google add-ins mainly) and I do not wish them to be recorded in the overall result. Is it possible to filter/remove these from the results tree recorder? So for example, a way to say "if the failing thread contains google anywhere in the request, do not report this"?

These are 3rd party features which we are not concerned about and they are skewing a positive run.

Is possible to remove results in JMeter shown in the standard "View Results Tree" based on if certain text is present?

I am running the below, created via the BlazeMeter Chrome extension. The run is passing where expected but there are some failures which I am not concerned about (Google add-ins mainly) and I do not wish them to be recorded in the overall result. Is it possible to filter/remove these from the results tree recorder? So for example, a way to say "if the failing thread contains google anywhere in the request, do not report this"?

These are 3rd party features which we are not concerned about and they are skewing a positive run.

Share Improve this question asked Feb 17 at 11:24 Chris DuffyChris Duffy 1671 gold badge1 silver badge7 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

First of all, there is "Filter pattern" input where you can exclude external domains from the load test:

If you already have recorded the test and want to replay it ignoring failures you can add a JSR223 PostProcessor and use the following Groovy code:

if (!prev.isSuccessful()) {
    if (prev.getUrlAsString().containsIgnoreCase("google")) {
        prev.setIgnore()
    }
}
发布评论

评论列表(0)

  1. 暂无评论