TeamCity and Coded UI

Hi all,

I wan't to create Coded UI tests for my website project in Visual Studio, and then let them run automatically with each build in TeamCity.
But i could not find a good answer(only out dated) to whether this is possible or not. All i could find is that it ain't possible because Coded UI needs a real desktop to test with.

I hope somebody can help me with this and maybe also with setting up the build step in TeamCity.

Thanks in advance,
Guido

2 comments
Comment actions Permalink

All builds are run on build agents. If started buildAgent can interact with desktop, then the build will have access to it as well.

A simple example - windows machine with auto-logon and "buildAgent.bat start" command in auto-start for this user.

0
Comment actions Permalink

Thanks for the reply Sergey.
But at this moment i have another problem so i can't test it yet.
Our build agent can't find the required dll's for the CodedUI tests.
I get the following compilation error's:

  • CodedUITest2.cs(7, 40): error CS0234: The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
  • CodedUITest2.cs(9, 40): error CS0234: The type or namespace name 'UITest' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
  • UIMap.cs(6, 44): error CS0234: The type or namespace name 'UITest' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
  • UIMap.cs(7, 44): error CS0234: The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
  • UIMap.Designer.cs(19, 44): error CS0234: The type or namespace name 'UITest' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
  • UIMap.Designer.cs(20, 44): error CS0234: The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
  • UIMap.Designer.cs(21, 44): error CS0234: The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)

It is strange because i added the dll's to the source control AND installed the Visual Studio Test Agents 2013 (MSTest 12) which should also contain those dll's.
Is there somebody who also had problems with this and could help me?

0

Please sign in to leave a comment.