1

I've a unit test project in VS2013 with a config file

Solution Explorer

I made a build in TFS with my testing project. I configure controller on TFS and agent on controller, create machine on Lab center. But when try to run test on Test Manager I got this error:

System.Configuration.ConfigurationErrorsException: No se puede abrir el archivo configSource 'Configurations\Environment.config'. (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\VSEQT\QTAgent\19426\TIPS151.tipsalud.local\Deployment\AutomationDRG.DLL.config line 13)

When I go to the folder, it doesn't contain the config file nor the configuration folder.

I didn't find any solution. Any idea??

Chamberlain
  • 881
  • 5
  • 17
  • It seems your issue is not TFS related, you just use a TFS build output, correct? – Cece Dong - MSFT Aug 18 '16 at 07:05
  • Yes, the build was generated correctly, including the files that i need. The problem appear when i execute my tests on Test Manager. – Magin Bianchi Aug 24 '16 at 19:23
  • I found a solution but it isn't the best. I deploy the files manually from Microsoft Test Manager. I created Test Setting that deploy a folder with the config file. – Magin Bianchi Aug 24 '16 at 19:26

2 Answers2

0

You can try to set Copy to Output Directory for Environment.config to Cope always.

enter image description here

Cece Dong - MSFT
  • 29,631
  • 1
  • 24
  • 39
0

I found a solution but it isn't the best. I deploy the files manually from Microsoft Test Manager. I created Test Setting that deploy a folder with the config file.

Test Manager print