c# - How to load test a WinForms application? -


i'm trying figure out best way load test windows forms application, hits server , gets response. need load test multiple users , i'm not sure if load testing tools inside visual studio 2010 work.

any advice appreciated.

here's can try..

  • in test application, write method encapsulates code makes call server, , receives response.
  • in same application, write method b create multiple threads. each thread execute method a.
  • make sure calculate how time takes finish work on each thread.
  • increase number of threads simulate more load.

moving code makes call server method without rest of application should make repeating test easier , ease load on client machine performing test.

here's sample code of similar idea simulating load test of accessing database c# stress test - simulate multiple access given shared resource


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -