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?
5 Answers
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.
1 Comment
http://www.matthewbussa.com/2010/10/how-to-run-coded-ui-tests-from-command.html. Mark the above answer correct if it solved your problem.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
Comments
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.