开发者

Visual studio 2010 Ultimate Web Test Concurrent Users

开发者 https://www.devze.com 2023-01-19 19:53 出处:网络
I am trying to do a performance test on an asp.net website. I have recorded a simple scenario with user login. I have created a data file containing 500 login ids and passwords. The application databa

I am trying to do a performance test on an asp.net website. I have recorded a simple scenario with user login. I have created a data file containing 500 login ids and passwords. The application database also has this information. My intention is to run the test to analyze how the system behaves when 500 users tries to login and logout together. I want to run this scenario repeatedly for 1 hour. I am not sure how to achieve this using Visual studio 2010 ultimate edition. If anybo开发者_如何学Cdy has an idea on this. Please do share.

Thanks in advance

Joe


You need a WebTestPlugin to achieve that.

Basically, in the PreWebTest method, you can do something like this :

e.WebTest.Context ["Login"] = "Random login from file"; e.WebTest.Context ["Password"] = "Corresponding password";

Then, in your webTest, you can plug the value from the context in the form post parameters using {{Login}} and {{Password}} in the value field.

0

精彩评论

暂无评论...
验证码 换一张
取 消