TeamCity 结果与 JMeter 不匹配 [英] TeamCity results don't match JMeter's

查看:27
本文介绍了TeamCity 结果与 JMeter 不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用 JMeter 对某个应用程序进行负载测试,我使用了持续时间断言并将其设置为 200,当加载时间超过 200 时,结果树中的请求变为红色,因为这是一个错误.

I'm currently using JMeter to load test some application, I used the duration assertion and I set it to, let's say 200, when the load time exceeds 200, the Request in the Result Tree becomes Red for it is an error.

问题是,当我用 TeamCity 运行相同的测试时,它总是被标记为 success,即使所有请求都失败.

Problem is, when i run the same test with TeamCity, it is always marked as success, even if all the Requests have failed.

推荐答案

您正在查看的是摘要.您需要向项目添加一个侦听器,将结果保存到文件中.然后您需要让 Teamcity 读取该文件并断言结果.

What you are looking at is the summary. You need to add a listener to your project, that saves results to a file. Then you need to have Teamcity read that file and assert the result.

Teamcity 只是告诉您您希望我运行的脚本有效".

Teamcity is just telling you "Ehhhhh the script you wanted me to run worked".

这是一个关于如何操作的小指南:https://devblog.xero.com/run-jmeter-performance-tests-on-teamcity-8315f7ccffc1#.8ga4jso7k

Here's a small guide of how: https://devblog.xero.com/run-jmeter-performance-tests-on-teamcity-8315f7ccffc1#.8ga4jso7k

这篇关于TeamCity 结果与 JMeter 不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆