Running Automated Tests from the Command Line

Hello Everyone, In this post I would like to share with you some very cool command line tools shipped in Visual Studio 2012 to automate your applications test;

VSTest.Console.exe You can use the VSTest.Console.exe program to run automated unit and coded UI tests from a command line. VSTest.Console.exe is optimized for performance and is used in place of MSTest.exe in Visual Studio 2012.

MSTest.exe You can use the MSTest.exe program to run automated tests in a test assembly from a command line. MSTest is used for load tests and for compatibility with Visual Studio 2010 test projects. MSTest can also be used to view the test results from these test runs, save the results to disk, and save your results to Team Foundation Server.

TCM.exe Tcm.exe is a command-line utility that lets you perform the following tasks:

  1. Import automated tests into a test plan
  2. Run tests that are part of a test plan from the command line
  3. View a list of test items and their corresponding IDs to use when you import tests or run tests

You can also use tcm.exe to run test cases with associated automation from the command line using a test environment.

and now you can enjoy your cup of coffee while testing your app🙂

Cheers!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s