473,569 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1699
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****@microsof t.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****@microsof t.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****@microsof t.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.....w hatever) 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****@microsof t.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****@microsof t.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
2315
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 found are some old links to projects that already use it, and the older (as the articles put it) PyUnit project. I'm sorry if this is a obvious...
5
10050
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 (and when?). Thank you very much Rudi
2
9732
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 a load on my application? In the past, we would write our class and then come up with some logic in a console or win app to test it. I have...
0
1519
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 interested in giving it a try in it's beta stage. Keep in mind that it is still in the beta stages so there will be bugs - but so far it seems to be...
13
26593
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 the development machine. I then copy that directory to the remote server that contains numerous directories and some of them are using .NET Framework...
15
6917
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 have an Excel project and a unit test project in the same solution. I have not found the way to initialize the runtimecallback as required by the...
2
3369
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
1282
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 now and i like, but wondering if there are better apps out there.... Thanks! David lozzi
2
3706
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 this message: << The Add-in 'addin_name-No name provided.' failed to load or caused an exception. Would you like to remove this Add-in? If you...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8132
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7678
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7982
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.