index > Visual Studio Team System - Testers > Getting app.config to work with unit tests.

Getting app.config to work with unit tests.

When creating an app.config file (OK, I cut & pasted it from MSDN)
I compile I get the error:
"Could not find schema information for the element Could not find schema information for the element 'Microsoft.VisualStudio.TestTools'."

<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="microsoft.visualstudio.testtools" type="Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection, Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> </configSections> <connectionStrings> <add name="MyJetConn" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\testdatasource.mdb; Persist Security Info=False;" providerName="System.Data.OleDb" /> <add name="MyExcelConn" connectionString="Dsn=Excel Files;dbq=data.xls;defaultdir=.; driverid=790;maxbuffersize=2048;pagetimeout=5" providerName="System.Data.Odbc" /> </connectionStrings> <microsoft.visualstudio.testtools> <dataSources> <add name="MyJetDataSource" connectionString="MyJetConn" dataTableName="MyDataTable" dataAccessMethod="Sequential"/> <add name="MyExcelDataSource" connectionString="MyExcelConn" dataTableName="Sheet1$" dataAccessMethod="Sequential"/> </dataSources> </microsoft.visualstudio.testtools> </configuration>


Any idea what is causing this?

Thanks!






STE
tomk_vsts_user
This is when running the tests from test view, correct? With a data driven test?


SDE on VSTest
dhopton MSFT

re-loading the project appears to be what resolved the problem. I'll let you know if I can repro it.

Thanks,
Tom




STE
tomk_vsts_user
reply 3

You can use google to search for other answers

 

More Articles

• Need help figuring out this Query String Parameter issue
• Attempted to perform an unauthorized operation while publishing
• Code Coverage Coloring Option
• Unit Test Configuration
• Custom Test Types - Some errors and their solutions
• Load Testing of Window based client with web Services as server
• Auto-Save of Manual Test Results in Beta2?
• Working with Frames
• Associating Work Items to Tests
• Virtual User Synchronization Point
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Error 302 in Web tests
• Proxy setting non-binding for localhost
• Change frame src property
• Test Manager dropping and duplicating te
• Behavior of Test and *.vsmdi
• Results per test-flow instead of test-ca
• Generic Test does not seem to deploy the
• The location of the file or directory xx
• Editing QTControllerConfig.xml Manually
• Issue with data source access from Agent
• How to copy some xml file to the current
• Automated FoxPro Testing
• Question on Team testing tool
• Ignoring certain DependentRequests retur
• Strange Load Test Behavior

Hot Articles

• How to measure latency?
• Anybody using EIFFEL.NET for Testing?
• Unable to open Test Manager
• How can I make VS understand that a proj
• How can I add a manual test to Team Syst
• Unit testing the code written with dot n
• test case
• Testing WebServices that use SSL
• Unit testing classes inside a website pr
• Deployment items in runconfig file
• Test Run deployment issue --> Directo
• Application Center Test - No Simultaneou
• Bugs, test and requirements traceability
• Measuring decision coverage
• Confusing descrepancy between recording

Recommend Articles

• System.NullReferenceException : Object r
• Find Text Validation Rule - passes on hi
• How to programmatically find all errors
• VB Examples of Custom Extraction / Valid
• Unit test AppDomain names and custom per
• 403 Forbidden Error.
• Strange Results with Load Test
• Minimal/No VSTS for testers
• How to use TDD for User Interface in Web
• WebTestContext
• Question on Team testing tool
• Cannot select testrunconfig
• Change in Webtest coded.VB is not gettin
• How can I run a perfomance test capturin
• Configure website to run tests against?