TeamCity的结果与JMeter的结果不符 [英] TeamCity results don't match JMeter's

查看:130
本文介绍了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运行相同的测试时,它始终标记为成功,即使所有请求均失败.

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天全站免登陆