Reputation: 11
I want to automate the process of running coded UI tests. Do i need to have user logged in to the system? Or is it possible to run it using XYNT service?
Upvotes: 1
Views: 3155
Reputation: 321
Write the test's in Visual Studio 2010/2012, this means you can manually edit the test's the code, then you should run them in Test Manager,
BTW you need TFS and Test Manager to be the same year otherwise it won't work.
I've being doing a lot of these recently if you have any questions post it online and send me a message, I'll be happy to help.
Upvotes: 0
Reputation: 39
You need to take the snapshot of your enviroment with user logged in and then you can run your test through MS Test Manager or TFS (nightly build process)
Upvotes: 0
Reputation: 1098
I used the mstest to run the coded ui test and use Windows TaskScheduler to schedule the test. You can find detail in MSTest.exe command-line documentation.
When you want to run it automatically, there are two things you should pay attention: 1. Set auto log on 2. Close the screen saver
Upvotes: 1
Reputation: 4167
As far as I know, CodedUI Tests require an active desktop session, so running them under a service account without an open desktop session may work, but not without a session.
Upvotes: 1
Reputation: 919
We are able to run our coded ui tests in an automated fashion using windows scheduler and the command line MSTest.exe. Take a look at the following MSDN article on how to accomplish this:
http://msdn.microsoft.com/en-us/library/ms182486.aspx
I believe you can use Microsoft's Test Manager to accomplish this as well but we don't have TFS (yet) so I can't vouch for it.
Upvotes: 2