user2048204
user2048204

Reputation: 759

CodedUI tests Error calling Initialization method for test class while running through Jenkins

I have few Coded UI tests which are not in TFS. I was running these tests as ordered test from the CommandLine using the command:

vstest.console OrderedTest2.orderedtest

Now, I want to run this through Jenkins but i am seeing the below error:

Error Message: Error calling Initialization method for test class SAClientAutomation.testsuites.SABVTSuite: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: To run tests that interact with the desktop, you must set up the test agent to run as an interactive process. For more information, see "How to: Set Up Your Test Agent to Run Tests That Interact with the Desktop" (http://go.microsoft.com/fwlink/?LinkId=255012)

I have installed Test Agent and Test Controller but i don't what to next.

The code is not in TFS. Is TFS & MTM(Microsoft Test Manager) compulsory to achieve this?

Upvotes: 0

Views: 426

Answers (1)

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31063

Yes, TFS & MTM can run Coded UI tests. If you use TFS 2015.1 and previous versions, you need MTM to run the Coded UI tests, check: https://msdn.microsoft.com/en-us/library/ff472576(v=vs.120).aspx.

If you use TFS 2015.2 and later versions, you can use Run Functional Tests task directly in TFS build definition to run Coded UI tests. Check https://blogs.msdn.microsoft.com/visualstudioalm/2016/03/31/executing-automated-tests-in-build-vnext-using-test-plan-test-suites/.

In order to run coded UI tests in TFS 2015.2 and later, you need to deploy build agent and test agent in Interactive Process:

Upvotes: 0

Related Questions