简体   繁体   English

测试配置文件

[英]Testing config file

I'm building skme testing on my project and wanted some clarification. 我正在为我的项目构建skme测试,并需要进行澄清。 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. 现在,有一个用于我的测试的配置文件,其行为类似于我的web.config文件,其中包含供服务器通过该信息以通过安全性和正常工作的信息。 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. 该文件(vstest.execution engine.x86.exe.config)位于此处:c:\\ microsoft visual studio 12.0 \\ common7 \\ ide \\ commonextensions \\ microsoft \\ testwindow,并且在代码中以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. 主要是我希望测试使用web.config文件,因为它已经构建并且是静态的。 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. 我使用SlowCheetah在Web.Config上执行转换。 I have config file for every environment, thats where I keep all my configuration(eg: Web.Dev.config, Web.QA.Config). 我有适合每个环境的配置文件,也就是我保存所有配置的位置(例如:Web.Dev.config,Web.QA.Config)。

Not sure if that answers your question. 不确定是否能回答您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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