mercredi 25 mars 2015

FileNotFoundException when executing CodedUITests locally after build

I am new in VS2013 and C#. I was trying to test the UI of a Webpage with VS CodedUITests and WebTests. This has been done successfully. I have my tests working when I run them manually.


The problem comes when I want to automate this process. Instead of using a Test Agent (I would need a second machine) I wanted to create a Build and run these tests right after a successful build. I created the build and it works fine (I get Build partially succeeded), but the tests do not run because somehow (even after successfully building) it cannot find UITesting reporting this error:



Run MSTest for Test Assemblies
+ d:\a\bin\CodedUITestProject1.dll
+ Unable to load the test container 'd:\a\bin\CodedUITestProject1.dll
or one of its dependencies. Error details: System.IO.FileNotFoundException:
Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITesting,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one
of its dependencies. The system cannot find the file specified.


I don't have this d:\a\bin path anywhere, so I suppose it is a temporary path for the build. I am not sure that what I am doing is possible or not. All I want is to build my projects and run these UI/Web tests, but maybe this is not the right approach. Any help with this?


Aucun commentaire:

Enregistrer un commentaire