Search code examples
c#testingvisual-studio-2013coded-ui-testsacceptance

How to run CodedUI tests outside application with Batch files and create a report


I managed to create Page Object Model UIMap test cases for acceptance testing in Visual Studio 2013. I'm having issues on how to run test them outside application with Batch files and create a report.


Solution

  • Using mstest tool for drive test from command line more detail see: http://blogs.msdn.com/b/running_coded_ui_on_vm/archive/2013/03/25/running-coded-ui-on-vm-using-mstest.aspx

    simple MSTEST.EXE /testcontainer:"LOCATION OF YOUR BINARY (DLL)

    if you configured TFS server, you could also publish the test result to TFS server, then get a test report.