Monday, August 1, 2016

Vnext build definition waiting agent

Hi.
In this post I want describe short article about execution build definition.

Test Agent :Could not load file or assembly Microsoft.VisualStudio.QualityTools.CodedUITestFramework Part2

Hi everybody!
In this post I want continue describe issue, which was public in part one part one.
I see that this article has big interest. and I decide continue help fix this issue.
If you didn't read article, this is short context of this article.
During execution tests on test agent, you probably see error:

Unit Test Adapter threw exception: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
But first  article describe issue with TFS 2013(2015)+Build Controller 2013+Test Controller 2013+Test Agent 2013.

If your team still use Test Agent 2013, you probably see this issue with soft:
TFS 2015+Build Controller 2015+Test Controller 2013+Test Agent 2013.

If you did recommendation in first article but it still not work, you can try follow way:
-Try to install Visual studio (ideal Enterprise version) to build agent.
 When we install to this path C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\ Visual studio., some of subdirectory (don't remember the name) has required library.

After this we fix this error.

Or quick but bad way: change build controller to version 2013.
So this chain is working:
TFS 2015+Build Controller 2015+Test Controller 2013+Test Agent 2013.

Good luck to all.

Thursday, June 9, 2016

Faile execute test(s): Error calling Initialization method for test class




Hi.
Today  I want discuss short issue with execute codedUI test on test agent.
If you see this error:

Error calling Initialization method for test class ***: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Automation engine is unable to playback the test because it is not able to interact with the desktop. This could happen if the computer running the test is locked or it’s remote session window is minimized.

Monday, April 18, 2016

Test agent 2013: The setup batch file exited with error code 1


Hi. Today I want show you how resolve errors connect with execute batch file in deploy step before
execute tests.

So in my case I have:
  1. TFS 2015
  2. Test Controller 2013
  3. Test Agent 2013
  4. Microsoft Test Manager.
 Imagine, that you have task execute tests before execute tests. You write this script and put it to Microsoft test manager in (Advance -> Scripts).

Tuesday, March 29, 2016

Wednesday, March 16, 2016

VNext build agent : one or many

Hi. Today I want speak about short article: how configure many build agents.
If you have big infrastructure, you should use a lot of build servers. If you used TFS 2013, you probably remember that you can configure number of build agent in UI wizard of team foundation server.

Thursday, February 18, 2016

Test Agent :Could not load file or assembly Microsoft.VisualStudio.QualityTools.CodedUITestFramework

Hi all.
Today we are speaking about supporting old system: test agent 2013.

If you have XAML build definition, which build in TFS 2015 test controller and test agent.
But if QC department use Microsoft Test Manager (MTM), you can't use Test Agent 2015.
You should use test agent 2013 with last updates.