Visual Studio Performance Tools (Profiler),17
Recent update: 2008-3-21

Question on running perf profiling in instrumentation.

1371 byte By Haw at 2008-3-7
Hello,I'm new to performance testing, and I'm trying to grab a performance profile in Instrumentation mode on my ASP.Net application.I have an ASP.Net project and a C# class library, on August CTP, which contains a custom webcontrol that i would like to study its performance. All the ...

Not able to run performance tests

823 byte By JeffLevinson at 2008-3-6
I am running the August CTP and I receive the following error whenever I try to run performance tests against an ASP.NET application:"The web site could not be configured correctly; getting ASP.NET process information failed. Requesting ...

What about lone wolf programmers?

622 byte By progrmr at 2008-3-5
Because I can't afford an MSDN subscription, I purchased the VS 2005 Team System Beta 2 which I just installed.So I'm installed and I start up the client IDE (I only installed the client stuff) only to find that I can't seem to create a project without being connected to a team server.The ...

Queries in VS 2005

229 byte By MaheshChandramouli at 2008-3-3
I have two queries in VS 2005 1. If I keep the VS.NET opened for sometime, all the fonts are getting disturbed. Is this a bug? 2. To work with Visual source safe 2005 , do i need to have a VSTS foundation server.

Tests and deployment files in uplevel directories.

584 byte By schallm at 2008-3-1
I am using xml configuration files that are stored outside of the bin folder at the same level.\bin\mapsWhen trying to unit test my code I have set the deployment items to copy the folder maps, but it copies the files into what would be the bin folder at run time. So the paths (..\maps) that ...

Adding Reference to Assembly in GAC

1509 byte By AgileKnaskefant at 2008-2-28
Studing the Microsoft.Common.targets file i see that the following information on reference discovering: <PropertyGroup><AssemblySearchPaths Condition=" '$(AssemblySearchPaths)' == '' ...

Testing with mock DataSet ?

379 byte By PeterFitzgibbons at 2008-2-27
Hello,I wish to use a unit test with a mock DataSet. I have a test verifying the dataset/tableadapter are retrieving from the db, now I want to mock the data for my further tests. How to mock a DataSet ?Thanks,Peter FitzgibbonsApplications ManagerLakewood Homes, Inc."The American Dream ...

TypeLoad Exception when trying to run Unit Test

685 byte By Gerhardo at 2008-2-26
Hi,I'm getting a typeload exception when trying to run a unit test. The assembly under test is namedMyCompany.XXX.YYY.ZZZThe unit test assembly is namedMyCompany.XXX.YYY.ZZZ.TestThe unit test assembly has one class in it which contains nothing but the boiler plate code for a unit test. It ...

Is C++ instrumentation profiling broken in Beta 2?

353 byte By AlexWard at 2008-2-25
I have successfully run sampling profiling on a c++ project. When I switch to instrumentation profiling I get a message box saying 'Value does not fall within the expected range.' and then the launch button greys out. To get the launch button back I have to restart the Visual Studio ...

Data driving unit tests but not from database

739 byte By MikePiska at 2008-2-24
I love that the unit test framework lets you data drive your tests using the Data Source value in the TestMethod attribute. However, I don't love the idea of driving it from a database table. Creating a db table and populating it for each of my data driven test methods is a pain. This is ...

Problems generating unit tests when using a typed data set with a partial class

1720 byte By StephenArcher at 2008-2-23
Hi,I'm new to unit testing and had a problem with the following (VB.Net). I have a typed data set in my application and I have extend the functionality of this data set using a partial class (rather than inheriting it).So, I've got a dataset called lets say "SomeDataSet". It has one table and ...

Displaying line numbers in unit test failure results

906 byte By StephenArcher at 2008-2-22
Hi,I'm new to unit testing and have been experimenting with it over the last few days. I have been writing my tests in the test class generated by VS. I'm finding that it is easier to put multiple Assert statements into each test method (to fully test everything). Then, when one of my test ...

«Template Method»s [GoF] and Unit Testing

1834 byte By totte500 at 2008-2-22
I’m trying to implement a ?Template Method in an abstract base class. I’d like to mark the ?Template Method with the [TestMethod] attribute, and have all the sub-classes run the test method. However, the Test Manager says that methods of an abstract class can’t be marked as test methods. My ...

Public Service Announcement: How to fix new Test Projects on July CTP

675 byte By dhoptonMSFT at 2008-2-21
http://blogs.msdn.com/vstsqualitytools/archive/2005/08/09/449268.aspxIt appears that on the July CTP there was a small bug that caused problems when creating new Test Projects. If you wish to create *new* test projects on the July CTP, you will need to apply this fix.Summary:One of the template ...

More ways to minimize instrumentation output?

907 byte By dimkaz at 2008-2-20
I know about /INCLUDE /EXCLUDE and I know about /START... and API.I was just wondering if it possible to for example disable stack collections. I might be happy running whole application and just seeing the times of the functions and call count. I generally know what my call stacks might look ...

Error in profiler report generation

2065 byte By dimkaz at 2008-2-20
I am getting the following error (message box) while preparing report.What should I do to fix it? Microsoft Visual Studio Symbol Engine: Loading symbols for module 'd:\School\bio\projects\Approximation\LPMotif\Release\LPMotif.exe' Symbol Engine: Loading symbols for module ...

Profiler instrumentation of C++ classes

448 byte By dimkaz at 2008-2-19
Can someone point to the documentation describing.Specifically I need to explicitly include member functions of some template classes.The command line says:/INCLUDE:funcspec+Simple functions work fine, but I can't find the way to supply template functions(e.g. map<string, ...

C2825 error

777 byte By pangwa at 2008-2-18
following code will generate a C2825 error in VS2005Beta2 July:#include "stdafx.h"#include <vector>#include <iostream>int _tmain(int argc, _TCHAR* argv[]){ int i = 3, j = 6; std::swap<int>(i, j); //C2825 //but use std::swap<> <i, j>; will be ok return 0;} I don't ...

Performance Profiling

390 byte By rrkessler at 2008-2-17
I've been testing various parts of Beta 2 and decided to give the performance explorer and profiling a go. It doesn't work because I am running my Beta 2 on a virtual machine (I get a dialog that says it can't start vsperfmon and then a second dialog that says can't run sampling on a ...

Different test results by using of Performance Tools

5556 byte By DamirDobric at 2008-2-16
I crated a very simple project (WinForms). The project has only one form and one button. When you press the button two simple functions are invoked: f1 and f2. Then I created a performance instrumentation session, which lunches the executable through the project. The result seems to be ok. ...

Test framework in VS 2K5

634 byte By SideByEach at 2008-2-15
I've created several tests for one of my forms, via the "Create Tests..." menu in VS 2K5. Several of the tests that were created need to check the status or contents of controls on the form. Via the accessor object I am able to see all methods and property of the form's controls. For some ...

comparing old and new values in __success macro

255 byte By yecril at 2008-2-15
Hi there, How do I express the condition that a parameter passed by reference remains unchanged after the function returns? something like this? <font face="Courier New"> __success(__oldvalue(parameter) == __newvalue(parameter)) </font>

What comes with Developer Edition?

193 byte By TomSavage at 2008-2-15
I know there's a table somewhere with comparisons, but I lost it. Can anyone provide a link? Specifically, do the test tools come with the Developer targeted editions? Thanks, ts

TestInitialize Called More Than Once Per Class? And TestContext.WriteLine()

656 byte By CindyBrucato at 2008-2-15
Hello,I started having issues with a set of unit tests that I wrote when I added a File.Copy routine to the TestInitalize method. It seems that the initialization is happening once per test in the class, not once for the entire class. Is that the correct behaviour? Isn't it supposed to be once ...

Testing generics

4638 byte By StuartWhite at 2008-2-15
Apologies if this is posted in the wrong place - please let me know where would be more appropriate.I am still trying to come to terms with the way the unit testing in VS2005 Beta 2 works - it's a slghtly tortuous process, but that probably says more about me than anything!I am stuck with ...

Problem getting performance sessions from unit tests

1119 byte By ClintStotesbery at 2008-2-14
I can't performance sessions from my unit tests when I right click on a unit test. Sometimes I get: Instrumentation error while processing file <dll>: Error VSP1018 : VSInstr does not support processing binaries that are already instrumented. Code coverage in-place instrumentation: The ...

Any document about extensibility of profile, coverage and so on?

394 byte By ShinyaWatanabe at 2008-2-14
We will try to support profile, coverage and so on , including Visual Studio Team Edition for COBOL Users.I heard that there is VS 2005 Team System Extensibility Kit , from a person in charge of VSIP , who is working for MSKK.But there is no document about how to extend Profiler, Coverage, and ...

VS2005 Unittest and build actions

854 byte By JakobR?jel at 2008-2-13
I'm trying to migrate my NUnit tests to VS2005 unit test.My project uses build actions to copy configuration files into the output directories (e.g. by Spring xml files goes into a spring subdirectory)I have read the suggestions in http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=7510but ...

How to hide code coverage coloring?

232 byte By CarlDaniel at 2008-2-13
OK, coloring the code after code coverage is great. Now how do I turn it off? I'm not talking about no longer doing code coverage - I just want all the coloring to go away so I can work on the code without all that visual noise.

TreeView automated checking

784 byte By MichaelBarton at 2008-2-12
Hi,I currently have a 2 tier tree view within a asp.net page (in ASP.net v2 beta 2) populated from a database showing check boxes on all of the nodes.When the user checks the parent check box i would like to automatically check the child node's check boxes (seems like a simple enough thing to ...

Disable VS2005-specific features

449 byte By thys at 2008-2-11
Is it possible to disable the VS2005-specific features? We would like to have our project in VSTS, but our customer wants to have the possibility to go back to VS2003 for some reason. I have this article on how to create fw1.1 assemblies, but that's not enough. Any ...

Resources: Team Edition for Software Developers

5621 byte By Neno at 2008-2-10
Articles MSDN Chat: Team Edition for Software Developer and Software Testers, June 2005 Getting started with Unit Test Generation, June 2005 Designing an API with the Visual Studio 2005 Class Designer, March 2005 Building Robust and Reliable Software Visual Studio 2005 Class Designer ...

Get Latest greyed out

313 byte By thys at 2008-2-10
I have a solution which a colleague checked into Source Control. When I go the source control window and open that team project, his solution is greyed out. Also, the options in the context menu Get latest version and Get specific version are greyed out. What do I have to do to checked out ...

How do I get a run configuration?

389 byte By SandraGeisler at 2008-2-8
Hello,I am checking out the test capabilities of Visual Studio and think they are great. But now I also like to check the code coverage of my tests but do not find a way how to get a test run configuration. In my code coverage window it says I have not enabled the code coverage option. So where ...

Unit Test Wizard in Visual Studio Team Suite doesn't generate tests for C++/CLI classes.

626 byte By rjr at 2008-2-8
Hi all, Is there a way to generate unit tests for projects written in C++/CLI? I added a Unit Test project to a solution containing C++/CLI and C# projects. All C++/CLI projects are compiled using clr/safe. When I right click on the Unit Test project and select Add->Unit Test, a Generate ...

Team System unit testing and config files

436 byte By grs at 2008-2-7
If you set up one project as a class library production code and another project for you tests in the new team system how can you read a configuration file as below:string connectionString = ConfigurationSettings.AppSettings["ConnectionString"];I know you can add a connection string in the ...

"Couldn't get Configuration"

382 byte By DavidGwynn-Jones at 2008-2-7
Our test project used to work but we broke something - now we get "Couldn't get Configuration" - not much point putting that one into google!A new solution and test project is fine but we'd like to fix our existing (fairly detailed) solution rather than rebuild it from scratch (and maybe have ...

Instrumentation problems using the IDE for VC++ projects (vs2005 beta2)

1042 byte By DougMilne at 2008-2-7
I am trying to profile an application that consists of a mix of C# projects and c++ projects (built using /clr). I am specifically trying to see the impact of "thunking" on our application's performance. I have been able to sample short runs of the application, but I am not seeing the kind of ...

WIT (work item type) editor available?

130 byte By HidenoriYamanishi at 2008-2-7
I'm currently using Notepad.exe to edit work item type definition files. I'm wondering the WIT editor available from Microsoft?

(Work Item) FileBrowse dialog launched from AttachemtsControl customizable?

180 byte By HidenoriYamanishi at 2008-2-6
I would like to set a file extension to the "Files of type" combo box in the File Browse dialog launched from the AttachemtsControl. Is it possible? It is empty by default.

Problem with images and VS 2005

697 byte By Aimee at 2008-2-6
hi, i hope this is the right place to ask. i'm new with vs2005. I created a simple form with a button and added an image to it but i always get this error when i try to compile and run my project."An error occurred creating the form. See Exception.InnerException for details. The error is: ...

NUnit and Unit Tests in VS2005

196 byte By GuntherLenz at 2008-2-5
Hello, I am wondering if there is a way to easily import unit tests in to Visual Studio 2005 that were written for NUnit? Thanks<img src="/library/msdn/emoticons/emotion-6.gif" alt="Sad" />

Unlocking a checked out file in Source Control

636 byte By JustinMerth at 2008-2-5
Greetings,I'm trying to unlock a file which is checked out by another user ( who happens to be out of the office), if i try to do an 'unlock' from the source control explorer i get the message:The item $/Myproj/MyFile.cs is locked for checkout by THEDOMAIN\theuser in workspace ...

Code Coverage Not Enabling

559 byte By CindyBrucato at 2008-2-4
I seem to recall some sort of post similar to this but I can't find it ... so here it goes.I had code coverage enabled and it was working great! I then turned it off, and want to enable it again. I went the Test -> Edit Test Run Configurations -> local.... and in the Code Coverage ...

Unit testing Problems

742 byte By ash927 at 2008-2-4
Hi all, In one of my unit test i keep getting "System.IO.FileNotFoundException: The specified module could not be found", while loading a managed C++.Net. This dll in-turn links to other dlls (Unmanaged) statically and all files are in same folder. During running the tests I found out that ...

Testing for Exceptions in Unit Tests

164 byte By CindyBrucato at 2008-2-4
I can't figure out how to test for an exception in a unit test. Is there an Assert. comand or something else to test for an expected exception? Thanks! Cindy

Using Unit Tests to drive the Profiler

532 byte By ChrisMullins at 2008-2-4
I have several operations that take a long time, and I'm trying to determine what exactly the bottleneck is. I have created tests using the testing infrastructure that allow me to run the same operation over and over, so I can see trends in how long the operation is taking. What I really want ...

Timeout during unit test

916 byte By HolyEggplant at 2008-2-3
Greetings.I've recently been introduced to VSTSs integrated unit testing abilities, and quickly decided to adopt them and write an extensive suite of tests for some software component or another.Much to my regret, however, I soon stumbled upon a rather annoying problem as some of my tests take ...

Inherited Tests

7478 byte By Matt_Garven at 2008-2-3
We use base test classes extensively in our projects, however it doesn't seem that test methods are picked up by the Test Manager when they are declared in the base class. eg. public abstract class BaseTest { [TestMethod] public virtual void TestMethod() { TestObject testObj = ...

How to put the code in a team proyect?

301 byte By LuisValencia at 2008-2-2
Hello. I created a team foundation proyect. I see many things there, work items, documents, reports, build. but I dont see the code.I created a website , how can I associate the website proyect to the team foundation proyect? Why I cant create bugs? it doesnt let me write on the title ...

Visual Studio Team System

Site Classified