Posts

Showing posts with the label Visual Studio Team System

VS 2005 Team System VB.NET Unit Test Class and method name are case sensitive

I had changed the name of a class to match Code Analysis class name criteria that specifies what parts of a class name should be upper case/lower case.  I did a global search and replace.  Some time later I ran a unit test and got this error: System.TypeLoadException: Could not load type After a bit of research I discovered that even though the class I had changed casing on was a VB class the unit test class is case sensitive.

VS Team System 2005 ASP.NET unit test error.

If you get this error message when running an ASP.NET unit test in VS Team System 2005: The web request 'http://localhost:19298/' completed successfully without running the test. This can occur when configuring the web application for testing fails (an ASP.NET server error occurs when processing the request), or when no ASP.NET page is executed (the URL may point to an HTML page, a web service, or a directory listing). Running tests in ASP.NET requires the URL to resolve to an ASP.NET page and for the page to execute properly up to the Load event. The response from the request is stored in the file 'WebRequestResponse_lnkGetMoreWork_Click.html' with the test results; typically this file can be opened with a web browser to view its contents. Remove these lines/attributes from the unit test method declaration: HostType( "ASP.NET" ), _ AspNetDevelopmentServerHost( "%PathToWebRoot%" , "/" ), _ UrlToTest( "http://localhos...

VS 2005 Team System Webtest ValidationRule on an asp:dropdownlist control

With this html: <select name="ctl00$ContentPlaceHolder1$CompanyDropDownList" id="ctl00_ContentPlaceHolder1_CompanyDropDownList" class="Normal">   <option selected="selected" value="1">All</option>   <option value="2">Company 1</option>   <option value="3">Company 2</option>   <option value="4">Company 3</option>   <option value="5">Company 4</option>   <option value="6">Company 5</option>  </select> In my webtest I wanted to verify CompanyDropDownList had selected option 2 "Company 1". Tried Form Field with form field name ctl00$ContentPlaceHolder1$CompanyDropDownList but it did not work. Using Required Attribute Value worked with the following values: Attribute Name             value Expected Value        ...