Visual Studio的网内构建过程中运行负载测试 [英] Run Load Tests during build within Visual Studio Online

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

问题描述

我已经创建了一个Web性能和负载测试项目当中,就目前而言,执行一对夫妇在使用Visual Studio Online我们的动态CRM解决方案,2013年简单的测试。 (试验将在稍后的时间进行扩展)

I've created a Web Performance and Load Test Project which, for the moment, performs a couple of simple tests on our Dynamics CRM 2013 solution using Visual Studio Online. (Tests will be expanded at a later time)

(负载测试解决方案本身驻留在导通premises TFS与我们所有其他项目一起)

(The Load Test solution itself resides in a on-premises TFS along with all our other projects)

当我在我的本地机器上运行我的负载测试这一切就像一个魅力。

When I run my Load Tests on my local machine it all works like a charm.

我现在的目标是解决方案的构建过程中运行这些负载测试。

My goal now is to run these Load Tests during the build of the solution.

看来我不得不使用MSTest的是Visual Studio的测试运行不支持负载测试。

It seems I have to use MSTest as Visual Studio Test Runner doesn't support Load Tests.

所以,我已经修改了我的生成模板使用MSTest的,这个职位的一点帮助:<一href=\"https://social.msdn.microsoft.com/Forums/vstudio/en-US/93c8634f-b6d6-4d8a-8c8c-b6eb6c1fad06/tfs-2013-and-webtests-and-load-tests?forum=tfsbuild\" rel=\"nofollow\">https://social.msdn.microsoft.com/Forums/vstudio/en-US/93c8634f-b6d6-4d8a-8c8c-b6eb6c1fad06/tfs-2013-and-webtests-and-load-tests?forum=tfsbuild

So I have modified my Build Template to use MSTest, with a little help of this post: https://social.msdn.microsoft.com/Forums/vstudio/en-US/93c8634f-b6d6-4d8a-8c8c-b6eb6c1fad06/tfs-2013-and-webtests-and-load-tests?forum=tfsbuild

这是被我碰上了难题。由于我没有看到一个选项,在那里我可以直接把我的负载测试使用特定帐户VSO,更不用说凭据此帐户。

This is were I run into a problems. As I don't see an option where I can direct my Load Test to use a specific VSO account, let alone the credentials for this account.

我的问题是:


  • MSTest的是在Visual Studio Online中生成过程中启动负载测试的最佳解决方案?有没有更好的?

  • 如果是这样,我怎么告诉MSTest的使用特定VSO帐户?

推荐答案

您不应运行负载测试,或任何形式的需要你的应用程序的实例测试,构建服务器上。

You should not be running load tests, or any sort of tests that require an instance of your application, on a build server.

您应该有您部署位,然后运行存在的环境。微软有一个工具专门为此purpos称为发布经理。

You should have an environment that you deploy your bits to and then run there. Microsoft have a tool specifically for this purpos called Release Manager.

http://nakedalm.com/create-release-management-pipeline-professional-developers/

发布管理系统在线可与您的帐户,你可以轻松地调出该负载测试或其他功能...

Release Manager Online is available with your account and you can easily call out to the load test or other capabilities...

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

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