简体   繁体   中英

Testing config file

I'm building skme testing on my project and wanted some clarification. Right now there's a config file for my testing that acts like my web.config file containing information for the server for the testing to pass the security and work fine. This file (vstest.execution engine.x86.exe.config) sits here: c:\\microsoft visual studio 12.0\\common7\\ide\\commonextentions\\microsoft\\testwindow, and is accessed in the code as AppDomain.CurrentDomain.SetupInformation.ConfigurationFile. Every time a user will run a test it will modify the config file dinamically for the testing to work. This causes some troubles. Mainly I would like the testing to use the web.config file becuase its already built and is static. Is there a way to do this? Also, any advice on testing configuration files would be greatly appreciated.

I use SlowCheetah to perform transformation on my Web.Config. I have config file for every environment, thats where I keep all my configuration(eg: Web.Dev.config, Web.QA.Config).

Not sure if that answers your question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM