我们如何使用VSTS进行性能测试(2015版) [英] How can we do Performance testing using VSTS (version-2015)

查看:72
本文介绍了我们如何使用VSTS进行性能测试(2015版)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello All,


在我的项目中,需要使用VSTS进行性能测试。


请有人帮助他们过去的经验我们如何使用TFS或某些第三方工具中的avialble选项来做到这一点。


我尝试过使用URL的1个选项,一旦负载测试结果我看不到太多有用的信息执行成功。


我试图在内部而不是云上做一些事情。


我认为性能测试结果应该像模块一样在哪里我可以看到导致问题的所有页面名称等。


在我的情况下,我有一个App,其中添加了100个webforms,因此在这种情况下可能是最好的选项。


请参阅下面我的发现 -

我尝试过链接1  - 这并没有给出非常有意义的结果,而不是VS项目的页面信息。 
我需要寻找Link 2但在此之前我想知道是否有什么比下面的解决方案更好的解决方案 -

参考 -
链接1:
https://www.visualstudio.com/en-us/docs/test/performance-testing/getting-started/get-started-simple-cloud-load-test

另外一个链接是参考我们在哪里创建加载项目 -
链接2
https://www.visualstudio.com/en-us/docs/test/performance-testing/run-performance-tests-app-before -release



请提供建议这真的很有帮助。感谢您的帮助。






sudhanshu sharma Do很好并把它投入河里:)

解决方案

嗨sudhanshu,


Link2是你想要完成什么的正确来源。因此,您需要做的是确定您认为需要加载/压力测试的测试场景。一旦你确定了那个。  


您将创建一个新项目"Web性能和负载测试"。在Visual Studio中


然后,您需要创建Web性能测试脚本,您将找到扩展名为.webtest的脚本,可用于记录测试脚本。


在您的情况下,您可以为每个模块/页面创建一个测试脚本。即Finance.Webtest


这样当你运行测试它会显示你的财务网页响应时间,以及这个脚本下的哪个Web请求很慢并且有任何问题。


您还可以通过将csv,db sources链接到脚本来使脚本参数化,以使其更加真实。 


一旦所有脚本都准备就绪,那么为你的项目添加一个loadtest文件,它有向导来设置场景,测试组合等等。


运行测试,看看你得到了什么结果,还有更高级的东西你可以这样做,将脚本转换为编码的Web性能脚本并添加一些自定义的东西,但我建议先从基础开始。


让我知道它是怎么回事。


Hello All,

In my project it is required to do performance test using VSTS.

Please can someone help with their past experience how can we do it using avialble options in TFS or by some third party tools.

I have tried 1 option using URL where I don't see much useful information once load test is executed successful.

I am trying to do something on premise instead of cloud.

I think the performance test results should come like module wise where I can see all the pages name which is causing issue etc.

In my case I have an App which has 100 webforms added so what can be the best options in this case.

See my finding below-

I have tried link 1-which is not giving very meaningful results not page information of VS project.
I need to look for Link 2 but before that I want to know if something can be better solution than these below solutions-
 
Reference-
Link 1:
https://www.visualstudio.com/en-us/docs/test/performance-testing/getting-started/get-started-simple-cloud-load-test

One more link is for reference where we are creating the load project-
Link 2
https://www.visualstudio.com/en-us/docs/test/performance-testing/run-performance-tests-app-before-release


Please suggest something which can be really helpful. Thanks for your help in advance.


sudhanshu sharma Do good and cast it into river :)

解决方案

Hi sudhanshu,

The Link2 is the correct source for what you trying to accomplish. So what you need to do is to identify your test scenarios that you think you want load / stress test. once you have that identified.  

You gonna create a new project "Web Performance and Load Test" in Visual Studio

Then you need to create web performance test scripts, you will find them with extension .webtest that you can use to record you test scripts.

In your case you can create one test script for your each module/page . i.e Finance.Webtest

this way when you will run test it will show that your finance web page response time, and which web request under this script was slow and had any problem.

You can also parameterize your scripts by linking csv, db sources to your scripts to make it more realistic. 

Once all your scripts are ready , then add a loadtest file to you project and it has wizard to setup the scenarios, and test mix etc. 

Run the test and see what results you get, there are more advance stuff you can do like, converting the script to coded web performance scripts and adding some custom stuff, but i would suggest to start with basics first.

let me know how it goes.


这篇关于我们如何使用VSTS进行性能测试(2015版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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