I am making an automated codedUI test in microsoft test manager 2013 - c#

I have made:
1.recorded the coded UI test in visual studio 2013.
2.Configured the test controller on the main computer in team foundation server.
3.made new environment in lab centre in microsoft test manager 2013.
the problem is in last step the lab environment should configure the test agent automatically to run UI tests, but after i finish the environment the computer restarts and then I found that the name of the machine in the environment is changed to activate.adobe.com.
I removed all adobe products from the computer, and deactivated all adobe assistants from start up and the problem still there.
Please help me as I am new to testing.

Related

Not able to connect test controller with visual studio team services

I am trying to setup lab environment in MTM and for that when i am setting up test controller version number is 15.0 with visual studio team services i am getting "failed to configure tfs team project collection" error and in the logs "Timedout while waiting for service Visual Studio Test Controller to go to state Running. Current status is Stopped" displayed.
I tried even removing environment given in below link -https://social.msdn.microsoft.com/Forums/vstudio/en-US/dc5607c1-b563-4503-857e-f3b5ce781cb8/test-controller-vs20124-just-wont-configure?forum=vstest
My service user is in local admin group.
Any help would be appreciated .
Thanks
VSTS does not support lab management features as they are deprecated -- TFS 2018 dropped support for it, as well.
VSTS build/release has tasks for deploying test agents and running functional tests across your test agents.

Runnings tests in visual studio after publish profile finishes successfully

I have an ASP.NET Core project in Visual Studio 2015 that contains a number of publish profiles to deploy my website to various IIS web servers on an intranet. I also have a project containing a set of Selenium tests. Both of these projects are part of the same solution. I want these tests to run on a specified web server if a publish profile finishes successfully. The closest I have got to this is enabling 'Run Tests After Build' in Visual Studio which runs the tests when the project is built manually but doesn't seem to be linked to the pubish profiles finishing.
I don't have access to Team Foundation Server which I beleive is one way to acheive what I want so I was wondering if there were any other solutions, possibly through explicitely running the tests through PowerShell.

How can i run automated selenium tests using TFS build 2015?

I have NUnit selenium tests that i have embedded into Unit test and i am trying to run this using TFS Build 2015. All the tests run perfectly fine locally but not from the TFS Server. I enabled code coverage and found out that "Module unittests.dll" works fine and most of the code is covered but for "Seleniumtest.exe" 0 lines covered.
I have read a lot on this problem and came across the idea of enabling the TFS Agent to run in interactive mode but i do not know how to do this from the TFS Server and most of the documentation online is not good enough.Thanks
If you're using the Hosted agent queue, you can't. If you have your own on-premise build agent, you just need to run the agent from a command prompt (as opposed to as a service). That's all that "interactive" means.
You can also use the Test Agent tasks to deploy a test agent to a target machine and invoke the tests on them. This will also allow you to run UI tests even if you're using the hosted agent queue -- you'll be passing off the running of the tests to an on-premise test agent.
On a side note, you should generally not run UI tests as part of a build process, but rather as a step in a release pipeline after the application has been released to a QA environment. UI tests are slow and brittle, and you don't want your CI process to be bogged down with running UI tests.

Helpless error in Windows Phone Unit Test output

Under Visual Studio express 2012 update 4 I have created windows phone app, for which i added Windows Phone unit test App. When I try to run the tests, Tests output windows shows following error:
------ Run test started ------
Failed to import IDeployService. Cannot proceed with xap deployment. This failure can be observed if the component model cache (typically located in %LocalAppData%\Microsoft\VisualStudio\[version]\ComponentModelCache) is not up-to-date. To come out of this error, close all instances of visual studio, delete the component model cache folder and try again.
Unit tests in source D:\projekty\PhoneApp3\TestApp1\Bin\x86\Debug\TestApp1.dll cannot be run. Please create a Windows Store or Windows Phone Unit Test project.
========== Run test finished: 0 run (0:00:00,0009998) ==========
Deleting of %LocalAppData%\Microsoft\VisualStudio\[version]\ComponentModelCache does not help
EDIT:
If I open the same solution in VS 2013 Express for Windows I can successfully run those tests
Is it a side-by-side installation of VS21012+Update4 and VS2013 Express?
Maybe you could try repairing your VS2012 installation from "Programs & Features" in control panel and see if that resolves this issue?

Automated TFS-based CI UI tests with desktop interaction

I'm running some automated Continuous Integration tests through a TFS build. The tests are written using the Microsoft UI Automation Framework on MSTest, and are configured to run locally on the build agent, without any controller or agent.
Now, the tests themselves execute well. The Startup method of the test suite launches the compiled application's executable and the process shows up in the server's task manager. However, since this is done through the Team Foundation Build Service, the UI isn't actually shown, as services are not allowed to interact with the active desktop.
Is there a way to force the application's UI to appear on the active desktop? I'm aware that I can install a test controller and agent that allow tests interaction with the desktop, however this creates additional overhead and some technical problems, as we're using VS2012 against TFS2010, which goes directly to the VS2010 MSTest and thus to the VS2010 test controller & agent, which I cannot configure through VS2012.
I ended up setting up a test controller a test agent. Apparently, with VS2010 it's not possible to install a test agent on the same server with the build controller, so I went for a separate machine altogether.
The tests run nicely now!
With what account are you logged on to the build server?
Only if you are logged on with the build account you will see the interaction with the desktop/UI.

Categories

Resources