How to use actual Test (Unit, Web, Load) to profile my application?

Hi,
is there any way to use my existing VSTS Tests to profile my application? (in order not to exercise the application manually)

Thanks a lot.

LucasC

[158 byte] By [LucasC] at [2008-1-19]
# 1

You CAN profile an unit test. Creating Performance Session is available in the test result window by right-clicking on the test. It opens up a Performance Wizard. This wizard will create a performace session for you. The default profiling method for unit test is instrumentation.

We DO NOT support profiling a web/load test in Beta2, and we are not planning to support them in RTM/RC either. However, in Whidbey Beta2, Create Performace Session is enabled for whatever test that shows up in the test result window. For all tests other than unit test, bad behavior happens and profiling these tests does not really take you to the result you desire. This is a bug. It will be fixed in RTM/RC. At that time, Create Performace Session will only be enabled for unit test.

I am not very sure if I have answered your question. Please don't hesitate to ask if you have further questions. Thank you for your interest in Profiler!

MinWang at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 2

I don't like to profile the Unit Test itself (or any test itself). I understand that in order to profile my application (Web or Executable) I have to exercise it (execute it in some way).
So, is there any way to execute my application for profiling purposes but using some of the test to exercise it in order not to play manually with it? I want to profile my application but using some valid test scenarios that I have generate before (that's a way to make it repeatable)

Thanks a lot

LucasC at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 3

You sure can, LucasC (with unit tests).

After running your unit tests you can go into the Test Results window, right-click on the unit test you want to use as part of your performance session, and select "Create performance session..." from the context menu.

The Performance Wizard will appear allowing you to select how you want to measure performance (sampled or instrumented). Finish off the wizard and then click the Launch button on the Performance Explorer window's toolbar to launch the session with your test.

When the test completes the performance measurements are compiled and displayed.

Tom

TomArnold at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 4
In addition to Tom's suggestion for unit tests, here is a simple way you can profile ASP.NET apps with the help of external web and load tests:

http://blogs.msdn.com/ejarvi/archive/2005/04/21/410467.aspx

EricJarvi at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 5
If you can launch your test on Command line, you can use our command line tools (VSPerfcmd for performance data collection, VSPerfReport for performance data analysis) to achieve automation.
MinWang at 2007-8-21 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...

Visual Studio Team System

Site Classified