Posts

Showing posts with the label visual-studio-2012

Data driven coded UI test with excel file as a data source

Data driven coded UI test with excel file as a data source I built a coded UI test and I want to make it a data driven test , I want to get the data from an excel file ( Data.xls )located in the same directory with the project files, I used this line as shown in the MSDN site , but it didnt work , what changes should I do to the line ? [DataSource("System.Data.Odbc", "Dsn=Excel Files;Driver={Microsoft Excel Driver (*.xls)};dbq=|DataDirectory|\Data.xls;defaultdir=.;driverid=790;maxbuffersize=2048;pagetimeout=5;readonly=true", "Sheet1$", DataAccessMethod.Sequential), TestMethod] thank you Providing the error message you get will help us answer your question. – Eric Scherrer Apr 24 '14 at 12:38 @EricScherrer The unit test adapter failed to connect to the data source or...

Can I use something like DebuggerTypeProxyAttribute on a type that I don't own?

Image
Can I use something like DebuggerTypeProxyAttribute on a type that I don't own? I've got an IClaimsPrincipal variable, and I'd like to see how many claims are in it. Navigating through the properties in the watch window is complicated, so I'd like to customize how this object is displayed. IClaimsPrincipal I'm aware of the [DebuggerTypeProxy] attribute, which initially looked like it might do what I want. Unfortunately, it needs to be attached to the class, and I don't "own" the class. In this case it's a Microsoft.IdentityModel.Claims.ClaimsPrincipal . [DebuggerTypeProxy] Microsoft.IdentityModel.Claims.ClaimsPrincipal I'd like to display the value of IClaimsPrincipal.Identities[0].Claims.Count . IClaimsPrincipal.Identities[0].Claims.Count Is there any way, using [DebuggerTypeProxy] or similar, to customize how the value of a type that I don't own is displayed in the watch window? [DebuggerTypeProxy] 3 Ans...