473,320 Members | 1,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Load testing win app in VS 2005

Hi,
I know that VS 2005 has a lot of testing features and already used them for
doing web load testing.
I am wondering if it is possible to load test a win forms application. I
don't mean writing unit tests, what I need to do is run a load test against
my executable and watch CPU utilization and memory usage.
When doing web load testing, a wizard help us to write the scenario through
recording steps in a session.
Ultimatly I need to check if my application will be stable or not after
deployment regarding ressources.
Jun 27 '08 #1
5 1674
Hello SalamElias,

As you may have already known, we can add "Web Test" or "Unit Test" to
"Load Tests".

"Web loading test", the loading test for web applications, allows us to
record the test steps to facilitate the procedure. For non-web based
applications, e.g. Windows Form applications, or a data access model
component, adding a unit test into the load test to run methods in winform
will be the choice. Thus, I recommend creating a unit test that calls the
winform functions, then run the unit test under load. Visual Studio does
not have built-in record component to record the test steps for Windows
Form application. It is my pleasure to help send a wish to our product
designers via internal channel. You are also welcome to add your
supplements to make Microsoft products easier and more powerful to use by
submitting a ticket in https://connect.microsoft.com/VisualStudio As we
strive to capture any and all product feedback so as to ensure that we are
continuously developing Microsoft products to meet customer needs, feedback
such as yours is always taken very seriously. It is appreciated that you
can paste the suggestion's link here after you submit the ticket in
https://connect.microsoft.com/VisualStudio, so that other community members
can benefit from it.

Below list more readings about Load Tests in Visual Studio. You might have
come across these before but it is just for your reference.

Understanding Load Tests
http://msdn.microsoft.com/en-us/libr...62(VS.80).aspx

How to: Select a Load Test Results Store
http://msdn.microsoft.com/en-us/libr...00(VS.80).aspx

How to: Configure Tests with Build Types
http://msdn.microsoft.com/en-us/libr...38(VS.80).aspx

Please let me know if you have any other concerns, or need anything else.

Regards,
Jialiang Ge (ji****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 27 '08 #2
So many thanks for those ideas. However, my executable is an utiliy and not
UI to be used by users.
In fact, when the form is loaded, I am populating a dictionaty with some
performance counters, dispalying performance counters values on the form.
Then inside a timer, I retrieve the values each 15 or 30 seconds.
I don't how or if it would possible to write a unit test for this type of
functions.
""Jialiang Ge [MSFT]"" wrote:
Hello SalamElias,

As you may have already known, we can add "Web Test" or "Unit Test" to
"Load Tests".

"Web loading test", the loading test for web applications, allows us to
record the test steps to facilitate the procedure. For non-web based
applications, e.g. Windows Form applications, or a data access model
component, adding a unit test into the load test to run methods in winform
will be the choice. Thus, I recommend creating a unit test that calls the
winform functions, then run the unit test under load. Visual Studio does
not have built-in record component to record the test steps for Windows
Form application. It is my pleasure to help send a wish to our product
designers via internal channel. You are also welcome to add your
supplements to make Microsoft products easier and more powerful to use by
submitting a ticket in https://connect.microsoft.com/VisualStudio As we
strive to capture any and all product feedback so as to ensure that we are
continuously developing Microsoft products to meet customer needs, feedback
such as yours is always taken very seriously. It is appreciated that you
can paste the suggestion's link here after you submit the ticket in
https://connect.microsoft.com/VisualStudio, so that other community members
can benefit from it.

Below list more readings about Load Tests in Visual Studio. You might have
come across these before but it is just for your reference.

Understanding Load Tests
http://msdn.microsoft.com/en-us/libr...62(VS.80).aspx

How to: Select a Load Test Results Store
http://msdn.microsoft.com/en-us/libr...00(VS.80).aspx

How to: Configure Tests with Build Types
http://msdn.microsoft.com/en-us/libr...38(VS.80).aspx

Please let me know if you have any other concerns, or need anything else.

Regards,
Jialiang Ge (ji****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 27 '08 #3
Hello SalamElias,

I have some points needed to be clarified in case I misunderstood your
question. Can I?

According to your description, it seems that there is a winform application
and we are not able to access its source code from a unit test. The winform
can display some performance counters in its UI. Am I right? SalamEias, I'm
sorry that I cannot understand the function for test. What's the
relationship between the performance counters in the winform and load test?
As far as I know, "load testing" itself is able to display the performance
counters: http://msdn.microsoft.com/en-us/vs2005/aa718474.aspx.

In the MSDN article: http://msdn.microsoft.com/en-us/library/ms182562.aspx,
it's documented that "load test" is mainly designed for the access of
server components, e.g. web server or DB server access. Before I get a
clearer picture of your request, I'm not sure whether "load test" will fit
your requests.

Regards,
Jialiang Ge (ji****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================

Jun 27 '08 #4
Hi Jialiang,

I am writing a tool to dispaly values for some specific performance counters
in win Form application remotly. The executable will run, lets say on an XP
or Vista machine, connect to a remote server, get appropraite counters (SQL,
Biztalk, sharpoint.....whatever) and display its values.
Here are the steps :
1 - winform starts by authenticating and getting a connection to the server.
2 - execute some functions to get reference to the right perf counters
3- once UI is displayed with right figures, inside a timer function, will
check each 10 seconds perf counters values and update the GUI with the new
figures.
.. This tool is targeted to IT people to allow them monitor how some
applications are behaving during the day by watching specific activities.

What I want to achieve in load testing is 2 things :
1 - while this tool is running from 7 AM in the morning til 8 PM, will there
be any CPU unstability (continous increase in CPU).
2 - Stable /unstable memory usage (memory leaks) in the executable
The bottom line is firstly, I want to evaluate the impact of running my
tool on the client machine where the executable will run in terms of CPU and
memory, on the other hand I want to be able to simulate several client
machines (several IT people running the tool from their desktop) at the same
time, and record/monitor/register some other performance counters (not the
perf counters I display in my UI) on the server side.
I hope this can help you understand better
Please let me know if you need further explanantion

""Jialiang Ge [MSFT]"" wrote:
Hello SalamElias,

I have some points needed to be clarified in case I misunderstood your
question. Can I?

According to your description, it seems that there is a winform application
and we are not able to access its source code from a unit test. The winform
can display some performance counters in its UI. Am I right? SalamEias, I'm
sorry that I cannot understand the function for test. What's the
relationship between the performance counters in the winform and load test?
As far as I know, "load testing" itself is able to display the performance
counters: http://msdn.microsoft.com/en-us/vs2005/aa718474.aspx.

In the MSDN article: http://msdn.microsoft.com/en-us/library/ms182562.aspx,
it's documented that "load test" is mainly designed for the access of
server components, e.g. web server or DB server access. Before I get a
clearer picture of your request, I'm not sure whether "load test" will fit
your requests.

Regards,
Jialiang Ge (ji****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================

Jun 27 '08 #5
Hello SalamElias,

For the first one "we want to evaluate the impact of running the tool on
the client machine where the executable will run in terms of CPU and
memory", we can do it in this way: From the unit test, we call the piece of
code that does the actual server interaction (reading out the perf
counters). We can then use this unit test to simulate any number of people,
with delays between the execution of the tests. Measure the appropriate
perf counters on the target server (CPU, mem, etc.)

For the second one, there is no special technique if you want to test the
real binary. You could look at your code and create a test program that
calls your most memory intensive code a lot of times. As long as you only
have managed code, I'm pretty sure you won't have any memory leaks. You can
have inefficient memory usage, where the GC is not able to operate
efficiently. These kinds of things can be investigated using the visual
studio profiler (http://msdn.microsoft.com/en-us/library/ms184783.aspx).

Hope this gives you some pointers!

Regards,
Jialiang Ge (ji****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================

Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: rhat | last post by:
Hi Everyone, I've recently been reading some articles about unit-testing in Python , but I am a bit confused: where do I go to get started with this? I tried googling for "unittest" but all I've...
5
by: Rudolf Ball | last post by:
Dear NG, i want to load a plugin (WinForm) in my Applikation. That works fine. Now I want to globalize that plugin. So I have to load the Satellite Assembly, as well. But how can I load this...
2
by: Curtis Justus | last post by:
Hi, I've been searching for solutions to two issues that are undoubtedly common to everybody. The first is how do my team and I adequately perform unit testing. The second is how can I measure...
0
by: Chuck | last post by:
Sorry for the advertisement but I think this is something that people could actually use. I am creating a new product called Simple Load Testing and I thought I would see if anyone would be...
13
by: Thom Little | last post by:
My first ASP.NET application on Visual Studio 2005 and .NET Framework 2.0 The application compiles and executes correctly on the development machine. I then publish it to an empty directory on...
15
by: Enrique | last post by:
Question I am posting this question again (3rd time) because some issues with my no spam alias. Here it is the question: I have not been able to run unit tests for a VSTO (2005) project. I...
2
by: Jeff | last post by:
Hey asp.net 2.0 My asp.net 2.0 project has got a assembly load problem: Some of my web.config settings: <membership defaultProvider="AH_MembershipProvider" userIsOnlineTimeWindow="15">
1
by: David Lozzi | last post by:
Howdy, What do your recommend for web application load testing? I know VS 2005 has it in the Team version but I have the Pro version currently. I found www.loadtestingtool.com, which i'm testing...
2
nayana kalkur
by: nayana kalkur | last post by:
Hi, I am developing an addin for visual studio 2005(c#). My addin was working fine.I closed all Visual Studio intances, opened a new Visual studio instance(some time later)- i got a window with...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.