在VSTS中运行负载测试 [英] Running Load Tests in VSTS

查看:154
本文介绍了在VSTS中运行负载测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我一直在尝试让Jmeter负载测试在VSTS中运行,但无济于事.我已经与Microsoft支持团队来回(非常缓慢!),但是随着问题的解决,我希望至少使用Jmeter在我们的构建计算机上运行一小组负载测试,然后使用结果以某种方式上传到VSTS,因此更易于跟踪.我的工作是第1部分:从VSTS版本定义中,我运行一个批处理文件,该文件在本地运行负载测试,然后生成带有结果的汇总电子表格.

I've been trying to get Jmeter load tests to run in VSTS thus far without avail. I've been back and forth (very slowly!) with the Microsoft support team about this, but as the issues are ironed out I would like to at least run a small set of load tests on our build machine using Jmeter and then have the results uploaded somehow to VSTS so they are easier to track. I have part 1 of this working: From the VSTS release definition I run a batch file that runs the load tests locally, and then generates an aggregate spreadsheet with results.

问题是-如何将这些结果加载到VSTS中?

The question is - how can I get those results loaded into VSTS?

推荐答案

在我们的案例中,我们必须使用jmeter.test.xmlouput配置将结果导出到xml.然后,我们有了一个脚本来将xml转换为适当的Xunit结果文件,最后我们使用了发布测试结果来收集该文件并将结果添加到发行版中. (此方法也适用于构建定义.)
这有点复杂,需要一些脚本,如果可以使用专门的任务,肯定会更容易.

In our case we had to export the results to xml using the jmeter.test.xmlouput configuration. Then we had a script to transform the xml in a proper Xunit result file and we finally used a publish test results to gather this file and add the results to the release. (this approach would work with build definitions too).
It's a little bit complicated, requires some scripting and surely would be easier if a dedicated task was available.

这篇关于在VSTS中运行负载测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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