Recent update: 2008-3-21
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 ...
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 ...
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 ...
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.
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 ...
Studing the Microsoft.Common.targets file i see that the following information on reference discovering: <PropertyGroup><AssemblySearchPaths Condition=" '$(AssemblySearchPaths)' == '' ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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. ...
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 ...
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>
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
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
I'm currently using Notepad.exe to edit work item type definition files. I'm wondering the WIT editor available from Microsoft?
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.
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: ...
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" />
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 = ...
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 ...