我可以在Web性能测试中向事务添加验证规则吗? [英] Can I add a validation rule to a Transaction in a web performance test?

查看:83
本文介绍了我可以在Web性能测试中向事务添加验证规则吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我在visual studio中使用网络性能和负载测试来监控应用程序的性能。在应用程序中完成的大多数值得单调时间的事情需要进行多次https调用。将这些
调用分组到事务中的能力很棒,我使用它很多。但是,我希望能够为事务添加验证规则。因此,我得到的行为是"如果此事务中所有呼叫的总时间总和花费的时间超过
5秒,则测试失败"

I'm using web performance and load tests in visual studio to monitor performance of an application. Most of the things done in the application that are worth monotoring the time of requires more than one https call to be made. The ability to group these calls into Transactions is great and I use it a lot. However i would like to be able to add a validation rule to an transaction. So that i get the behavior of "if the elapsed time summed up for all the calls within this transaction takes longer time than 5 seconds, fail the test"

是否存在任何使这种情况发生的方法?

Is there any way of making this happen?

Br

Linus

推荐答案

嗨Linus,

Hi Linus,

据我所知,它被用于一个请求。

As far as I know, it was used for one request.

https://msdn.microsoft.com/en- us / library / bb385904%28v = vs.110%29.aspx

如果你能得到一个请求时间,我想你可以得到它们的总和但是没有通过使用编码Web性能测试进行整个Web性能测试。

If you could get one request time, I think you could get the sum of them and failed the whole web performance test with coded Web performance test.

最好的问候,

Jack


这篇关于我可以在Web性能测试中向事务添加验证规则吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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