C#代码在Visual Studio上开始负载测试 [英] C# code to start the load test on visual studio

查看:151
本文介绍了C#代码在Visual Studio上开始负载测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要c#代码来从VSTS自动开始负载测试.我们正在使用一种性能测试工具,已经完成了它,准备进行负载测试,然后我们将自动开始测试.有人可以帮我们吗:)

Hi,
I need the c# code to start the load test automatically from VSTS. we are working on a performance testing tool, we have finished it upto preparing the load test and we are left with starting the test automatically. can some one help us out with this :)

推荐答案

这取决于您如何自动"定义.如果必须在一天的固定时间启动,则可以使用Windows Task Scheduler.如果您需要在重新启动时启动它,则可以将其添加到运行"注册表项中(不确定确切的键名,但是Google会这样做).等等...
It depends on how you define ''automatically''. If you have to start at a fixed time of day you could use the Windows Task Scheduler. If you need to start it on reboot then you can add it to the "Run" registry key (not sure the exact key name, but Google does). etc. ...


对不起,但我不明白您要做什么.这似乎是VSTS特有的一些自动化系统,我没有经验.
Sorry but I do not understand what you are trying to do. This would appear to be some automated system unique to VSTS which I have not had experience of.


感谢您的来信,Richard.当我说自动"时,这意味着用户根据自己的要求输入问卷,我们将其读入工作负载xml,并创建一个策略文档,其中包含诸如场景列表,负载测试详细信息,服务器凭据等详细信息.监视器已准备就绪,脚本已准备就绪,负载测试已准备就绪并可以运行,现在,我们不再需要用户单击播放"按钮来手动运行测试,而是需要在Visual Studio Team System上自动运行负载测试.现在,我希望我能成功传达自动的含义.
Thank u Richard for ur kind respose. When I say "automatically", it means the user enters the questionaire depending on his requirements, we read it into the workload xml and create a strategy document containing the details like scenario list, load test details, server credentials etc.. now we have the monitors ready, scripts ready and the load test is prepared and ready to run,, now instead of asking the user to run the test manually by clicking the play button, we need to run the load test on visual studio team system automatically. Now I hope tat i''m successfull in conveying the meaning of automatically.


这篇关于C#代码在Visual Studio上开始负载测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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